Utilities
Utilities.
Functions
|
Check a file for hash sums. |
|
Calculate several hexdigests of hash algorithms for a file concurrently. |
|
Raise a HexDigestError if the digests do not match. |
|
Process hexdigests via URLs. |
|
Download a file from a given URL. |
|
Get the filename from the end of the URL. |
|
Get the filename from the S3 key. |
|
Make a directory (or parent directory if a file is given) if flagged with |
|
Mock the environment variable then delete it after the test is over. |
Mock the PyStow home environment variable, yields the directory name. |
|
|
Get an environment variable representing a path, or use the default. |
|
Get a random string for testing. |
|
Get the dataframe as bytes. |
|
Get the numpy object as bytes. |
|
Write a dataframe as an lzma-compressed file. |
|
Unzip a file in the source to the target. |
|
Write a dataframe to an inner CSV file to a zip archive. |
|
Read an inner CSV file from a zip archive. |
|
Write an XML element tree to an inner XML file to a zip archive. |
|
Read an inner XML file from a zip archive. |
|
Write a dataframe to an inner CSV file to a zip archive. |
|
Read an inner numpy array-like from a zip archive. |
|
Read an inner RDF file from a zip archive. |
|
Write a dataframe to an inner CSV file from a tar archive. |
|
Read an inner CSV file from a tar archive. |
|
Read an inner XML file from a tar archive. |
|
Write an object to a gzipped pickle. |
|
Read an RDF file with |
|
Download a file from google drive. |
|
Download a file from S3. |
|
Get last commit hash for the given repo. |
|
Get the PyStow home directory. |
|
Get the PyStow home directory name. |
|
Get the base directory for a module. |
|
Convert a path to a SQLite connection string. |
Classes
|
Create new instance of HexDigestMismatch(name, actual, expected) |
|
Thrown if the hashsums do not match expected hashsums. |
|
Thrown if a directory path is given where file path should have been. |