profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/jorants/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Joran van Apeldoorn jorants Amsterdam Researcher in quantum computing, both the mathematics (at QuSoft, CWI), and the legal and societal impact (IViR, UvA). Other interests: privacy, python.

jorants/PrimeImage 15

Creates a prime of given size from an image

jorants/bunq-example-export 7

An example project for Bunq banking & Python, the script exports all transactions from all accounts to .csv

jorants/MV-matching-C 2

C implementation of the MV-matching algorithm

jorants/CoronaMelderCDN 1

Copy of the data uploaded to the Corona Melder CDN, including parsed exposure keysets

jorants/quantis 1

Demo about randomness

jorants/Arcade 0

Arcade macine frontend for local hackerspace

jorants/ArcticonsBlack 0

A monotone line-based icon pack

jorants/beanie 0

Micro ODM for MongoDB

jorants/brython 0

Brython (Browser Python) is an implementation of Python 3 running in the browser

jorants/dukpy 0

Simple JavaScript interpreter for Python

issue commentdavidlatwe/montydb

asyncio support

Would be nice, even just a 'fake' asyncio interface so that montydb can be used instead of motor in testing.

madeinoz67

comment created time in 2 months

create barnchjorants/beanie

branch : montydb-test

created branch time in 2 months

push eventjorants/beanie

KiraPC

commit sha bbe1b88d7de05244ce7adc9115ae7d8e333ebbcf

replate pypi homepage from github repo to documentation

view details

Roman

commit sha dfe4cb4a34fd2fc1e881726cc228564d99cca6a3

Merge pull request #79 from KiraPC/doc-homepage replate pypi homepage from github repo to documentation

view details

push time in 2 months

issue commentnedbat/coveragepy

Iteration exhaustion branch of asynchronous for loop is shown as missing

I tried the same tests from beanie on 3.8 and there it does seem to work correctly, i can not easily test the others right now.

manueljacob

comment created time in 2 months

issue commentroman-right/beanie

[improvement] Chaining keeps original query

I'm also working on rewriting the Query classes to merge the Many and One versions as i mentioned on the discord. For that I was trying to change this as well by copying by default when the chaining functions are called. I think something can be sad for both ways. Maybe wait a bit till I get my rewrites working as it would be trivial to change those to your suggestion and then see what works better?

jorants

comment created time in 3 months

push eventjorants/beanie

Joran van Apeldoorn

commit sha a993c5b4b7919a6620ff35dcc48be72617fcd861

Cleanup root dir

view details

Joran van Apeldoorn

commit sha 648a57b1c787aaf319e8f950ff7d6bfa1da0ad4d

Updated github actions

view details

Joran van Apeldoorn

commit sha bc245e7fd77917472198858c80d92c265a352ded

Re-added standart markdown files with link to docs.

view details

Joran van Apeldoorn

commit sha 2a7a5dd2bc4060faa054c9cef513852d6d8f562b

Fixed hook in pydoc-markdown config

view details

Roman

commit sha f167bf5bb59b1bd51cbee73a6efacb2ad66c5e36

