Skip to main content
# pkutils

## Introduction

pkutils is a Python library that simplifies python module packaging.

With pkutils, you can

- Parse requirements files
- Read text files
- and much more...

## Requirements

pkutils has been tested on the following configuration:

- MacOS X 10.9.5
- Python 2.7.9

pkutils requires the following in order to run properly:

- [Python >= 2.7](http://www.python.org/download) (MacOS X comes with python preinstalled)

## Installation

(You are using a [virtualenv](http://www.virtualenv.org/en/latest/index.html), right?)

sudo pip install pkutils

## Usage

`cat setup.py`

```python
import pkutils

try:
from setuptools import setup
except ImportError:
from distutils.core import setup

requirements = list(pkutils.parse_requirements('requirements.txt'))
dependencies = list(pkutils.parse_requirements('requirements.txt', True))
dev_requirements = list(pkutils.parse_requirements('dev-requirements.txt'))
readme = pkutils.read('README.md')

setup(
long_description=readme,
install_requires=requirements,
tests_require=dev_requirements,
dependency_links=dependencies,
classifiers=[
pkutils.LICENSES['MIT'],
...
],
...
)
```

## Scripts

pkutils comes with a built in task manager `manage.py` and a `Makefile`.

### Setup

pip install -r dev-requirements.txt

### Examples

*Run python linter and nose tests*

```bash
manage lint
manage test
```

Or if `make` is more your speed...

```bash
make lint
make test
```

## Contributing

View [CONTRIBUTING.rst](https://github.com/reubano/pkutils/blob/master/CONTRIBUTING.rst)

## License

pkutils is distributed under the [MIT License](http://opensource.org/licenses/MIT).

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pkutils-0.6.0-py27-none-any.whl (4.9 kB view details)

Uploaded Python 2.7

File details

Details for the file pkutils-0.6.0-py27-none-any.whl.

File metadata

File hashes

Hashes for pkutils-0.6.0-py27-none-any.whl
Algorithm Hash digest
SHA256 c876dbb02ca0f53d9b54af92c0870f4881d39624138bbc69e6fde92a2c1f371d
MD5 6590ed651fb9f292a1244331ebbd2681
BLAKE2b-256 32ed759962438e3aff4fd240c084ab89bb6792182a5320e6b43cb4e7fc8192cd

See more details on using hashes here.

Release history Release notifications | RSS feed

3.0.2

2 files

3.0.1

2 files

3.0.0

2 files

2.1.1

2 files

2.1.0

2 files

2.0.0

2 files

1.2.1

2 files

1.2.0

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

2 files

0.13.6

2 files

0.13.5

2 files

0.13.4

2 files

0.13.3

2 files

0.13.2

2 files

0.13.1

2 files

0.13.0

2 files

0.12.4

2 files

0.12.3

2 files

0.12.2

2 files

0.12.0

2 files

0.11.1

2 files

0.11.0

2 files

0.10.2

2 files

0.10.0

2 files

0.6.1

1 file

This release

0.6.0 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page