MC202602: Python Meeting 02: Trial balance and accounting schemes
Python Meeting Replay
Python Meeting PDF
In this meeting we will follow the following PDF and also the cheat sheet below:
Sources
During the live session we will use the following source files:
Variables
We will use a variables file in order to externalize the variables. You should download the following AM_VARIABLES.txt file and update the folder paths mentioned. We usually put this file in the SOURCES folder. The location of the file will be put in the .env that we mention below:
Program (change extension to .py)
During the python session, we will run the following program. You will need to change the extension of the python program to .py.
.toml – put in same folder as the above programs
requirements.txt
You will also want to run the requirements: … the requirements file should not be renamed .py, leave it as .txt. Put the requirements file inside the same folder as the python programs.
.env
You need to create a .env file. Put this file in the same folder as the pythonn programs. The .env file should have the variable ZV_ST_AM_VARIABLES_FOLDER. You should put the folder address of where you keep the AM_VARIABLES.txt file. Do not put a space between the ZV_ST_AM_VARIABLES_FOLDER=<Your folder location>

Z_SHARED_FUNCTIONS
Inside your programs folder, you should have a folder called Z_SHARED_FUNCTIONS. you should put these files in the Z_SHARED_FUNCTIONS folder.
Z_SHARED_FUNCTIONS
After running the above programs, you should obtain the results as below. These results should come out in the folder that you specify in the AM_VARIABLES.txt file.
Clone the project from GitHub
If you would like to get the project from github, clone from the following link – based on the instructions at the end of the python cheat sheet: https://github.com/300Academy/PYTHON_MEETING_02.git
Python Cheat Sheet – contains GitHub instructions at the end
Responses