Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Readme
.. image:: https://github.com/pabluk/libgravatar/actions/workflows/python-package.yml/badge.svg :target: https://github.com/pabluk/libgravatar/actions/workflows/python-package.yml
A library that provides a Python 3 interface for the Gravatar API. API details: https://en.gravatar.com/site/implement/
Install via pip::
$ pip install libgravatar
See more details on https://libgravatar.readthedocs.org/
Gravatar API
Gravatar API requires no authentication to get images and profiles URLs.
Getting the user profile image:
.. code-block:: python
from libgravatar import Gravatar
g = Gravatar('myemailaddress@example.com')
g.get_image()
'https://www.gravatar.com/avatar/0bc83cb571cd1c50ba6f3e8a78ef1346'
Getting the profile URL:
.. code-block:: python
from libgravatar import Gravatar
g = Gravatar('myemailaddress@example.com')
g.get_profile()
'https://www.gravatar.com/0bc83cb571cd1c50ba6f3e8a78ef1346'
Gravatar XML-RPC API
The XML-RPC API requires authentication.
You can use your Gravatar.com's email and password:
.. code-block:: python
from libgravatar import GravatarXMLRPC
g = GravatarXMLRPC('name@example.com', password='1234')
g.test() # test the API
or if you have an account at Wordpress.com you can use your email and API key. You can find your API key at https://apikey.wordpress.com/ just be sure to pass to the function your email instead of your username:
.. code-block:: python
from libgravatar import GravatarXMLRPC
g = GravatarXMLRPC('name@example.com', apikey='1234')
g.test() # test the API
To contribute to this project or to test this library locally you'll need to install these dependencies:
.. code-block:: shell
python3 -m venv venv # for example on a virtual environment
source venv/bin/activate
pip install pytest black
and you can validate your changes running:
.. code-block:: shell
pytest --doctest-modules --verbose
black . --check --diff
@pabluk <https://github.com/pabluk>
_)@cfangmeier <https://github.com/cfangmeier>
_)@snowjet <https://github.com/snowjet/>
_)@mentix02 <https://github.com/mentix02/>
_)@xurble <https://github.com/xurble/>
_)@nutjob4life <https://github.com/nutjob4life/>
_)FAQs
A library that provides a Python 3 interface for the Gravatar API.
We found that libgravatar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.