Skip to main content

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 .env discovery — looks in the current working directory, the home directory, and a dedicated ~/.envy_all directory, or an explicit path.
  • One definition per symbol — shared primitives like SingletonMeta are 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)

Source distribution for abstract-security 0.83
File Size Uploaded
abstract_security-0.83.tar.gz 8.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for abstract-security 0.83
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.83 This release

2 release files

0.82

2 release files

0.81

2 release files

0.80

2 release files

0.79

2 release files

0.78

2 release files

0.77

2 release files

0.76

2 release files

0.75

2 release files

0.74

2 release files

0.73

2 release files

0.72

2 release files

0.71

2 release files

0.70

2 release files

0.69

2 release files

0.68

2 release files

0.67

2 release files

0.66

2 release files

0.65

2 release files

0.64

2 release files

0.63

2 release files

0.62

2 release files

0.61

2 release files

0.60

2 release files

0.59

2 release files

0.58

2 release files

0.57

2 release files

0.56

2 release files

0.55

2 release files

0.54

2 release files

0.53

2 release files

0.52

2 release files

0.51

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page