Tokka

Latest version: v0.1.1b0

Safety actively analyzes 625951 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.1.1b

๐Ÿš€ Features

- *(Client)* Supports AsyncIOMotorClient kwargs
- *(Database)* Now accepts only AsyncIOMotorClient as connection parameter argument
- *(Database)* Supports AsyncIOMotorDatabase kwargs
- *(Database)* Allows kwargs on get_collection method
- *(Client)* Motor client getter

๐Ÿ› Bug Fixes

- *(Collection)* Update_one
- *(Collection)* Set
- *(tokka/kwargs)* FindKwargs session type
- *(Collection)* Find_one_and_set update behavior standardization
- *(Collection.set)* None as default argument for match parameter

๐Ÿšœ Refactor

- Update sample code to better mirrors README quick usage
- *(Client)* Motor client instance standardized as hidden property

๐Ÿ“š Documentation

- _make_projection docstring added
- Find_one docstring added
- Find_one_and_replace docstring added
- Find_one_and_delete docstring added
- Find_one_and_update docstring added
- Find_one_and_set docstring added
- Replace_one docstring added
- Insert_one docstring added
- Update_one docstring added
- Set docstring added
- Database class docstring added
- Client class docstring added
- Main package docstring
- Update package docstring
- Update readme
- Fix typo
- Kwargs module docstrings
- Docstrings
- *(Client)* Added link to MongoClient kwargs documentation
- *(readme)* Testing instructions

๐ŸŽจ Styling

- Ruff format and check
- Removed unused imports

๐Ÿงช Testing

- Client, collection and other essential fixtures
- Test client fixture
- Insert_one
- Find_one
- Find one and replace
- Find_one_and_update
- Find_one_and_replace
- Find_one_and_set
- *(Collection)* Test_replace_one
- *(Collection)* Set

Dependencies

- Added pytest and pytest-asyncio

Refat

- *(Collection.replace_one)* Removed useless kwargs

0.1.0b

๐Ÿš€ Features

- Find_one
- Find_one_and_replace
- *(find_one)* Projection parameter
- Find_one_and_update
- Find_one_and_set
- Find_one_and_delete
- Replace_one

๐Ÿšœ Refactor

- Rename _create_query_filter to _make_filter

๐Ÿ“š Documentation

- Sample script simplified
- Dict intersection type hint notes
- Dict intersection type hint notes
- Update sample
- Update sample
- Update sample
- Readme update
- Logo
- Fix logo
- Installation command

๐ŸŽจ Styling

- Renamed 'filter' / 'update' variables to '_filter' / '_update'
- Ruff format

Bug

- _pop_model_dump_kwargs now correctly splits Pydantic's model_dump kwargs
- *(find_one_and_replace)* Pop pymongo redundant kwargs

Rearrange

- *(tokka/types)* Renamed to tokka/kwargs

Refat

- TypeAlias for complex type annotations
- *(update_one)* Now uses _pop_model_dump_kwargs

<!-- generated by git-cliff -->

Links

Releases

Has known vulnerabilities

ยฉ 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.