This is a template repository for Python applications. Feel free to use this as your starting point, instead of creating a repository from scratch.
You'll probably want to update this README file by:
- Specifying your project name for the top level heading (above),
- Changing the virtual environment name in the "Setup" section below (in both the creation and activation commands),
- Updating the "Configuration" section to reflect any environment variables you may be using (or remove if not using env vars),
- Updating the contents of the "requirements.txt" file to reflect the packages you're using in your project, and also
- Creating your own Python files in the app directory, and updating the "Usage" section below accordingly.
When you're done, remove this entire "Instructions" section from the README file.
conda create -n project-xyz-env python=3.10
conda activate project-xyz-env
Install package dependencies:
pip install -r requirements.txt
Create a new file in the root directory called ".env", and populate its contents:
# this is the ".env" file...
USER_NAME="Your Name"
PASSWORD="super secret"
Run the example script:
python app/my_script.py
# ... OR ...
python -m app.my_script