A small package that provides utilities for using files as different types of databases
Project description
README
What is this repository for?
A simple database-like facility for writing json-like structures into text files. Each structure is written on a separate line.
- Takes a directory path where the files are situated
- If the directory does not exist it is created.
- Splits the records into separate files, according to the record type.
Or
- provides a key-value store with persistence based on the json-store described above
How do I get set up?
-
Summary of set up
If this gets published on pypi.org, run the following command:
pip install filabaseIn case it is unfit for pypi:
-
clone the repository;
-
cd into the filabase directory;
-
activate the environment
-
execute:
python3 setup.py sdist bdist_wheel-
install using:
pip install ./dist/filabase-<version>-py3-none-any.whl
-
-
Configuration
Nothing to configure yet
-
Dependencies
Sole dependency is on pytest for running the tests during development. In production, it does not depend on other packages
-
Database configuration
This is basically a database.
-
Usage
Once it is installed import one of the facilities like this:
from filabase import keyvaluestore
Or just
import filabase
-
How to run tests
When in the root directory run:
python3 -m pytest -
Deployment instructions
Contribution guidelines
-
Writing tests
Unit tests as well as Integration tests ensuring the proposed feature is functional should be included in the pull request.
-
Code review
-
Other guidelines
Help needed
Obviously I need help with the README markup. Feel free to create a pull request.
Further, this library is definitely full of bugs. If you feel you can fix any of them, I'll be glad to accept a pull-request. Or perhaps just report it. I might have some time to fix it.
Who do I talk to?
-
Repo owner or admin
Nikola Geneshki: ngeneshki at gmail dot com
-
Other community or team contact
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file filabase-0.1.0.tar.gz.
File metadata
- Download URL: filabase-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b1d62836522709723358f85b7f108f0d874568a24a1c9830f07ae9bfafea453
|
|
| MD5 |
6ad086bc0ea8895a78fb3f685d80dc91
|
|
| BLAKE2b-256 |
3832157a1c8d9cc163ec05c4d1d69de3d95eb0b916dd12b13979c087650f806c
|
File details
Details for the file filabase-0.1.0-py3-none-any.whl.
File metadata
- Download URL: filabase-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00296f3cdc4a3bd5fed14afc70165588eafa3037f9081c0a29b0d2c5b458fada
|
|
| MD5 |
40e8aaa1f53a630d58d78136d52577d5
|
|
| BLAKE2b-256 |
18e30606ca0711d1771fa47329e9fb6461fc7548cc41c0c723845042d9a2c9b2
|