Upsert (#76) Upsert

view details

Roman

commit sha 2b65f586831792782c2a6b38a057249328dab464

changelog link fix

view details

Joran van Apeldoorn

commit sha 5f7a45e779527d85a1da6a5722b96a234a9c88bd

Updated pyproject.toml

view details

Roman

commit sha 85e626983ddfb3def52082c23d242cfb30a24e21

Merge pull request #72 from jorants/documentation Cleanup root dir

view details

Joran van Apeldoorn

commit sha 192ec89e787010c87adb599f8490ab2e6a926284

merge

view details

push time in 3 months

push eventjorants/beanie

Roman

commit sha f167bf5bb59b1bd51cbee73a6efacb2ad66c5e36

Upsert (#76) Upsert

view details

Roman

commit sha 2b65f586831792782c2a6b38a057249328dab464

changelog link fix

view details

Roman

commit sha 85e626983ddfb3def52082c23d242cfb30a24e21

Merge pull request #72 from jorants/documentation Cleanup root dir

view details

push time in 3 months

push eventjorants/beanie

Joran van Apeldoorn

commit sha a993c5b4b7919a6620ff35dcc48be72617fcd861

Cleanup root dir

view details

Joran van Apeldoorn

commit sha 648a57b1c787aaf319e8f950ff7d6bfa1da0ad4d

Updated github actions

view details

Joran van Apeldoorn

commit sha bc245e7fd77917472198858c80d92c265a352ded

Re-added standart markdown files with link to docs.

view details

Joran van Apeldoorn

commit sha 2a7a5dd2bc4060faa054c9cef513852d6d8f562b

Fixed hook in pydoc-markdown config

view details

Roman

commit sha f167bf5bb59b1bd51cbee73a6efacb2ad66c5e36

Upsert (#76) Upsert

view details

Roman

commit sha 2b65f586831792782c2a6b38a057249328dab464

changelog link fix

view details

Joran van Apeldoorn

commit sha 5f7a45e779527d85a1da6a5722b96a234a9c88bd

Updated pyproject.toml

view details

Roman

commit sha 85e626983ddfb3def52082c23d242cfb30a24e21

Merge pull request #72 from jorants/documentation Cleanup root dir

view details

push time in 3 months

push eventjorants/beanie

Joran van Apeldoorn

commit sha 4fcf0d0f1196178170b4201637f26aa3ac515ba5

Start by changing FindQuery

view details

push time in 3 months

push eventjorants/beanie

Joran van Apeldoorn

commit sha 5f7a45e779527d85a1da6a5722b96a234a9c88bd

Updated pyproject.toml

view details

push time in 3 months

push eventjorants/beanie

Joran van Apeldoorn

commit sha 5d1bfd841d47bdeefca88c3b30865f3a452632ea

Added UserWarning

view details

push time in 3 months

issue openedroman-right/beanie

[improvement] Chaining keeps original query

Consider the following test:

async def test_find_changed(preset_documents):
    query1 = Sample.find_many(Sample.integer > 1)
    query2 = query1.find_many(Sample.nested.optional == None)
    assert await query1.to_list() != await query2.to_list()

This fails as the query2 = ... line also changes the first query. Should this instead return a new object with the parameters set differently?

created time in 3 months

create barnchjorants/beanie

branch : unify-many-one

created branch time in 3 months

delete branch jorants/beanie

delete branch : typing-of-indexed

delete time in 3 months

delete branch jorants/beanie

delete branch : mypy-errors

delete time in 3 months

push eventjorants/beanie

Joran van Apeldoorn

commit sha 2a7a5dd2bc4060faa054c9cef513852d6d8f562b

Fixed hook in pydoc-markdown config

view details

push time in 3 months

pull request commentroman-right/beanie

Cleanup root dir

Okay, fair. However, to avoid duplication i re-added them with just a link to the docs, this way they stay the same and up to date.

jorants

comment created time in 3 months

push eventjorants/beanie

Joran van Apeldoorn

commit sha bc245e7fd77917472198858c80d92c265a352ded

Re-added standart markdown files with link to docs.

view details

push time in 3 months

issue commentnedbat/coveragepy

Iteration exhaustion branch of asynchronous for loop is shown as missing

Came across the same problem when using coverage on beanie which uses a lot of async for loops. Might be related to #1176

manueljacob

comment created time in 3 months

issue closedroman-right/beanie

[discussion] Add pytest to pre-commit

Should we add pytest to pre-commit? It would slow down commits but you would probably want to run it anyway.

closed time in 3 months

jorants

create barnchjorants/beanie

branch : coverage

created branch time in 3 months

pull request commentroman-right/beanie

Cleanup root dir

I think there was just a networking error with the failed test?

jorants

comment created time in 3 months

push eventjorants/beanie

Joran van Apeldoorn

commit sha 648a57b1c787aaf319e8f950ff7d6bfa1da0ad4d

Updated github actions

view details

push time in 3 months

issue openedroman-right/beanie

[discussion] Add pytest to pre-commit

Should we add pytest to pre-commit? It would slow down commits but you would probably want to run it anyway.

created time in 3 months

PR opened roman-right/beanie

Cleanup root dir

Removes some files from the root of the repo:

  • Code of conduct is added to documentation
  • Old code of conduct and contribution guidelines are removed.
  • pytest was upgraded to version 6 and now excepts config in pyproject.toml, which was changed to match the script in scripts
  • Removed script files. Most where one simple line anyway, only the tests required complicated arguments which are now in the config.
+7 -28

0 comment

8 changed files

pr created time in 3 months

push eventjorants/beanie

Joran van Apeldoorn

commit sha a993c5b4b7919a6620ff35dcc48be72617fcd861

Cleanup root dir

view details

push time in 3 months

pull request commentvinta/awesome-python

Add Beanie

Great already and very active development. Very natural way of connecting to MongoDB using pydantic models.

roman-right

comment created time in 3 months

push eventjorants/beanie

Joran van Apeldoorn

commit sha c96f6b79f51a1b63898027e03efe4633de46d9b2

Fixed typing erors and added mypy to pre-commit

view details

Roman

commit sha 264a7b48a669b1febb45eaacc750d8a582f3b3fe

Merge pull request #54 from jorants/mypy-errors Fixed typing erors and added mypy to pre-commit

view details

Roman

commit sha f8612d8209a18092fa1b0cc70be62656bbcd1571

MyPy action (#55) * mypy 0.812

view details

Roman

commit sha afdc689196b6ca7f3329f029d9f8f0311e9309d5

1.1.3 (#56)

view details

Joran van Apeldoorn

commit sha 1988724724e1f8f12f45c08de52dd94e10458de0

Updated packe versions (including mypy), fixed resulting errors, removed lock file, and moved mypy conf to pyprojct.toml

view details

Joran van Apeldoorn

commit sha 3c54b25c9aa1411f43d0ef3a8575c19740f168ab

Merge branch 'roman-right:main' into mypy-errors

view details

Joran van Apeldoorn

commit sha a31607416b94b7df1008a9b0f51f1b44316cd52d

removed unused accidental dependency

view details

Joran van Apeldoorn

commit sha 1c6536a67330de9eaab87a6ff277bd30c8eb549d

removed unused accidental dependency

view details

Joran van Apeldoorn

commit sha 68ea53de3ccd9ea17d35fd9d29d8bfaa6dab4009

Fixed linting error

view details

Joran van Apeldoorn

commit sha 4bb3d85f6864e56b39784c79c62ee14ed81d2879

Updated mypy action

view details

Joran van Apeldoorn

commit sha cee3188f29829d82a2ef0f5864290cd43a78bd95

Add typestubs to mypy action

view details

Joran van Apeldoorn

commit sha b1d4084f4b179f2a5b9cda376f4c67fc0bb08bbc

Added typestubs to pre-commit

view details

Roman

commit sha 551d186ca17613b03e585e337e7047f81396addc

Merge pull request #58 from jorants/mypy-errors Remove lock file

view details

Joran van Apeldoorn

commit sha d7bdc5a98f4cee42ae146b2d2d0a008a1259c370

Stricter flake8 and fixing resulting errors

view details

Roman

commit sha b055e0765d192dbc200266ab42a654e729e783ca

Merge pull request #62 from jorants/main Stricter flake8 and fixing resulting errors

view details

Roman

commit sha 3dccf50ece5c42c081f6b9a1c3a15e58423c2b3f

1.1.4 (#63)

view details

Roman

commit sha c47e094f063154ab0f797ac55cbeedf4f155ef0a

1.1.5 (#67)

view details

Grimmer

commit sha 9d1bbfaf2e573fb5cab1969feae999aeb2beb5b2

Add importing operator In statement to let people aware where it is

view details

Roman

commit sha fb68185fe8e66f0815bfe0430edb27f375971525

Merge pull request #68 from grimmer0125/improve_doc_operator_in Add importing operator In statement to let people aware where it is

view details

Roman

commit sha 19d5f85a28b16e222ac9a903123bcdb815603501

Logo with white bg for dark gh theme

view details

push time in 3 months

issue commentroman-right/beanie

[improvement] Allow overiding of id field for typechecker

In principle all id fields should implement a __get_validators__ function, and maybe more for serialization? Except build-in types are handled separately. If we could make a list of built in types that could function as an id (or a reasonable subset) then we could do something like


class IdFieldProtocol(Protocol):
  @classmethod
  def __get_validators__(...): ... # TODO define types correctly  

class PydanticObjectId(ObjectId)L
   ... # as it is now

BuildinIdTypes = Union[int,str,UUID] # or some other buildins as well

IdType = Union[PydanticObjectId,IdFieldProtocol,BuildinIdTypes]

Now mypy will complain if you use a type that can not function within pydantic, as it should. The other option is to simply have an empty protocol, which basically silences mypy in all cases.

jorants

comment created time in 3 months

push eventjorants/beanie

Roman

commit sha c47e094f063154ab0f797ac55cbeedf4f155ef0a

1.1.5 (#67)

view details

Grimmer

commit sha 9d1bbfaf2e573fb5cab1969feae999aeb2beb5b2

Add importing operator In statement to let people aware where it is

view details

Roman

commit sha fb68185fe8e66f0815bfe0430edb27f375971525

Merge pull request #68 from grimmer0125/improve_doc_operator_in Add importing operator In statement to let people aware where it is

view details

Roman

commit sha 19d5f85a28b16e222ac9a903123bcdb815603501

Logo with white bg for dark gh theme

view details

Roman

commit sha 51f153318c45001ebeac4d6199a93fe4b03af0b4

pydantic versions matrix (#71) * pydantic version ^1.5

view details

push time in 3 months