Convenience functions and classes for files and filenames/pathnames.
Pathname: subclass of str with convenience properties useful for pathnames
BackedFile: a RawIOBase implementation that uses a backing file for initial data and writes new data to a front file
SharedAppendFile: a base class to share a modifiable file between multiple users
SharedAppendLines: a subclass of SharedAppendFile which shares updates in units oftext lines
FileState: a signature object for a file state derived from os.stat or os.lstat or os.fstat; has .mtime, .size, .dev and .ino attributes
Tee: an output file-like object for copying data to multiple output files
abspath_from_file: restore relative path with respect to another path, as for an include filename
chunks_of: generator yielding text or data from an open file until EOF
lines_of: generator yielding lines of text from an open file until EOF
compare: compare two filenames or file-like objects for content equality
@file_property: decorator for a caching property whose value is recomputed if the file changes
make_file_property: constructor for variants on @file_property
@files_property: decorator for a caching property whose value is recomputed if any of a set of files changes
make_files_property: constructor for variants on @files_property
lockfile: context manager to take a lock file around an operation, such as access to a shared file
shortpath: return path with the first matching leading prefix replaced with short form such as “~/” or “$LOGDIR/” etc
longpath: the inverse of shortpath
mkdirn: create a new directory named path+sep+n, where n exceeds any name already present
poll_file: watch a file for modification by polling its state as obtained by FileState
rewrite: rewrite the content of a file if changed; with an assortment of modes
rewrite_cmgr: a context manager made from rewrite()
Metadata
Release files for cs-fileutils 20160918
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cs.fileutils-20160918.tar.gz | 15.3 kB | Without provenance | Details for cs.fileutils-20160918.tar.gz |
Release files / cs.fileutils-20160918.tar.gz
| Download URL | cs.fileutils-20160918.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c4dae756c39c9c13b42dae1220079378c772f970931c857e28497a2435ff649
|
|
BLAKE2b-256 checksum How to use checksums |
850334018f48e4ae8197ca74d2bbad75b5a4df4111f9d8b674297e2b0b0049be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for cs-fileutils 20160918
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.