yet another core library
Project description
yacore
Yet Another CORE library
Reason
- Reduce daily routine to start new service.
- Reduce errors on copy/paste things from previous projects.
Features
- Build on top of
facet
,cock
andgiveme
. This means services, configuration and dependency injection. - Flexible installation (install only what you need for current service, e.g.
pip install yacore[db-postgresql,net-http]
) - Couple backends for databases, logging, networking and whatever in strict service-like style.
Current implementation matrix
database | logging | network | executors |
---|---|---|---|
postgres | stdlib | httpx + fastapi + hypercorn | thread pool executor |
loguru |
Requirements
- python 3.9+
Usage
You can start new project from scratch with cookiecutter template via:
cookiecutter gh:pohmelie/cookiecutter-yacore
Read more at cookiecutter-yacore.
Documentation
TBD
License
yacore
is offered under MIT license.
Development
Installation
pip install -e ./[dev]
Run tests
Since coverage issue/feature, plugins coverage is broken by default. Workaround:
COV_CORE_SOURCE=yacore COV_CORE_CONFIG=.coveragerc COV_CORE_DATAFILE=.coverage.eager pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yacore-0.3.2.tar.gz
(16.2 kB
view details)
Built Distribution
yacore-0.3.2-py3-none-any.whl
(13.8 kB
view details)
File details
Details for the file yacore-0.3.2.tar.gz
.
File metadata
- Download URL: yacore-0.3.2.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47fb3ea7c7ff1befc5a1046960168d40c27a38f67531d27a9e4e6ec9e0080491 |
|
MD5 | 6fa698f70cfe12230231844c43ebca17 |
|
BLAKE2b-256 | 684c17dc5c5bb0a91ca3349ab771113507e5d84636e96f1e687b6113acb8fa09 |
File details
Details for the file yacore-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: yacore-0.3.2-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e76a87d6cc2c2484efea5359813e010171e48e379fb8dbc139f846c347f3f0a |
|
MD5 | a55f304fc15e460bab268193e36923ed |
|
BLAKE2b-256 | b1aaae1975aea2d60ce0f659afd34ae6c958c52071b654a044eadec62360e496 |