Skip to main content

Utilities for making life easier in Python with Drake workflows.

Installing

Run pip install drakeutil.

Using

For Python steps inside your workflow include the line:

from drakeutil import *

This will populate the special family of variables INPUT, OUTPUT from the environment. For example:

somefile.out <- somefile.in [python]
    from drakeutil import *
    with open(INPUT) as istream:
        with open(OUTPUT) as ostream:
            for l in istream:
                for word in l.split():
                    print >> ostream, word

In the future we might add more helpers. Can you think of any that would be useful?

Changelog

0.1.0

  • Support special INPUT and OUTPUT family of environment variables

  • Provide mysql_cursor helper when MySQLdb module is installed

Metadata

Release files for drakeutil 0.1.0

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

Source distribution (sdist)

Source distribution for drakeutil 0.1.0
File Size Uploaded Provenance
drakeutil-0.1.0.tar.gz 2.3 kB Without provenance Details

Release files / drakeutil-0.1.0.tar.gz

Download URL drakeutil-0.1.0.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
900a02ceeace70387c8b20469126b74b5ba02864a93a369e4e68f858c0bab3ef
BLAKE2b-256 checksum
How to use checksums
ea98406edb7d0fe96613d9dc2345d716a363f07215c3e79609405027f2867008
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for drakeutil 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

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