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.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

slimebones_autofiles-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file slimebones_autofiles-0.1.0.tar.gz.

File metadata

  • Download URL: slimebones_autofiles-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.6 Linux/6.6.7-zen1-1-zen

File hashes

Hashes for slimebones_autofiles-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e93f1d66423370190f25f04071c8153c6e021494459604bb3d7625115c29ccc0
MD5 b4c5d0fbb3bd8d3f68a20a4b3af6fa5d
BLAKE2b-256 3134b7b568884d8b8587dc0a0a8bdb0eae2d7b0d65c594dea76200edc92822c0

See more details on using hashes here.

File details

Details for the file slimebones_autofiles-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for slimebones_autofiles-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7003fdd8a68699d2a3db37e3cd617d0cde42804ad6695cad0b1530befea5c5aa
MD5 b301d076fad6faff5da108b8f213f392
BLAKE2b-256 4b8a569c13a5abbe070a3d19e856ff1174bb8b695ccf61070c1962960e4e57a5

See more details on using hashes here.

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