Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tushortz/pygeminfo

A Python package that displays several information about a RubyGem.
https://github.com/tushortz/pygeminfo

Last synced: 5 days ago
JSON representation

A Python package that displays several information about a RubyGem.

Awesome Lists containing this project

README

        

.. -*- restructuredtext -*-

Description
===========

Pygeminfo is a python package for displaying statistics about Rubygems. Its equivalent is the Rubygem called `geminfo`. It allows you to see several information about a Gem like *Name, Author, UserID, Secure Hash Algorithm, Key, Total downloads, Latest version, total gems owned by author, gem's release date* etc.

MODULES --> gems
-----------------

Contains a class **Stats** that takes one argument **Gem name** and has seventeen methods to display several information.

Stats
^^^^^^

* name() --> returns gem name.
* authors() --> return gem's Author names.
* total() --> return gem's total download for all versions.
* latest() --> return Gem's total download for latest version.
* latestversion() --> returns gem's latest version.
* info() --> returns gem's description.
* licenses() --> returns gem's licenses.
* metadata() --> returns gem's metadata.
* sha() --> returns gem's Secure Hash Algoruthm 256 Checksum.
* projectURL() --> returns gem's project URL.
* gemURL() --> returns gem's URL.
* homepage() --> returns gem's dedicated website.
* wikiURL() --> returns gem's wiki URL.
* docURL() --> returns gem's documentation URL.
* mailURL() --> returns gem's mailing list URL.
* sourceURL() --> returns gem's source-code URL.
* bugURL() --> returns gem's bug tracking URL.

as well as seven other methods.

Methods
^^^^^^^^

.. code::

# Argument is gem's name
gemversions("eventsims")

# Argument is username or ID
usergems("pixeltrix")

# Argument is gem's name
owner("rails")

# Argument is gem's name, optional--> (page number , amount to show)
search("gem")

# Optional --> (amount to show)
latestgems(5)

# Optional --> (amount to show)
updatedgems(3)

# No optional argument
downloads()

Importing
"""""""""

.. code::

from pygeminfo.gems import *

help on using this package is included in the `examples folder`.

For more help information please see examples in the package or checkout its `documentation `_ at http://www.pythonhosted.org/pygeminfo/

Requirements
------------

* Any version of python

Download
---------

Download and install using:

.. code::

pip install pygeminfo

Issues
-------

There are some `unicode encoding` issues on python 2 but it works fine on Python 3. It also works on Python 2 but sometimes, the errors arise so its better and advisable to use it on Python 3. Furthermore, you may need to do

.. code::

pip install json
pip install requests

if it doesn't come with your python package

Acknowledgements
----------------

**All glory belongs to God and praise be to his holy name.**

Contact
-------

If further information or help is needed, feel free to contact me on my email at [email protected]
This is still in a test mode please if any error or bugs is found, feel free to contact the developer and give details