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

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

You can also import existing code and adapt it for this library, if you think it’s useful.

License

Copyright (C) 2017-2019 frnmst (Franco Masotti) <franco.masotti@live.com>

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-1.1.0.tar.gz (16.3 kB view hashes)

Uploaded Source

Built Distribution

fpyutils-1.1.0-py3-none-any.whl (18.4 kB view hashes)

Uploaded Python 3

Supported by

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