Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
|Build Status| |PyPI version|
pip install chargehound
Import chargehound and set your API key.
.. code:: python
import chargehound chargehound.api_key = '{ YOUR_API_KEY }'
Requests
Every resource is accessed via the Chargehound module.
.. code:: python
dispute = chargehound.Disputes.submit('dp_123', fields={'customer_name': 'Susie'})
Response
Responses from the API are automatically parsed from JSON and returned as Python objects.
Responses also include the HTTP status code on the response object as the status field.
.. code:: python
dispute = chargehound.Disputes.retrieve('dp_123')
print dispute.state
print dispute.response.status
Disputes <https://www.chargehound.com/docs/api/index.html?python#disputes>
__
Errors <https://www.chargehound.com/docs/api/index.html?python#errors>
__
To build and install from the latest source:
.. code:: bash
$ git clone git@github.com:chargehound/chargehound-python.git $ pip install -r dev_requirements.txt
Run tests:
.. code:: bash
$ python setup.py test
If you added a new depency, make sure the change is reflected in the
requirements.txt
file (for unit tests), the dev_requirements.txt
file (for module publishers) and the setup.py
file (for module
consumers).
To deploy a new version of the SDK, you will need Pandoc (http://pandoc.org/) installed. Pandoc will convert the README.md into the .rst format required for the Python repository. Instructions are here: http://pandoc.org/installing.html.
Next, install PyPandoc, the Python wrapper for Pandoc, following these instructions <https://pypi.python.org/pypi/pypandoc>
__.
The last pre-requisite is
Twine <https://pypi.python.org/pypi/twine>
__, a utility for
interacting with PyPi.
Once Pandoc, PyPandoc and Twine are installed, you can build and deploy a new module to PyPi with the following steps:
chargehound/version.py
and
setup.py
python setup.py sdist
twine upload dist/{name_of_generated_package}
.. |Build Status| image:: https://travis-ci.org/chargehound/chargehound-python.svg?branch=master :target: https://travis-ci.org/chargehound/chargehound-python .. |PyPI version| image:: https://badge.fury.io/py/chargehound.svg :target: https://badge.fury.io/py/chargehound
FAQs
Chargehound Python Bindings
We found that chargehound demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.