Framework-agnostic Python utilities: text, time, iterables, structured logging, telemetry primitives, and more.
Project description
neutronium
Framework-agnostic Python utilities, extracted from Gaussian's internal infrastructure. No Django, no web framework, no cloud SDK in the base install — everything third-party is an optional extra.
pip install neutronium # base: zero dependencies
pip install neutronium[text] # inflection-backed pluralize/singularize
pip install neutronium[xpath] # lxml-backed HTML/XPath helpers
What's inside
| Module | What it gives you |
|---|---|
neutronium.utils.text |
Text normalization, slugs, tokenization, pluralize/singularize |
neutronium.utils.time |
Timezone-aware datetime helpers |
neutronium.utils.iterable |
Chunking, grouping, flattening, dict utilities |
neutronium.utils.template_context |
Pure template-variable extraction and context building |
neutronium.utils.json_patch |
RFC-6901 JSON pointer / merge-patch primitives |
neutronium.utils.hash |
blake2b content hashing helpers |
neutronium.utils.schema |
JSON-schema → default-dict |
neutronium.utils.xpath |
lxml HTML parsing + link extraction ([xpath]) |
neutronium.utils.url |
URL parse / canonicalize / normalize / domain extraction ([url]) |
neutronium.requester |
Resilient HTTP fetcher with retries/paywall/no-index detection ([requests]) |
neutronium.utils.file |
Pickle / text / JSONC file helpers |
neutronium.utils.performance |
Simple multi-level timer |
neutronium.utils.email |
Canonical email normalization |
neutronium.utils.{aws,ssm,s3} |
EC2/ECS instance metadata, SSM parameter fetch, S3 upload/download ([aws]) |
neutronium.utils.{print,params,profiling,memory,url_credentials} |
Assorted small utilities |
neutronium.threads.thread_simple |
Minimal threading helpers |
neutronium.telemetry |
Request-context vars, RequestFacts, pluggable sinks |
neutronium.logging |
JSON / dev-console log formatters and context filters |
Optional extras
text, time, aws, url, requests, memory, memory-extended, xpath, otel, profiling — install only what you use.
aws→boto3,requests,ec2-metadata(forneutronium.utils.aws/ssm/s3)url→tldextract(only forget_url_domain; the rest ofneutronium.utils.urlis pure stdlib)memory→psutil(forprint_memory_usage);memory-extended→pympler,objgraph(for the heap/objgraph tools — opt in only if you use them)
Development
uv run --all-extras pytest # installs all optional extras + the dev group
License
MIT © Gaussian Holdings, LLC
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
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 neutronium-0.2.3.tar.gz.
File metadata
- Download URL: neutronium-0.2.3.tar.gz
- Upload date:
- Size: 53.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66391cbff3d4cc3699ac3029d9f849222d602e03b13003ba38c6e1786ae98dfd
|
|
| MD5 |
2d176c423867d6f5dc6126592cc36c93
|
|
| BLAKE2b-256 |
d236830cfdd049260d9dbe4314b3e88c9c2b28ffeea6fa11275dc275c6e21d74
|
Provenance
The following attestation bundles were made for neutronium-0.2.3.tar.gz:
Publisher:
publish.yml on gaussian/neutronium
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
neutronium-0.2.3.tar.gz -
Subject digest:
66391cbff3d4cc3699ac3029d9f849222d602e03b13003ba38c6e1786ae98dfd - Sigstore transparency entry: 2235499434
- Sigstore integration time:
-
Permalink:
gaussian/neutronium@44e35438b182593801e6807eeada978d4abb71fc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/gaussian
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@44e35438b182593801e6807eeada978d4abb71fc -
Trigger Event:
workflow_run
-
Statement type:
File details
Details for the file neutronium-0.2.3-py3-none-any.whl.
File metadata
- Download URL: neutronium-0.2.3-py3-none-any.whl
- Upload date:
- Size: 52.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35c40b44a8ef5f733b9a38f5a31f3a7552a57755b9dae04f4df36a291cfb1963
|
|
| MD5 |
806d7f2e4465e9da73db73ed58879809
|
|
| BLAKE2b-256 |
ea43a7b48faf18211e3fff530d96d8c08650ce1fe8120d031c4e9f68e604f553
|
Provenance
The following attestation bundles were made for neutronium-0.2.3-py3-none-any.whl:
Publisher:
publish.yml on gaussian/neutronium
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
neutronium-0.2.3-py3-none-any.whl -
Subject digest:
35c40b44a8ef5f733b9a38f5a31f3a7552a57755b9dae04f4df36a291cfb1963 - Sigstore transparency entry: 2235499537
- Sigstore integration time:
-
Permalink:
gaussian/neutronium@44e35438b182593801e6807eeada978d4abb71fc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/gaussian
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@44e35438b182593801e6807eeada978d4abb71fc -
Trigger Event:
workflow_run
-
Statement type: