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.1-py27-none-any.whl (4.9 kB view details)

Uploaded Python 2.7

File details

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

File metadata

File hashes

Hashes for pkutils-0.6.1-py27-none-any.whl
Algorithm Hash digest
SHA256 3cf12bb5cf7b777d28d9c5ce18111a200ddfd5c5e507c0d8d68893aa2901851b
MD5 4790afc7788bc490efa3f4dc3f9d9889
BLAKE2b-256 378d2f4bf166c2d8c867c2e73bbc63bfcffd0a7be730d37e1f031f4aa6172b3c

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

This release

0.6.1 This release

1 file

0.6.0

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