Giter Club home page Giter Club logo

pyrobase's Introduction

pyrobase

Travis CI Documentation Status Issues PyPI

General Python Helpers and Utilities.

pyrobase assembles general Python helper functions and classes that can be applied to any project. That includes some additional tasks for the Paver build tool, an improved xmlrpc2scgi module, unit test helpers, and generic base modules for various domains.

All modules have unit tests (currently pyrobase.paver is an exception), and the goal is to reach >80% coverage.

GitHub:https://github.com/pyroscope/pyrobase#readme
PyPI:http://pypi.python.org/pypi/pyrobase/
API docs:https://pyrobase.readthedocs.io/en/latest/api.html
OpenHub:https://www.openhub.net/p/pyrobase

Install the package with python -m pip install --user pyrobase, or more commonly just add it as a dependency to your project and call python -m pip install -r requirements.txt. Installing into a virtualenv is recommended.

See the project's unit tests for examples, and for a full API documentation visit the API Reference.

The Contributing Guidelines tell you how to report problems and request new features, and what to do as a developer or documentation author.

pyrobase's People

Contributors

kannibalox avatar pyroscope avatar yorickvp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pyrobase's Issues

Bencode Error...

data = bencode.bread( torrentPath )
File "/local/lib/python2.7/site-packages/pyrobase-0.2-py2.7.egg/pyrobase/bencode.py", line 173, in bread
return bdecode(handle.read())
File "/local/lib/python2.7/site-packages/pyrobase-0.2-py2.7.egg/pyrobase/bencode.py", line 156, in bdecode
return Decoder(bytes, char_encoding).decode(check_trailer=True)
File "/local/lib/python2.7/site-packages/pyrobase-0.2-py2.7.egg/pyrobase/bencode.py", line 94, in decode
obj[key] = self.decode()
File "/local/lib/python2.7/site-packages/pyrobase-0.2-py2.7.egg/pyrobase/bencode.py", line 93, in decode
key = self.decode()
File "/local/lib/python2.7/site-packages/pyrobase-0.2-py2.7.egg/pyrobase/bencode.py", line 49, in decode
self.offset, len(self.bytes),
BencodeError: Unexpected end of data at offset 60408/15786

Python3 error with bencode

I'm using this with Python 3.9. Seems to me to be a compatibility error with the sorted method.

bencode.py line 136, in encode
for key, val in sorted(obj.items()):
TypeError: '<' not supported between instances of 'bytes' and 'str'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.