Resources for Pypi

The Python Package Index


We implement our own command in Python and distribute it via pip with pip install sheet2graph.

The command takes spreadsheets files (csv, xlsx) as input, and generates images (png, jpg, svg) based on the data contained.


We will start preparing our command for distribution in pypi for it to be installable with pip, and testing the distribution in a test environment.

• Finding a proper name for our command
• Folder structure and necessary files
• Changes in the entry point of our program
• Generating a good README file in Markdown
• Examples and documentation

• Choosing a license
• Dependencies and versioning
• Setup.cfg and
We have all the files. We will test the distribution at before publishing it in the real repository. This way we will be able to fix any mistakes.

• How to test in the environment
• Using Twine to distribute your module
• Creating a new account at testing (
• Secure tokens in .pypirc or interactively for testing
• Versioning increases with each code change
• Fixing errors and testing the new version in the test environment
• Problems with images as documentation in the README file
After testing at, we will fix an error with the example image in the documentation and distribute our command 'sheet2graph' to the real production environemnt at

• Fixing error with images in at
• Creating a new account at production (
• New secure tokens in .pypirc or interactively for production
• Solving problems with secure tokens
In this episode we put everything together and install our own command by typing 'pip install sheet2graph'. We test it both in a virtual environment and globally. We also talk about what this means to distribute code you develop easily to the world, something that now should be a lot more approachable. As always, we need to be mindful of publishing useful and tested code, and in general to play well within the ecosystem.

If you made it here I hoped you liked it. Subscribe or Connect with me on Twitter for updates on fromzerotofullstack.

• Solving problems with secure tokens
• Installing our new command using pip
• Testing on a new virtual environment
• Etiquette of publishing your modules and libraries

Short Videos

No short videos found for 'pypi'