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")

Metadata

Release files for preprod 1.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for preprod 1.5.0
File Size Uploaded
preprod-1.5.0.tar.gz 31.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for preprod 1.5.0
File Interpreter ABI Platform
preprod-1.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 67.7 kB

Release files / preprod-1.5.0.tar.gz

Download URL preprod-1.5.0.tar.gz
Size 31.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8ab9242f1794a404532916426a3045a1ca12f5e4309d21bf3308c7d49c7182d8
BLAKE2b-256 checksum
How to use checksums
ea956fcfba739a3b8d694f9fa01f6eb6208ded6540b28067e7cb06a7c6485adb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.14.7 Linux/7.1.6-gentoo

Release files / preprod-1.5.0-py3-none-any.whl

Download URL preprod-1.5.0-py3-none-any.whl
Size 36.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a915d62b764e40c37b76faea8b677d2c0d0d19d05e61e38c98043c9f2ecffe9e
BLAKE2b-256 checksum
How to use checksums
8173a603af6f60c734d29c791d7691773c765aad8360683aac588f86a96dbd87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.14.7 Linux/7.1.6-gentoo

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release 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