Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
.. image:: https://badge.fury.io/py/eventbrite.png :target: http://badge.fury.io/py/eventbrite
.. image:: https://travis-ci.org/eventbrite/eventbrite-sdk-python.svg?branch=master :target: https://travis-ci.org/eventbrite/eventbrite-sdk-python
::
$ pip install eventbrite
If you need to, you can also use easy_install
::
$ easy_install eventbrite
The Eventbrite Python SDK makes it trivial to interact with the Eventbrite API:
.. code-block:: python
>>> from eventbrite import Eventbrite
>>> eventbrite = Eventbrite('my-oauth-token')
>>> user = eventbrite.get_user() # Not passing an argument returns yourself
>>> user['id']
1234567890
>>> user['name']
Daniel Roy Greenfeld
You can also specify API endpoints manually:
.. code-block:: python
>>> user = eventbrite.get('/users/me')
>>> user['id']
1234567890
>>> user['name']
Daniel Roy Greenfeld
Expansions_ can be included in a returned GET resource by simply adding the expand
keyword to the calling method:
.. code-block:: python
>>> event = eventbrite.get_event('my-event-id')
>>> 'ticket_classes' in evbobject
False
>>> event = eventbrite.get_event('my-event-id', expand='ticket_classes')
>>> 'ticket_classes' in evbobject
True
.. _Expansions: http://www.eventbrite.com/developer/v3/reference/expansions/
When using Flask, you can convert incoming webhook requests into Eventbrite
API objects using the webhook_to_object()
method:
.. code-block:: python
@app.route('/webhook', methods=['POST'])
def webhook():
# Use the API client to convert from a webhook to an API object
api_object = eventbrite.webhook_to_object(request)
# Process the API object
if api_object.type == 'User':
do_user_process(api_object)
if api_object.type == 'Event':
do_event_process(api_object)
return ""
Because this client interacts with Eventbrite's third API (a.k.a. APIv3), we are tying our release numbers against it in a modified-semantic system:
.. _requests: https://pypi.python.org/pypi/requests .. _Eventbrite: https://www.eventbrite.com
Bug reports and pull requests are welcome on GitHub at https://github.com/eventbrite/eventbrite-sdk-python.
The library is available as Open Source under the terms of the Apache License, Version 2.0 <http://www.apache.org/licenses/LICENSE-2.0>
_.
get_format()
and get_formats()
methods, to use the right endpoint.Added 3 new user endpoints, thanks to @jon-ga (#29)
eventbrite_api_url
argument.__version__
. Thank you @meshy and @longjos for identifying the problem.get_event_ticket_class()
method.events
mapping to provide GET access to the Event endpoint.FAQs
Official Eventbrite SDK for Python
We found that eventbrite demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.