8000 GitHub - frankmeszaros/python-template: A lightweight python template that has the basic `Pipfile` setup plus a small helper script to generate requirements.txt
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A lightweight python template that has the basic `Pipfile` setup plus a small helper script to generate requirements.txt

License

Notifications You must be signed in to change notification settings

frankmeszaros/python-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-template

Pipenv boilerplate, with a little extra help to easily (re-)generaterequirements.txt files.

Quickstart

Using the Github CLI

gh repo create --template frankmeszaros/python-template create <your-repo-name>

Now you can easily use pipenv generate_requirements to (re-)generate requirements.txt files from your Pipefile.lock!

Problem statement

Working with pipenv is nice for local development, but sometimes you still need a requirements.txt file for your deployments.

Example

On Amazon Linux AMI Python platform versions, Elastic Beanstalk doesn't natively support Pipenv or Pipfiles. If you use Pipenv to manage your application's dependencies, run the following command to generate a requirements.txt file.

Source: AWS Elasticbeanstalk: Specifying dependencies using a requirements file

In-Depth Example: Install Django

gh repo create --template frankmeszaros/python-template create <your-repo-name>
cd <your-repo-name>

pipenv shell
pipenv install django
pipenv generate_requirements

That's it! You should now have a requirements.txt and requirements.dev.txt in your directory!

About

A lightweight python template that has the basic `Pipfile` setup plus a small helper script to generate requirements.txt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0