A Python package for fetching financial data from various sources including crypto exchanges, Alpaca, and Polygon.
- copy and rename .env.sample to .env
- populate the variables with your keys
- run
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
## Publishing to PyPI
Follow these steps to publish a new version to PyPI:
1. Update version in `setup.py`
```python
setup(
name='data_fetcher',
version='0.1.8', # Increment this
...
)
- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install build tools:
pip install --upgrade pip
pip install build twine- Build the package:
python -m build- Test the build (optional):
python -m twine check dist/*- Upload to TestPyPI (optional):
python -m twine upload --repository testpypi dist/*- Upload to PyPI:
python -m twine upload dist/*You'll need PyPI credentials to upload. You can store them in ~/.pypirc or enter them when prompted.