# python_packages_survey **Repository Path**: mirrors_CamDavidsonPilon/python_packages_survey ## Basic Information - **Project Name**: python_packages_survey - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-03-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Python Packages Survey Take the survey: https://python-packages-survey.com/ ## Development #### Local Development The main app is Python 3.6+: ``` $ brew install python3 $ pip3 install -r requirements.txt ``` ``` $ brew install postgres $ brew services start postgresql ``` To create the database for the first time: `createdb testdb`. To create the tables locally for the first time: ``` $ python > from main import db > db.create_all() # inverse is db.drop_all() ``` Run the flask server locally ``` $ FLASK_ENV=development FLASK_APP=main.py python -m flask run ``` visit localhost:5000 #### Deployment and Production To deploy (Python 2.7 required) ``` gcloud app deploy ``` To modify the tables in prod GCP (run `./cloud_sql_proxy`) ``` $ ./cloud_sql_proxy -dir=/cloudsql & $ DBUSER=postgres DBPASS= INSTANCE_CONNECTION_NAME=pip-project-survey:northamerica-northeast1:testdb DBDATABASE=testdb ipython > from main import db > db.create_all() # inverse is db.drop_all() ```