Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

simple subset of regex

Project Description
# simplex 0.1.2

Downloads https://pypi.python.org/pypi/simplex

Source https://github.com/numberoverzero/simplex

simple subset of regex that 'compiles' to python regexs

# Installation

`pip install simplex`

# Getting Started

```python
import simplex

pattern = "Hello, [name]"
compiled = simplex.compile(pattern)

# compiled is now a regular regexp
string = "Hello, jack and jill and world!"
match = regex.match(message)
fields = match.groupdict()
print(fields['name'])

```

# Versioning and RFC2812

* Simplex follows semver for its **public** API.

* Currently, `compile` is the only public function of simplex.
* You should not rely on the internal api staying the same between minor versions.
* Over time, private apis may be raised to become public. The reverse will never occur.


# Contributing
Contributions welcome! Please make sure `tox` passes (including flake8) before submitting a PR.

### Development
simplex uses `tox`, `pytest` and `flake8`. To get everything set up:

```
# RECOMMENDED: create a virtualenv with:
# mkvirtualenv simplex
git clone https://github.com/numberoverzero/simplex.git
pip install tox
tox
```

# API

### compile(pattern)

TODO: document the rules for compiling patterns
Release History

Release History

This version
History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
simplex-0.1.2.tar.gz (3.0 kB) Copy SHA256 Checksum SHA256 Source Feb 10, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting