|
1 | 1 | # Pandas SQLAlchemy Tutorial |
2 | 2 |
|
3 | 3 |  |
4 | | - |
5 | | - |
6 | | - |
| 4 | + |
| 5 | + |
| 6 | + |
7 | 7 |  |
8 | 8 | [](https://github.com/hackersandslackers/pandas-sqlalchemy-tutorial/issues) |
9 | 9 | [](https://github.com/hackersandslackers/pandas-sqlalchemy-tutorial/stargazers) |
|
13 | 13 |
|
14 | 14 | Easily drop data into Pandas from a SQL database, or upload your DataFrames to a SQL table. Tutorial found here: https://hackersandslackers.com/connecting-pandas-to-a-sql-database-with-sqlalchemy/ |
15 | 15 |
|
16 | | -## Getting Started |
17 | 16 |
|
18 | | -Installation is recommended with Pipenv: |
| 17 | +## Installation |
| 18 | + |
| 19 | +**Installation via `requirements.txt`**: |
19 | 20 |
|
20 | 21 | ```shell |
21 | 22 | $ git clone https://github.com/hackersandslackers/pandas-sqlalchemy-tutorial.git |
22 | 23 | $ cd pandas-sqlalchemy-tutorial |
23 | | -$ pipenv shell |
24 | | -$ pipenv update |
| 24 | +$ python3 -m venv myenv |
| 25 | +$ source myenv/bin/activate |
| 26 | +$ pip3 install -r requirements.txt |
25 | 27 | $ python3 main.py |
26 | 28 | ``` |
27 | 29 |
|
28 | | -Alternatively, try installing via `setup.py`: |
| 30 | +**Installation via [Pipenv](https://pipenv-fork.readthedocs.io/en/latest/)**: |
29 | 31 |
|
30 | 32 | ```shell |
31 | 33 | $ git clone https://github.com/hackersandslackers/pandas-sqlalchemy-tutorial.git |
32 | 34 | $ cd pandas-sqlalchemy-tutorial |
33 | | -$ python3 setup.py install |
| 35 | +$ pipenv shell |
| 36 | +$ pipenv update |
34 | 37 | $ python3 main.py |
35 | 38 | ``` |
36 | | ------ |
37 | 39 |
|
38 | | -**Hackers and Slackers** tutorials are free of charge. If you found this tutorial helpful, a [small donation](https://www.buymeacoffee.com/hackersslackers) would be greatly appreciated to keep us in business. All proceeds go towards coffee, and all coffee goes towards more content. |
| 40 | +## Usage |
| 41 | + |
| 42 | +Replace the values in **.env.example** with your values and rename this file to **.env**: |
| 43 | + |
| 44 | +* `SQLALCHEMY_DATABASE_URI`:Connection URI of a SQL database. |
| 45 | + |
| 46 | +*Remember to never commit secrets saved in .env files to Github.* |
| 47 | +------------------ |
| 48 | + |
| 49 | +**Hackers and Slackers** tutorials are free of charge. If you found this tutorial helpful, a [small donation](https://www.buymeacoffee.com/hackersslackers) would be greatly appreciated to keep us in business. All proceeds go towards coffee, and all coffee goes towards more content. |
0 commit comments