Utility functions for the Impact and Fiction project
Project description
impfic-core
Core code base for common functionalities
Installing
pip install impfic-core
For review anonymisation you need a salt hash in a file called impfic_core/secrets.py
. The repository doesn't contain this file to ensure other cannot recreate the user ID mapping.
An example file is available as impfic_core/secrets_example.py
. Copy this file to impfic_core/secrets.py
and update the salt hash to do your own user ID mapping.
Usage
To use utilities for external resources such as the RBN, you need to point to your copy of those resources
in the settings (settings.py
). Once you have done that, you can use them with:
from settings import rbn_file
from impfic_core.resources.rbn import RBN
rbn = RBN(rbn_file)
rbn.has_term('aanbiddelijk') # returns True
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
File details
Details for the file impfic_core-0.3.0.tar.gz
.
File metadata
- Download URL: impfic_core-0.3.0.tar.gz
- Upload date:
- Size: 21.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 | b362ee8c408bdbe9c907a98e167d15995b04fcf6e5a9426539051ab012a9a851 |
|
MD5 | bcdcff2c376e5a3c5f922a759fa79c04 |
|
BLAKE2b-256 | fb19a93a3275ff89f155c533bdaa33a3a3ffcf4f4096f06d99260de4e0c79eb3 |
Provenance
File details
Details for the file impfic_core-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: impfic_core-0.3.0-py3-none-any.whl
- Upload date:
- Size: 24.7 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 | 087a8088098785f476343a27612aa7c3477d535f0976b61805929793f9a01c68 |
|
MD5 | 73c52e3de84cc5f6135fa58703eb0b9f |
|
BLAKE2b-256 | 9e34bd4b6127c392a63fe75572545fdf6f1adbc71b333281fc9da40c29d62461 |