Skip to main content

Easily creation of pre-production and production scripts to automete your deployment

Project description

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}/ and call them inside your scripts appending repository_commons as any other python module.


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.

cd /home/your_user/.preprod
mkdir calories_tracker
nano calories_tracker/e2e_tests

In calories_tracker/e2e_tests add the next code

preprod_commons.git_clone("", "calories_tracker_build")
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.


You can see all preprod_commons method here


0.4.0 (2024-06-08)

  • Temporal preprod logs are now created by each user to avoid permissions problems
  • Added examples and documentation
  • Added poe doc command
  • Improved parameters errors

0.3.0 (2024-05-28)

  • Improved description system
  • Added makedirs and git clone in different directory
  • Improved spanish translations
  • Added --version to commands
  • Added test with a 84% coverture

0.2.0 (2024-05-26)

  • Added logs in /tmp/preprod_logs/
  • Added chown_recursive, chmod_recursive, rsync, poetry_install, poetry_env_info methods to commons

0.1.0 (2024-05-21)

  • Basic functionality

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

preprod-0.4.0.tar.gz (24.0 kB view hashes)

Uploaded Source

Built Distribution

preprod-0.4.0-py3-none-any.whl (27.7 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