Skip to main content

FileCreate

PyPI

Provides functionality for creating a new empty file with unique name.

The file_mask parameter may contain a sequence of hash marks '#' which will be substituted by a unique sequence number starting from 001.

Install:

$ pip install filecreate

Usage Samples:

from filecreate import FileCreate

# Create file using mask
# by default parameter leading_zeros=True and all hash signs are replaced with numbers
with FileCreate('test####.txt') as file:    # if test0001.txt does not exist - creates it
    file.writelines()                       # working with file descriptor as usual

with FileCreate('test####.txt', leading_zeros=False):   # will create file test1.txt
    file.writelines()                       

# if file cannot be created (maximum sequence reached) - FileExistsError exception is raised

# Get available file name without creating an actual file
filename = FileCreate.get_filename('Folder', 'test###.txt')

Metadata

Release files for filecreate 0.0.7

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

Source distribution (sdist)

Source distribution for filecreate 0.0.7
File Size Uploaded Provenance Actions
filecreate-0.0.7.tar.gz 3.8 kB Without provenance Details for filecreate-0.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for filecreate 0.0.7
File Interpreter ABI Platform Actions
filecreate-0.0.7-py3-none-any.whl Python 3 none any Details for filecreate-0.0.7-py3-none-any.whl

Total release size: 8.6 kB

Release files / filecreate-0.0.7.tar.gz

Download URL filecreate-0.0.7.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1d955ebb90c3fd651603c1390686541ed652bec604a682459e9771a286d51842
BLAKE2b-256 checksum
How to use checksums
19892ad7b2f3549f0e5ba22f366d6f05ffd59795be60d9c62d57c9fcb8d683f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.2 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

Release files / filecreate-0.0.7-py3-none-any.whl

Download URL filecreate-0.0.7-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9197c77874339ab70f249750c35a245de112f257017542458080a6acd2597151
BLAKE2b-256 checksum
How to use checksums
49f3f495eb72355636604961472326d25dc0c03d21ce4fc219bbd2930eb71b65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.2 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

Security for filecreate 0.0.7

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.

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files 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