Installation and setup instructions
Welcome to Doglang! Follow the instructions below to get started quickly with installing and running Doglang on your machine.
Option 1: Install from PyPI (Recommended)
The easiest way to install Doglang is via Python's package manager pip. This option installs Doglang globally so you can run it from the command line anywhere.
Requirements
- Python 3.6 or higher
- pip installed (usually included with Python)
Installation Command
Open your terminal or command prompt and run:
Verify Installation
To verify Doglang was installed successfully, run:
This should display the Doglang command line usage information.
Option 2: Install from GitHub Repository
You can install Doglang directly from the GitHub repository.
Method A: Direct Install from GitHub
Install directly using pip:
Method B: Clone and Install Locally
-
Clone the repository:
-
Change into the project directory:
-
Install the package:
For development (editable install):
This allows you to make changes to the source code and see them reflected immediately without reinstalling.
Verify Installation
After installation, verify it works:
Running Doglang Programs
Once installed (via any method above), use the doglang command:
Running a program from a file
Running code directly from command line
Execute inline commands:
Example with sample files
Try the included examples:
Additional Options
View Tokens (for debugging)
To see the tokens generated from your code:
Help Command
View all available options:
Using a Virtual Environment (Recommended)
It's good practice to use a virtual environment:
# Create virtual environment
python -m venv venv
# Activate it
# On macOS/Linux:
source venv/bin/activate
# On Windows:
venv\Scripts\activate
# Install Doglang
pip install doglang
# OR install from local clone
pip install .
# When done, deactivate
deactivate
Troubleshooting
Command Not Found
If doglang command is not found after installation:
- Make sure pip's bin directory is in your PATH
-
Try using the full path:
-
Or reinstall with:
Permission Errors
On some systems, you might need to use pip install --user:
Or use sudo (not recommended):
Import Errors
If you get import errors, ensure you're in the correct directory and the package is properly installed:
Notes
- Doglang source files use the
.doggyextension - Make sure your Python version is 3.6 or higher:
python --version - The
doglangcommand is available globally after installation - No need to run
python doglang.py- that file doesn't exist as an entry point - If you encounter issues, check your Python and pip versions or raise an issue in the GitHub repo
Uninstalling
To remove Doglang:
Enjoy coding with Doglang! 🐾