Demonstrate docstrings and does nothing really.
Project description
pyoffice
what is this?
example for best practices in python packaging.
requirements
pip install -r requirements.txt
install
to install PyOffice, do:
git clone https://github.com/mynameisvinn/PyOffice
cd PyOffice
python setup.py 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.
usage
>>> from PyOffice import CalculatorProcessor
>>> my_calc = CalculatorProcessor()
>>> my_calc.add(2,3)
# 5
create a pypi package
package script
create setup.py, which will be the workhorse of pypi packaging, and then package script by
python setup.py sdist # creates dist folder, which stores tarred copy
upload to pypi
assuming youve registered with pypi, do
python setup.py register # authenticate
python setup.py sdist upload # uploads entire file to pypi
you can view package at https://pypi.python.org/pypi/PyOffice/0.1.0
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file PyOffice-0.2.tar.gz
.
File metadata
- Download URL: PyOffice-0.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.18.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0916193d3e9edaf2a8820a99b46bb6be4375ea3108df6ce8fcd6ed2ae28d7dd |
|
MD5 | 463cb0a1090dc325dfa62a52430d17e9 |
|
BLAKE2b-256 | 967e25d230749547625b09315268d576c38151a8f7b9bcb6063c407642d54c8d |
File details
Details for the file PyOffice-0.2-py3-none-any.whl
.
File metadata
- Download URL: PyOffice-0.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.18.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cacbd7ee5d1fd0da19c102020244d42bd66112a7c24b689523119ad2efc2897 |
|
MD5 | e5fc4cc28e438e64d4f5fa9db3c9f8f7 |
|
BLAKE2b-256 | fcdbebef5545777e12eaec52b73088b74c1d6babf06d964a7bb5b62e9fd4eecc |