Skip to main content

Working with iterable data structures made easy

Project description

https://badge.fury.io/py/instructions.svg https://img.shields.io/pypi/dm/instructions.svg https://img.shields.io/travis/maxtepkeev/instructions/master.svg https://img.shields.io/coveralls/maxtepkeev/instructions/master.svg

All developers are doing the same thing everyday - they’re searching for some values inside iterable data structures, trying to filter them somehow or count elements inside which satisfy some requirements. We keep writing the same code over and over again from project to project. There’s no more need to do this, Instructions to the rescue. Instructions is a library, written in Python to simplify lives of Python developers. This is how we could write some code using Instructions which searches for a string with a length of 3 inside a list of values:

>>> instructions.findstring__len(3).inside(['foo', 'bar', 'blah', 1, 2])

Instructions does all the hard work for you, just tell it what do you want to do in plain english and it will magically execute your instruction.

Features

  • Supports Python 2.6 - 3.4, PyPy and PyPy3

  • Supports all built-in Python data types

  • Easily extendable

  • Extensively documented

  • Comes with more than 100 filters

Installation

To install Instructions, simply:

$ pip install instructions

or:

$ easy_install instructions

Documentation

Documentation is available at https://instructions.readthedocs.org.

Contacts and Support

I will be glad to get your feedback, pull requests, issues, whatever. Feel free to contact me for any questions.

Donations and Sponsorship

If you like this project and want to support it you have 3 options:

  1. Just give this project a star at the top of the page.

  2. You can express your gratitude via Gratipay.

  3. Become a sponsor. Contact me via tepkeev at gmail dot com if you are interested in becoming a sponsor and we will discuss the terms and conditions.

Changelog

0.1.0 (2015-02-24)

  • Initial release

Project details


Download files

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

Source Distribution

instructions-0.1.0.tar.gz (10.9 kB view details)

Uploaded Source

File details

Details for the file instructions-0.1.0.tar.gz.

File metadata

  • Download URL: instructions-0.1.0.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for instructions-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6b40d0d68cf7290b0053700cb781218a0342f085ebb8fd5ef7fd88c782cbb6f4
MD5 cd0988a3ca8909e8fd6c74287bb4c918
BLAKE2b-256 f4d859af1b57b8e7bf272b87f676b6a91d1aeb186cf65f281e7fa948eeac6c25

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page