Skip to main content

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

Project description

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:

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

imecilabt_utils-1.6.1.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imecilabt_utils-1.6.1-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file imecilabt_utils-1.6.1.tar.gz.

File metadata

  • Download URL: imecilabt_utils-1.6.1.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for imecilabt_utils-1.6.1.tar.gz
Algorithm Hash digest
SHA256 c59502ef983211b6172a1850c7d746f3d6bc014fc44d9a2ad168d929b5308e93
MD5 04ab9e37cb54967ceeb433d91cd1461f
BLAKE2b-256 b8f54342063938055cee423ef554a81bcd245edbd5314075a794010d487b9ca4

See more details on using hashes here.

File details

Details for the file imecilabt_utils-1.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for imecilabt_utils-1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d701b13da0329750f49e3e2795665efd4fa3c13291be9099ab123d19369921f6
MD5 5d5752667d5284e0f3c90d3f9203bff4
BLAKE2b-256 4064cfaf53e8de27d547f0fab0968b32ec3802f52488b894c8edb1ba8cddafac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page