Skip to main content

Demonstrate docstrings and does nothing really.

Project description


what is this?

example for best practices in python packaging.


pip install -r requirements.txt


to install PyOffice, do:

git clone
cd PyOffice
python install

or, get it straight from pypi:

python -m pip install PyOffice

once installed, python search for pyoffice in site-packages folder, which isdefined in .bash_profile.

export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/site-packages

you can check python path from terminal:

env | grep PYTHONPATH

verify that install placed source code in the appropriate site-packages folder with:

cd /usr/local/lib/python2.7/site-packages

you should see "PyOffice" source code. other libraries (eg sklearn, scipy) reside in this folder too.


>>> from PyOffice import CalculatorProcessor
>>> my_calc = CalculatorProcessor()
>>> my_calc.add(2,3)
# 5

create a pypi package

package script

create, which will be the workhorse of pypi packaging, and then package script by

python sdist # creates dist folder, which stores tarred copy

upload to pypi

assuming youve registered with pypi, do

python register # authenticate
python sdist upload # uploads entire file to pypi

you can view package at

install with pip

youve seen this a million times before:

python -m pip install PyOffice

helpful links

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for PyOffice, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size PyOffice-0.2-py3-none-any.whl (3.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size PyOffice-0.2.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page