Skip to main content

PreProd PyPI - Downloads Tests

Easy creation of pre-production and production scripts to automate your deployment

When you're deploying your software in your web server or when you're developing, you often need to modify default settings of your software to addapt them to your needs.

Sometimes, you develop your own scripts to automate this task, but these scripts become more complex each day. That's the reason of this project. PreProd helps you to develop your own deployment script, setting them in a repository.

Preprod uses python code so you don't have to learn any other language.

If your user is root this repository is set in /etc/preprod and if your logged as a normal user in ~/.preprod

Preprod has defined a lot of help commands to make your scripts more visual. They are resumed below and you can call them appending preprod_commons python module. Morever you can create your own commands in {yourrepositorypath}/repository_commons.py and call them inside your scripts appending repository_commons as any other python module.

Example

For example, We are going to automate e2e test in console using preprod with my frontend project Calories Tracker

First we need to create our PreProd repository. As we said before you can create as root or as a normal user.

preprod_create_repository
cd /home/your_user/.preprod
mkdir calories_tracker
nano calories_tracker/build

In calories_tracker/build add the next code

preprod_commons.chdir("/tmp")
preprod_commons.rmtree("/tmp/calories_tracker_build")
preprod_commons.git_clone("https://github.com/turulomio/calories_tracker", "calories_tracker_build")
preprod_commons.chdir("/tmp/calories_tracker_build")
preprod_commons.npm_install()
preprod_commons.run_and_check("npm run build")

Now if you run preprod you can see your scripts (project: calories_tracker, action: build). So just run

preprod calories_tracker build

You'll see in console

And your calories_tracker build is now in /tmp/calories_tracker_build/dist

If something goes wrong you can see color logs in /tmp/preprod_logs_your_user/

I hope you like it and give me a star.

Commands

You can see all preprod_commons method here

Additionally, you can invoke other preprod actions from within your scripts using:

preprod_commons.preprod("project_name", "action_name", pretend=False, description="Optional description")

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

preprod-1.5.0.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

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

preprod-1.5.0-py3-none-any.whl (36.0 kB view details)

Uploaded Python 3

File details

Details for the file preprod-1.5.0.tar.gz.

File metadata

  • Download URL: preprod-1.5.0.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.14.7 Linux/7.1.6-gentoo

File hashes

Hashes for preprod-1.5.0.tar.gz
Algorithm Hash digest
SHA256 8ab9242f1794a404532916426a3045a1ca12f5e4309d21bf3308c7d49c7182d8
MD5 2e5d87d67494c2a1c855837b2db8ea13
BLAKE2b-256 ea956fcfba739a3b8d694f9fa01f6eb6208ded6540b28067e7cb06a7c6485adb

See more details on using hashes here.

File details

Details for the file preprod-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: preprod-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 36.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.14.7 Linux/7.1.6-gentoo

File hashes

Hashes for preprod-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a915d62b764e40c37b76faea8b677d2c0d0d19d05e61e38c98043c9f2ecffe9e
MD5 e246f4a3899c8d84a2bf131f7da56c64
BLAKE2b-256 8173a603af6f60c734d29c791d7691773c765aad8360683aac588f86a96dbd87

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 files

1.4.0

2 files

1.3.0

2 files

1.2.0

2 files

1.1.0

2 files

1.0.1

2 files

1.0.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

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