semvec/pypi-packages huggingface dataset:
simple-stripe-client 0.0.2
A simple lightweight api client for awesome stripe
License: MIT
Keywords: stripe,api,payments,stripe client

# simple-stripe-client
A simple lightweight api client for awesome stripe.

# Example

```python
import simple_stripe_client
import os
STRIPE_SECRET_KEY = os.environ.get('STRIPE_SECRET_KEY')
# create client
stripe_api = simple_stripe_client.Api(STRIPE_SECRET_KEY, debug_http=True)


CHARGE_DATA = {
    'amount': 15921,
    'currency': 'gbp',
    'capture' : False,
    'source': 'tok_amex',
    'metadata': {
        'first_name' : 'Sachin',
        'last_name'  : 'Tendulkar',
    } 
}

# Creating Charge
charge = stripe_api.charges.post(**CHARGE_DATA)

CHARGE_ID = 'ch_xxx'
# Fetching Charge
charge = stripe_api.charges.id(CHARGE_ID).get()

# Update Charge
charge = stripe_api.charges.id(CHARGE_ID).post(description='Test Update')

# Capture Charge
charge = stripe_api.charges.id(CHARGE_ID).capture.post(amount=12000)


```

# Building Stripe's Curl URLs


URLs would match one-to-one to stripe's curl api urls.
For more links please refer to [stripe doc](https://stripe.com/docs/api?lang=curl)

```

stripe_api.charges                                  # == /v1/charges
stripe_api.charges.id(CHARGE_ID)                    # == /v1/charges/{CHARGE_ID}    

stripe_api.customers                                # == /v1/customers
stripe_api.customers.id(CUSTOMER_ID)                # == /v1/customers/{CUSTOMER_ID}

stripe_api.invoices                                 # == /v1/invoices
stripe_api.invoices.id(INVOICE_ID)                  # == /v1/invoices/{INVOICE_ID}

```

# TODO
 * Add support for Stripe Connect, Files
 * Add more extensive tests

# Changelog -
# 0.0.2 (01-02-2019)
 * fixed issue for python 2

# 0.0.1 (01-02-2019)
 * initial release
detective 1.0.2
A private detective that gathers information you're not supposed to know about.
License: MIT
Keywords: vulnerability,bug-bounty,security,information-disclosure,sensitive-data-exposure,scanner

.. image:: https://rawgit.com/tijme/detective/develop/.github/logo.png
   :width: 300px
   :height: 300px
   :alt: Detective logo

*********
Detective
*********
   
.. image:: https://raw.finnwea.com/shield/?firstText=Donate%20via&secondText=Bunq
   :target: https://bunq.me/tijme/0/Raivo;%20a%20native,%20lightweight%20and%20secure%20one-time%20&%20time-based%20password%20client%20built%20for%20iOS
   :alt: Donate via Bunq
   
.. image:: https://raw.finnwea.com/shield/?typeKey=SemverVersion&typeValue1=detective&typeValue2=master
   :target: https://pypi.python.org/pypi/detective/
   :alt: PyPi version

.. image:: https://raw.finnwea.com/shield/?firstText=License&secondText=MIT
   :target: https://github.com/tijme/detective/blob/master/LICENSE.rst
   :alt: License: MIT



Detective helps you find information (at your favorite bug bounty program) that you are not supposed to see. It primarily focuses on information disclosure and sensitive data exposure vulnerabilities.

Table of contents
-----------------

-  `Installation <#installation>`__
-  `Usage <#usage>`__
-  `Issues <#issues>`__
-  `License <#license>`__

Installation
------------

First make sure you're on `Python 2.7/3.3 <https://www.python.org/>`__ or higher. Then run the command below to install Detective.

``$ pip install --upgrade detective``

Usage
-------------

**Help**

.. code:: text

   usage: detective [-h] -d DOMAIN [-pmm] [-cos] [-coh] [-cot] [-siv] [-md MAX_DEPTH] [-mt MAX_THREADS]

   required arguments:
      -d DOMAIN, --domain DOMAIN                  the domain to crawl (e.g. https://finnwea.com)

   optional arguments:
      -h, --help                                  show this help message and exit
      -pmm, --protocol-must-match                 only crawl pages with the same protocol as the startpoint (e.g. only https)
      -cos, --crawl-other-subdomains              also crawl pages that have another subdomain than the startpoint
      -coh, --crawl-other-hostnames               also crawl pages that have another hostname than the startpoint
      -cot, --crawl-other-tlds                    also crawl pages that have another tld than the startpoint
      -siv, --stop-if-vulnerable                  stop crawling if a vulnerability was found
      -md MAX_DEPTH, --max-depth MAX_DEPTH        the maximum search depth (default is unlimited)
      -mt MAX_THREADS, --max-threads MAX_THREADS  the maximum amount of simultaneous threads to use (default is 8)

**Example**

``detective -d https://finnwea.com -siv``

Issues
------

Issues or new features can be reported via the GitHub issue tracker. Please make sure your issue or feature has not yet been reported by anyone else before submitting a new one.

License
-------

Detective is open-sourced software licensed under the `MIT license <https://github.com/tijme/detective/blob/master/LICENSE.rst>`__.