Skip to main content

pd supercharges your development workflows

Project description

pd (Product Development and Deployment)

pd logo

pd is a command-line tool that helps you with various development and deployment tasks.

Feature Description
1 Project initialization (init) Quickly initialize new development projects (e.g. FastAPI, Electron etc)
2 Content downloading (down) Download content from the internet (YouTube).
3 File conversion (conv) Convert files into other formats (Image, Audio, Video).
4 EC2 instance management (ec2) Manage EC2 instances (launch, terminate).
5 Image editing (edit) Edit images (round, favicon, logos etc).
6 Environment setup and configuration (env) Setup and configure development environment (zsh, vim, git, etc).
7 Nginx configuration management (nginx) Manage Nginx configuration files (proxy, static resources).

See COMMANDS for more details.

Installation

pip install zf-pd

This installs a pd command in your system (even though the package name is zf-pd).

Like other shell tools, pd stores its config in ~/.pdconfig.json.

See CONFIG for more details.

Usage

Initializing a new Project

$ pd init fastapi --name /path/to/fastapi-test

This will create a new FastAPI project called fastapi-test inside /path/to directory.

Downloading a YouTube video

pd down youtube -l https://www.youtube.com/watch?v=... -f mp4 # or mp3, text etc

This will output a file called {TITLE}.txt at the current directory.

Generating logo varations

$ pd edit logos -p /path/to/logo.png -t iOS - "20%"

# Outputs
# /path/to/logo40.png
# /path/to/logo60.png
# ...

This will generate all required iOS logos with 20% border radius at /path/to directory.

Converting MP4 to MP3

$ pd conv video -p /path/to/file.mp4 -f mp3

This will output a file called file.mp3 at /path/to directory.

Launching an EC2 instance

You can launch an EC2 instance using a launch template as below:

$ pd ec2 launch -n ec2-test -c 1

This will launch 1 EC2 instance called ec2-test using the launch template specified in ~/. pdconfig.json.

Check out the CONFIG.md for more details.

Generating an Nginx Config

You can generate a Nginx configuration file using the generate command.

$ pd nginx generate -h localhost -p 80 -d example.com -s /path/to/static

This will generate Nginx configuration for the given host, port, domain, and static file path.

License

MIT License

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

zf-pd-0.1.7.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

zf_pd-0.1.7-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file zf-pd-0.1.7.tar.gz.

File metadata

  • Download URL: zf-pd-0.1.7.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.9

File hashes

Hashes for zf-pd-0.1.7.tar.gz
Algorithm Hash digest
SHA256 54b93538e9fd7a8a23f08086204e40c07d5454c3101851f1a45f282cde629cb1
MD5 7af574795577021c4eab84e3b1ad8fb6
BLAKE2b-256 c2bb1535948fb8105288f3e9afd3f7143e1dd0aabc2141e61fbfc4ff8d3c12a6

See more details on using hashes here.

File details

Details for the file zf_pd-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: zf_pd-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.9

File hashes

Hashes for zf_pd-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c215a521eb5f88bb7b4b3f9ef40b656e9b466486a84e0d54a0b1c2637b558f6b
MD5 0ccbf062f941fbe8e76d53bc5a96e581
BLAKE2b-256 edc0fe4fce0ff49c39c6f6ed68e194970a5570b78c857f45d8d4599afa4a8013

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