cacheorm-0.0.1
توضیحات
A cache-based python ORM.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cacheorm-0.0.1 |
| نام | cacheorm |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | leosocy |
| ایمیل نویسنده | leosocy@gmail.com |
| آدرس صفحه اصلی | https://github.com/leosocy/cacheorm |
| آدرس اینترنتی | https://pypi.org/project/cacheorm/ |
| مجوز | MIT |
# A cache-based python ORM -- supports Redis, Memcached.
[](https://travis-ci.org/Leosocy/cacheorm)
[](https://codecov.io/gh/Leosocy/cacheorm)
[](https://pypi.org/project/cacheorm/)
[](https://github.com/Leosocy/cacheorm/blob/master/README.md)

## CacheBackend
- BaseBackend
- SimpleBackend
- RedisBackend
- MemcachedBackend
### Methods
- `set(key, value)`
- `get(key)`
- `delete(key)`
- `set_many(mapping)`
- `get_many(*keys)`
- `delete_many(*keys)`
- `has(key)`
## Serializer
- json
- msgpack
- pickle
- protobuf
### Registry
All serializers are registered to a registry singleton.
Provide `json`, `msgpack`, `pickle` three preset serializers.
You can register your own serializer,
such as a Protobuf serializer that registers a `Person` message.
```python
registry.register("protobuf.person", ProtobufSerializer(person_pb2.Person))
```
## ModelBase
نیازمندی
| مقدار | نام |
|---|---|
| >=3.0 | redis |
| >=1.3.0 | libmc |
| - | pytest |
| - | pytest-cov |
| - | mock |
| - | coverage |
| - | flake8 |
| - | mccabe |
| - | flake8-bugbear |
| - | pep8-naming |
| >=3.0 | redis |
| >=1.3.0 | libmc |
| <1.0 | msgpack |
| >=3.9 | protobuf |
| <1.0,>=0.6 | msgpack |
| >=3.9 | protobuf |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl cacheorm-0.0.1:
pip install cacheorm-0.0.1.whl
نصب پکیج tar.gz cacheorm-0.0.1:
pip install cacheorm-0.0.1.tar.gz