-
Notifications
You must be signed in to change notification settings - Fork 1
Getting Started
Shamik Karkhanis edited this page Jun 3, 2025
·
16 revisions
Ensure that you have Python 3.12 or newer installed on your system by running the following command:
python3 --versionIf Python is not installed, or you need a different version, follow the installation instructions for your operating system from the official Python documentation: https://www.python.org/downloads/.
You'll need to clone the repository containing the project. Open your terminal and execute the following command:
git clone https://github.com/CApy-RPI/app.git
cd app- Use a virtual environment to manage dependencies:
python -m venv .venv
# On Windows
.venv\Scripts\activate
# On Unix/MacOS
source .venv/bin/activate- Use
requirements.txtfor production dependencies andrequirements_dev.txtfor development dependencies:
# Install production dependencies
pip install -r requirements.txt
# Install development dependencies
pip install -r requirements_dev.txt-
requirements.txt: Contains the dependencies required for the application to run in production. -
requirements_dev.txt: Contains additional dependencies required for development, such as testing and linting tools.
Example requirements.txt:
discord.py
pymongo
Example requirements_dev.txt:
pytest
flake8
black
mypy
- Use '.env' file to hold all sensitive access tokens.
- Ask your project lead for access to these tokens.
- The .env file must be located in the directory from which you run the bot.
.venv\Scripts\activate
python src/capy_app/main.pyIf using the above to run the bot: .env must be in src/