Skip to main content

A collection of useful non-standard Python functions which aim to be simple to use, highly readable but not efficient.

Project description

A collection of useful non-standard Python functions which aim to be simple to use, highly readable but not efficient.

An example:

>>> from fpyutils import filelines
>>> f = open('foo.txt')
>>> f.read()
"This is\nfoo.\nfoo\nThis is\nnot\nbar.\nAnd it's\n    foo\n\nBye!\n"
>>> import fpyutils
>>> fpyutils.get_line_matches('foo.txt','foo',5)
{1: 3, 2: 8}

Documentation

http://frnmst.github.io/fpyutils

Conventions

  • PEP.

  • For each module m.py it exists, if necessary, its utility file called _m.py

  • 4 space indentation.

Workflow for implementing new modules

  1. Define your idea

  2. Implement a unit test class

  3. Write the code

  4. Test it (run make test)

  5. PEP standards compliancy (run make pep)

  6. Update the documentation (run make doc)

  7. Make a pull request

License

Copyright (C) 2017 frnmst (Franco Masotti) <franco.masotti@live.com> <franco.masotti@student.unife.it>

fpyutils is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

fpyutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with fpyutils. If not, see <http://www.gnu.org/licenses/>.

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

fpyutils-0.0.2.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

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

fpyutils-0.0.2-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file fpyutils-0.0.2.tar.gz.

File metadata

  • Download URL: fpyutils-0.0.2.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fpyutils-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7342a92a9aed6f19a82d1e17b6ef6dcdcacd7d817cfd7fbfc0d012bce35c62c4
MD5 4f5d9609fee6236dcf3fffc247f44b0d
BLAKE2b-256 a0b80ef1f62311882035e4f6d9f18955291b8b4d90ae50771d7cef67b0bb0598

See more details on using hashes here.

File details

Details for the file fpyutils-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for fpyutils-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6c1a5def2cf423f342ec14e19e7508404e1150a19a50798ffbfff4b9596bbabc
MD5 e7b31d3861bfb646cb6ad0940152b601
BLAKE2b-256 19bd2565977cf0ec4eba88b7303b0b2a996e2bddb923bb26988d4a4a86a94055

See more details on using hashes here.

Supported by

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