https://github.com/vizonex/cyclass
A dataclasses library inspired by msgspec , pydantic and attrs written in cython.
https://github.com/vizonex/cyclass
cython dataclasses json python python3 serlizable yaml
Last synced: 4 months ago
JSON representation
A dataclasses library inspired by msgspec , pydantic and attrs written in cython.
- Host: GitHub
- URL: https://github.com/vizonex/cyclass
- Owner: Vizonex
- License: mit
- Created: 2025-01-20T18:23:21.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-02-03T16:50:19.000Z (8 months ago)
- Last Synced: 2025-03-31T05:51:05.597Z (6 months ago)
- Topics: cython, dataclasses, json, python, python3, serlizable, yaml
- Language: C
- Homepage:
- Size: 187 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CyClass
A New Kind of dataclass Library based on the serlization of msgspec and the safety of attrs written in cython.
There's a lot of work to do and I think you're going to like this exciting python library coming soon.## Goals with this library
- Providing a Baseclass Just like Msgspec does but with better maintainability with the use of cython
- The Ability of being able to develop extensions such as SQLAlchemy which I am already commited to just building in as a bonus.## Updates
- I am resuming this project but it will be massively rewritten.
- `__cinit__` is python's `__new__` method (Shocking, I know...) so metaclasses can be made with high performance.
- CWPack is going to be the new json serlizer and deserlizer and I modified a few things to make it "cython-acceptable"
- Fields will be written in the same format as Msgspec only this time they are subclassable...
- CodeWriter will use aiohttp's httpwriter's implementation
- __SQLTable__ Extension is now going to be built-in with this project by checking if sqlalchemy was installed.
- `Msgspec.Struct` , `dataclass`, `attrs` (maybe), `NamedTuple` support. Which means they all get serlized.