Skip to main content

Imec iLab.t utils

A collection of functions useful in various projects iLab.t projects.

These assorted utils are all lightweight and have no dependencies. This is all MIT license, so you are free to copy only what you need.

Overview:

  • sentry_utils.py has find_sentry_release_id which is used to automatically find the sentry release.
  • urn_util.py contains function for working with a specific type ("geni") of URN.
  • validation_utils.py has functions to validate ssh keys, emails and UUIDs
  • utils.py contains a wide range of useful functions:
    • normalize_depenv returns "staging" or "production"
    • datetime_now returns "now" as a timezone aware datetime. (naive datetimes are evil!)
    • any_to_{opt_}bool converts to bool
    • duration_string_to_seconds parses string like "3 days" into a number of seconds
    • deep_update_dict merges a dict into another
    • strip_null_from_json_dict strips None and empty lists/dicts from a dict (useful to clean up json)

Links:

Metadata

Release files for imecilabt-utils 1.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for imecilabt-utils 1.6.1
File Size Uploaded Provenance Actions
imecilabt_utils-1.6.1.tar.gz 14.3 kB Without provenance Details for imecilabt_utils-1.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for imecilabt-utils 1.6.1
File Interpreter ABI Platform Actions
imecilabt_utils-1.6.1-py3-none-any.whl Python 3 none any Details for imecilabt_utils-1.6.1-py3-none-any.whl

Total release size: 26.9 kB

Release files / imecilabt_utils-1.6.1.tar.gz

Download URL imecilabt_utils-1.6.1.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c59502ef983211b6172a1850c7d746f3d6bc014fc44d9a2ad168d929b5308e93
BLAKE2b-256 checksum
How to use checksums
b8f54342063938055cee423ef554a81bcd245edbd5314075a794010d487b9ca4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / imecilabt_utils-1.6.1-py3-none-any.whl

Download URL imecilabt_utils-1.6.1-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d701b13da0329750f49e3e2795665efd4fa3c13291be9099ab123d19369921f6
BLAKE2b-256 checksum
How to use checksums
4064cfaf53e8de27d547f0fab0968b32ec3802f52488b894c8edb1ba8cddafac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Security for imecilabt-utils 1.6.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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