Skip to main content

No project description provided

Project description

autofiles

Does file generation.

Usage

Generation

To generate a file:

from auto import AutoUtils

AutoUtils.generate(
    name="testing",
    extension=FileExtension.Python,
    author="testco",
    dir=Path(Path.cwd(), "var"),
    content="print(1 + 1)\n",
)

Which will result in a file with content like this:

"""
Do not modify, auto-generated by testco
"""

print(1 + 1)

Cleaning

To clean all auto-generated file in given directory, call:

autofiles clean .

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

slimebones_autofiles-0.1.2.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

slimebones_autofiles-0.1.2-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

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