abstract_security
Env-driven secrets loading and security primitives: .env resolution,
password hashing, token utilities, and a library of type/path/ssh helpers.
abstract_security is the foundation layer of the Abstract Secure Backend
stack. Everything else builds on it for locating .env files, reading secrets,
hashing passwords, and issuing/validating tokens.
Where this fits
abstract-securefiles React/TypeScript UI components
abstract_logins Flask blueprints: auth + secure files
abstract_queries Domain query managers (users, uploads, ...)
abstract_database Lazy PostgreSQL connection + helpers
abstract_security <-- you are here: env loading, hashing, tokens, utilities
Dependencies flow downward; this layer depends only on abstract_utilities and
python-dotenv.
Install
pip install abstract_security
Requires Python ≥ 3.6.
Usage
from abstract_security import get_env_value, get_env_path
# Resolve a value from a .env file, searching sensible default locations
# (cwd, home, and ~/.envy_all) unless an explicit path is given.
db_url = get_env_value("ABSTRACT_DATABASE_URL")
env_file = get_env_path() # where the .env was found
It also exposes password/token helpers (bcrypt hashing, JWT) and a broad set of
utility modules (type_utils, path_utils, ssh_utils, string_utils,
compare_utils, …) shared across the stack.
Design notes
- Flexible
.envdiscovery — looks in the current working directory, the home directory, and a dedicated~/.envy_alldirectory, or an explicit path. - One definition per symbol — shared primitives like
SingletonMetaare defined once, so behaviour is predictable across the stack.
License
MIT.
Metadata
Release files for abstract-security 0.83
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| abstract_security-0.83.tar.gz | 8.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| abstract_security-0.83-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.0 kB
Release files / abstract_security-0.83.tar.gz
| Download URL | abstract_security-0.83.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85294f7e818cf94e052f23d3368cb3f33906a23472eeff00c414258886f3fa63
|
|
BLAKE2b-256 checksum How to use checksums |
a134daa17eeaab2d753ee5923e412dc0ad062dde6380232adf1ef098ee6314f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Release files / abstract_security-0.83-py3-none-any.whl
| Download URL | abstract_security-0.83-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a57ae72d03e2336a8edd7139e840d5606f6d517a665b490aaa838d5fb674d4f6
|
|
BLAKE2b-256 checksum How to use checksums |
662657b39d85a92e3e6449aa5a5fc1fde95c0e45f2690744d9a40eae195a839d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|