core logic for indiek
Project description
Library that stores the core logic for the IndieK software suite.
Installation
To install from PyPI: pip install indiek-core
To develop, use the [dev] dependency specification, e.g.: pip install indiek-core[dev]
Or from the cloned repo’s top-level in editable mode: pip install -e .[dev]
Quickstart
from indiek.core.items import Item
from indiek.mockdb.items import Item as DBitem
item1 = Item(name='item1', content='example item 1').to_db()
item1.save()
item2 = DBitem.load(item1.ikid)
print(item2.name, item2.content)
Tests
To run the full test suite, type the following from the top level of this repo: pytest
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
indiek-core-0.1.2.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for indiek_core-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ec019d3aa9690f4ff08c24f38ce19548834aca5a4534e4c3b25e6357a174e02 |
|
MD5 | 3aa39e9c84efdeb8c5cb80c7a709d0fe |
|
BLAKE2b-256 | 335e14fd8bcad34b89edbe24212646f67582a029e86d9d809adaa019d9a161f1 |