Skip to main content

A collection of functions useful in various projects 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.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file imecilabt-utils-1.6.0.tar.gz.

File metadata

  • Download URL: imecilabt-utils-1.6.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for imecilabt-utils-1.6.0.tar.gz
Algorithm Hash digest
SHA256 024da6f4a6ff42f969259c8f953608ee652f66229013dcbd9a278d303a3c2b7f
MD5 e3396e5ac93bca4029f2aaf2855cd7d0
BLAKE2b-256 64b4f5a0aadb52684a88119e6743ac4508e76066e2d78e95bfb41632f8797437

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for imecilabt_utils-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cead88b89569e4fdaa9f44bcbbc3fa6b49a2c6921b9961d6395d780b458aa21d
MD5 d2b65073dbce1f5d0140407d3c365907
BLAKE2b-256 ac2bd54c11372b8c986d40f25261e95e5b31c06a82c0dbec9ee747b513059468

See more details on using hashes here.

Supported by

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