Skip to main content

A simple command-line tool to create and manage files.

Project description

Manufacture

Manufacture is a command-line tool designed to help developers manage and create files with specified names and types efficiently. It streamlines file handling tasks, making it easier to organize project files.

Features

  • Create files with specific names and types
  • Rename files with optional backup
  • Change file permissions and ownership
  • Create directories
  • Display file information
  • Compress directories
  • Easy installation via pip
  • Simplified file management from the terminal
  • Short-form commands for quicker usage
  • Ability to handle multiple filenames or directories in a single command

Installation

You can install Manufacture using pip:

pip install manufacture

Usage

# Create a new file with a specified name
manufacture create <filename>
manufacture -c <filename>

# Create a new directory
manufacture directory <dirname>
manufacture -d <dirname>

# Rename a file with an optional backup
manufacture change <oldname> <newname> [--backup]
manufacture -ch <oldname> <newname> [--backup]

# Change file permissions
manufacture permissions <filename> <permissions>
manufacture -p <filename> <permissions>

# Change file ownership
manufacture ownership <filename> <owner> <group>
manufacture -o <filename> <owner> <group>

# Display information about a file
manufacture info <filename>
manufacture -i <filename>

# Compress a directory
manufacture compress <directory> --output=<output>
manufacture -z <directory> --output=<output>

# Create directories and add content to them
manufacture create_with_content create_with_content <dirname> -c <file>... -d <dirname>... [-cc <dirname> -c <file>... -d <dirname>...] 
manufacture -cc -cc <dirname> -c <file>... -d <dirname>... [-cc <dirname> -c <file>... -d <dirname>...]

Examples

Create one or multiple files:

manufacture create script1.py script2.rs
manufacture -c main.go test.rs

Create a new directory:

manufacture directory dir1 dir2
manufacture -d dir1 dir2

Rename a file with backup:

manufacture change oldname.txt newname.txt --backup
manufacture -ch oldname.txt newname.txt --backup

Change file permissions to read, write, and execute for the owner:

manufacture permissions my_script.py 755
manufacture -p my_script.py 755

Change file ownership to user jack and group developers:

manufacture ownership my_script.py jack developers
manufacture -o my_script.py jack developers

Display information about a file:

manufacture info my_script.py
manufacture -i my_script.py

Compress a directory:

manufacture compress my_project --output=my_project.zip
manufacture -z my_project --output=my_project.zip

Create dir1 with files main.py, test.go and a subdirectory frontend, and create dir2 with a subdirectory backend and files start.rs, docs.txt

manufacture -cc dir1 -c main.py test.go -d frontend -cc dir2 -d backend -c start.rs docs.txt

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

manufacture-0.6.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

manufacture-0.6.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file manufacture-0.6.1.tar.gz.

File metadata

  • Download URL: manufacture-0.6.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for manufacture-0.6.1.tar.gz
Algorithm Hash digest
SHA256 594af7f4becb45a2678f5bda7802091fad824b18b47c5952d2febba766bceeed
MD5 a3c0d6cfe6bc6d0e8aacac438a8a4e36
BLAKE2b-256 5e39b10657ac37496a25519ccfffa0d39dbdd3768de0534b4cfdd0f739e0543c

See more details on using hashes here.

File details

Details for the file manufacture-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: manufacture-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for manufacture-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 844a7b88712d5a1021e1f4554a2a3cec1da79b234cd4478f303b4e6163604766
MD5 a924b3116bdc5aa0207271c1f1b4500f
BLAKE2b-256 caaee6efa9bcb149650a71e0841189c7ecc30502c128ea1e5ce6d3a039c54d16

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page