Best practice for tracking versions in python - python

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 hour ago.
Improve this question
I have a pretty big python program for data generation and ETL that has around 30 modules. It runs in a docker container and every module that runs also logs its success or failure. I want to capture module versions so I can relate success or failure of a module to its version. Is there a best practice to create a version based on commits or git version for each module?
Ideally I would like to have the logging system automatically capture the module version.
Right now I kick off all the modules as arguments in main.py. When I call one of them I pass it a version from the main.py file. It works, but I also need to remember to update the versions in that file every time I do an update (several times a day)

Related

Python IDE with jupyter notebook integrated? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
I usually start building up code in a jupyter notebook, and then make that into a function/ class that I drop in multiple files. To access/ edit those files I used Xcode. Whereas this works more or less ok, it does require to reload the classes/ functions on the jupyter notebook every time I make a change and having to use two different softwares to code seems unsatisfying. What is the optimal way of going about this?
Have you tried PyCharm? It comes with an extension that runs Jupyter inside the IDE.

How to trigger python.exe has stopped working [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Background:
In order to troubleshoot some crashing python programs, I want to create a stacktrace. Now it just says python.exe has stopped working.
In order to do so, I would like to trigger a fault like this, so I can check if the stacktraces work.
Question:
How can I make a python program crash with the python.exe has stopped working on my local Windows machine? Preferably from a console app.
I tried creating a python program which calls a C++ dll, and calls a function which contains an access violation. When I do this, it still just shows me a stacktrace.
I also tried to keep opening files untill I ran out of memory. It still shows me a MemoryError, with the line number where the operation failed.
Thank you!

Make a python module accessible to everyone [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I've made a python module myself and I would like to make it accessible online (without having to create a website). Do you know any website that collects user-created modules that can be accessed by everyone for import? And if so, what is the process needed to upload it?
You are thinking on PyPi
What is PyPI?
The Python Package Index is a repository of software for the Python programming language. There are currently 83402 packages here.
You can learn about it here: How to submit a package to PyPi

H/W requirements for Python [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I have written a python program (total size 2.8 mb) that uses SQLite database, need a Microcontroller that can run this program and how much RAM will simple Python program need ?
Python is interpreted language, so it requires a Python interpreter to run on anything. In order to run Python on a microcontroller you will need that microcontroller to run an OS, for which a Python interpreter is available - see Python implementations. You could also compile, and adapt if required, the Python source for a particular platform you wish to use. I guess it is possible to write a loader, that will start the core Python interpreter to run your script without the OS, but it will be really challenging. So probably the microcontroller will run an OS anyway and the requirements for hardware will be dictated by the OS. Also, you could benchmark your program and make assumptions for hardware requirements based on the results.

Can someone tell me the purpose of PYTHONSTARTUP? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
i have heard this is an environment variable but Can someone tell me the purpose of PYTHONSTARTUP?
PYTHONSTARTUP is an environment variable you will define specifying the location of the path to a python file.
This python script will be run by python before starting the python interactive mode (interpreter). You can use it for various enhancements like preloading modules, setting colors. (Here) is a helpful post.
Developers use something called dotfiles to enhance the bash environment. Lookup github for sample dotfile scripts which enhances the bash. You can use it with a similar state of mind. Here is a github startup script.

Categories