Saravanan666/pypi-org huggingface dataset:
Package: paysafecard
Paysafecard-python==================A class that implements the classic payment function of http://www.paysafecard.com================================## Instalation:```pip install paysafecard```## Example usageCreate the disposition and if it is successfull then redirect to the url.```from paysafecard.main import PaySafeCardpaysafe = PaySafeCard(username="", password="", debug=True, test=True)paysafe.set_field('currency', 'EUR')paysafe.set_field('amount', '10.00')paysafe.set_field('mtid', 'transaction-id')paysafe.set_field('merchantclientid', 'user-id')paysafe.set_field('mid', 'currency-id')paysafe.set_field('clientIp', '192.168.0.1')paysafe.set_field('okUrl', '')paysafe.set_field('nokUrl', '')paysafe.set_field('pnUrl', '')if paysafe.create_disposition():redirect_url = paysafe.get_url()else:return False```After the client enters the required information you may have 2 cases one on the pnurl other to the okurl this function ensures that the amount was taken from paysafe to your account.```from paysafecard.main import PaySafeCardpaysafe = PaySafeCard(username='', password='', debug=True, test=True)paysafe.set_field('amount', '10.00')response = paysafe.get_serial_numbers('currency-id', 'EUR')if response:if response == 'execute':if paysafe.execute_debit('10.00'):return Trueelse:return Falseelse:return Falseelse:return False```
Package: paysage
# PaysagePaysage is library for unsupervised learning and probabilistic generative models written in Python. The library is still in the early stages and is not yet stable, so new features will be added frequently.Currently, paysage can be used to train things like:Bernoulli Restricted Boltzmann MachinesGaussian Restricted Boltzmann MachinesHopfield ModelsUsing advanced mean field and Markov Chain Monte Carlo methods.## Physics-inspired machine learning
*Better performance through better algorithms. We are focused on making better Monte Carlo samplers, initialization methods, and optimizers that allow you to train Boltzmann machines without emptying your wallet for a new computer.
*Stay close to Python. Everybody loves Python, but sometimes it is too slow to get the job done. We want to minimize the amount of computation that gets shifted to the backend by targeting efforts for acceleration to the main bottlenecks in training.## Installation:
We recommend using paysage with Anaconda3. Simply,Clone this git repoMove into the directory with setup.pyRun “pip install -e .”Running the examples requires a file mnist.h5 containing the MNIST dataset of handwritten images. The script download_mnist.py in the mnist/ folder will fetch the file from the web.## Using PyTorch
Paysage uses one of two backends for performing computations. By default, computations are performed using numpy/numexpr/numba on the CPU. If you have installed [PyTorch](http://pytorch.org), then you can switch to the pytorch backend by changing the setting inpaysage/backends/config.jsontopytorch. If you have a CUDA enabled version of pytorch, you can change the setting inpaysage/backends/config.jsonfromcputogputo run on the GPU.## System Dependencieshdf5, 1.8 required required by tablesllvm, llvm-config required by scikit-learn## About the name:
Boltzmann machines encode information in an [“energy landscape”](https://en.wikipedia.org/wiki/Energy_landscape) where highly probable states have low energy and lowly probable states have high energy. The name “landscape” was already taken, but the French translation “paysage” was not.
Package: paysdk
Python SDK (Open Source)本项目的官方GitHub地址是https://github.com/jasonhzy/paysdk-pythonSDK支持以下支付渠道:微信支付宝银联PayPal百度钱包京东易宝、快钱等并且包含退款、打款及相应的查询等功能，适用于python2.7、python3.4、python3.5、python3.6
Package: paystack
Installation / UsageTo install use pip:$ pip install --upgrade paystackor$ easy_install --upgrade paystackInfoSeehttp://www.pip-installer.org/en/latest/index.htmlfor instructionson installing pip. If you are on a system with easy_install but notpip, you can use easy_install instead. If you’re not using
virtualenv,you may have to prefix those commands withsudo. You can learn
moreabout virtualenv athttp://www.virtualenv.org/To install from source, clone this repo and run:$ git clone https://github.com/ojengwa/paystack.git

$ python setup.py installDocumentationPlease seehttps://developers.paystack.co/docsfor the most up-to-date
documentation for the Paystack API.API AnatomyPlease seehttps://ojengwa.github.io/paystack/for the most up-to-date
documentation of the API Anatomy.TestingThe package is compatible with Python 2.6+, Python 3.1+ and PyPy. We
need to test against all of these environments to ensure compatibility.
Travis CI will automatically run our tests on push. For local testing,
we usenoseto handle testing across environments.To run the included test:Clone the repo:$ git clone https://github.com/ojengwa/paystack.gitEnter project directory:$ cd paystackInstall dependencies using fabric:$ fab installRun the includded test using fabric:$ fab testTODOAdd Event hooksCreate Consumer ResourceCreate Plan ResourceExamplefrom paystack.resource import TransactionResource

import random
import string

def main():
    rand = ''.join(
        [random.choice(
            string.ascii_letters + string.digits) for n in range(16)])
    secret_key = 'YOUR_SECRET_KEY'
    random_ref = rand
    test_email = 'TEST_EMAIL'
    test_amount = 'TEST_AMOUNT'
    plan = 'Basic'
    client = TransactionResource(secret_key, random_ref)
    response = client.initialize(test_amount,
                                 test_email,
                                 plan)
    print(response)
    client.authorize() # Will open a browser window for client to enter card details
    verify = client.verify() # Verify client credentials
    print(verify)
    print(client.charge()) # Charge an already exsiting client
Package: paystackapi
paystack-pythonPython plugin forPaystackView onpypi.python.orgInstallationpipinstallpaystackapiInstantiate Paystackfrompaystackapi.paystackimportPaystackpaystack_secret_key="5om3secretK3y"paystack=Paystack(secret_key=paystack_secret_key)# to use transaction classpaystack.transaction.list()# to use customer classpaystack.customer.get(transaction_id)# to use plan classpaystack.plan.get(plan_id)# to use subscription classpaystack.subscription.list()DOC Reference:https://developers.paystack.co/v2.0/referenceAPI Reference:APIOther methods can be found in the docs folderStatic UseTo start using the Paystack Python API, you need to start by setting your secret key.You can set your secret key in your environment by running:exportPAYSTACK_SECRET_KEY='your_secret_key'Don't forget to get your API key fromPaystackand assign to the variablePAYSTACK_SECRET_KEYAvailable resourcesBulkChargeChargeControlPanelCustomerInvoiceMiscPagePlanProductRefundSettlementSubAccountSubscriptionTransactionTransferControlTransferTransferSplitTransferRecipientVerificationPlease reference thedocsfolder for usage,
Package: paystack-api
Paystack Python libraryThe Paystack Python library provides integration access to the Paystack Payments.DependenciesrequestsThe Paystack Python SDK is tested against Python version 3.8The Python core development community has releasedEnd-of-Life branchesfor Python versions 2.7 - 3.4, and are no longer receivingsecurity updates. As a result, Paystack may not supports these versions of Python.DocumentationOfficial paystack documentationOfficial paystack python documentationQuick Start Exampleimportpaystacktest_secret_key="sk_test_<YOUR_SECRET_KEY>"test_public_key="pk_test_<YOUR_PUBLIC_KEY>"gateway=paystack.paystack_gateway.PaystackGateway(secret_key=test_secret_key,public_key=test_public_key,)charge=gateway.Transaction.initiate({"email":"example@domain.com","amount":"200000",})# print the response to the terminalprint(charge)# url to finalize the chargeurl=charge.data.authorization_url# verify a transaction with the response reference_keygateway.Transaction.verify(charge.data.reference)# check docs module for more intergration examplesDevelopingusing VirtualenvCreate avirtualenvcalledvenv:virtualenv venvStart the virtualenv:source venv/bin/activateInstall dependencies:pip3 install -r dev_requirements.txtUsing pipenvinstall pipenv:pip3 install pipenvcreate a folder:mkdir <folder_name> && cd <folder_name>activate pipenv environment in new folder:pipenv -p python 3activate the virtual environment:pipenv shellinstall dependencies:pipenv install -r requirements.txtSee theLICENSEfile for more info.
Package: paystack-cli
paystack cliA command line app for interacting withPaystack'sAPI. Built withTyperandPypaystack2InstallationBinaries of paystack cli be foundhere.
Alternatively, Paystack cli can be installed from pypi with pip as shown below.pipinstallpaystack-cliFirst time configurationsYou're required to add your paystack auth_key on first use as shown belowpaystackconfigAUTH_KEYThis sets up your paystack cli for use in development mode if the test secret key is used. This auth_key can be
removed withpaystack reset. Runpaystack --helpto see available commandsSource codehttps://github.com/gray-adeyi/paystack-cliVideosInstalling paystack cli on windows from binariesInstalling paystack cli via pip on windowsHow to use paystack cli
Package: paystackClient
A Python package that creates a typewriter effect for text output.InstallationYou can install this package usingpip:pipinstallpaystackPYUsagefrompaystackPYimportPaystackpaystack=Paystack(api_key=<Yourpaystackapikey>)reference=<Yourcustomreference>pay=paystack.initializeTransaction(email,amount,reference=reference,callback_url=<yourcallbackurl>)# The above will return a dictionary which you can accessref=paystack.verifyTransaction(reference)# The above will return a dictionary which you can accessContributingContributions are welcome! If you'd like to contribute to this project, please follow these steps:Fork the repository.Create a new branch for your feature or bug fix.Make your changes and test them thoroughly.Create a pull request with a clear description of your changes.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.AcknowledgmentsInspired by the openai package in Python.ContactAnozie JoelEmail:chibuikeanozie0@gmail.comGitHub:Anozie Chibuike
Package: paystackClientApi
Paystack api implemented as a package, paystack-client-Api is a simple project created by Joel .A.InstallationYou can install this package usingpip:pipinstallpaystackClientApiUsagefrompaystackClientApiimportPaystackpaystack=Paystack(api_key=<Yourpaystackapikey>)reference=<Yourcustomreference>pay=paystack.initializeTransaction(email,amount,reference=reference,callback_url=<yourcallbackurl>)# The above will return a dictionary which you can accessref=paystack.verifyTransaction(reference)# The above will return a dictionary which you can accessContributingContributions are welcome! If you'd like to contribute to this project, please follow these steps:Fork the repository.Create a new branch for your feature or bug fix.Make your changes and test them thoroughly.Create a pull request with a clear description of your changes.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.AcknowledgmentsInspired by the openai package in Python.ContactAnozie JoelEmail:chibuikeanozie0@gmail.comGitHub:Anozie Chibuike
Package: paystacklib
paystack-lib-pythonThis library provides a Python implementation of the Paystack API.Installationpip3 install --upgrade paystacklibRequirementsPython 3.5+UsageThe Paystack secret key should be defined in the Environment asPAYSTACK_SKor assigned topaystacklib.secret_key>>> import paystacklib
>>> paystacklib.secret_key = 'sk_your_paystack_secret_key' 
>>> transaction = paystacklib.Transaction.initialize(500000, 'customer@customer.com')
>>> transaction
{'status': True, 'message': 'Authorization URL created', 
    'data': {'authorization_url': 'https://checkout.paystack.com/6rklpsq157c8bef', 
        'access_code': '6rklpsq157c8bef', 'reference': 'i1wdh5b2r3'}}
>>> transaction.status
True
>>> transaction.message
'Authorization URL created'
>>> transaction.data.authorization_url
'https://checkout.paystack.com/6rklpsq157c8bef'
>>> transaction.data.access_code
'6rklpsq157c8bef'
>>> transaction.data.reference
'i1wdh5b2r3'
>>> transaction['status'] #you can also access values this way
True
>>> transaction.whatever  #accessing non-existent element will return a 'False' value
{}
Package: paystackpy
paystackpy===============================OverviewA Paystack (https://paystack.com/) API wrapper with pythonDocumentationPlease seehttps://paystack.com/docs/api/for the most up-to-date documentation for the Paystack API.Installationpip install paystackpyExamplefrompaystackpyimportTransaction,Customer,Plan,Transfer,Verification"""
All Response objects are formatted as dictionary containing status_code, status, message and data
"""#Instantiate the transaction object to handle transactions.
#Pass in your authorization key - if not set as environment variable PAYSTACK_AUTHORIZATION_KEYtransaction=Transaction(authorization_key="sk_mypaystackauthorizationkey")response=transaction.charge("customer@domain.com","CustomerAUTHcode",10000)#Charge a customer in Kobo.response=transaction.verify("refcode")#Verify a transaction given a reference code "refcode".#Instantiate the customer class to manage customerscustomer=Customer(authorization_key="sk_mypaystackauthorizationkey")response=customer.create("customer2@gmail.com","John","Doe",phone="080*********")#Add new customerresponse=customer.getone(1234)#Get customer with id of 1234response=customer.getall()#Get all customers#Instantiate the plan class to manage plansplan=Plan(authorization_key="sk_mypaystackauthorizationkey")response=plan.create("Test Plan",150000,'Weekly')#Add new planresponse=plan.getone(240)#Get plan with id of 240response=plan.getall()#Get all plans#Instantiate the transaction class for transfertransfer=Transfer(authorization_key="sk_mypaystackauthorizationkey")response=transfer.create_transfer_recipient(receipt_type="nuban",name="Customer",metadata={},account_number="092********",bank_code="058",currency="NGN",description="SOME TEXT",authorization_code="code")#Verify BVN matchverify=Verification(authorization_key="sk_mypaystackauthorizationkey")response=verify.verify_bvn_match("bvn","account_number","bank_code","first_name","last_name")#Resolve BVN standardverify=Verification(authorization_key="sk_mypaystackauthorizationkey")response=verify.resolve_bvn_standard("bvn")#Resolve BVN premiumverify=Verification(authorization_key="sk_mypaystackauthorizationkey")response=verify.resolve_bvn_premium("bvn")#Resolve Account numberverify=Verification(authorization_key="sk_mypaystackauthorizationkey")response=verify.resolve_account_number("account_number","bank_code")#Resolve Card BINverify=Verification(authorization_key="sk_mypaystackauthorizationkey")response=verify.resolve_card_bin("bin")
Package: paytext
paytextPython package to generalize texts from payments.MotivationWhen categorizing payments, I want to avoid categorizing the same type of expense multiple times. Often, the only information we have about a payment is the date, amount and a slightly cryptic string. For example, I recently bought some plane tickets usingTicket. On my account statement, that produced a string similar to this one:*4274 25.06 NOK 4101.00 WWW.TICKET.NO Kurs: 1.0000.Now, when I put this payment in theTravelcategory, I'd like all future payments to the same vendor to be automatically put in the same category. But the next time I buy a plane ticket from them, the date and amount will be different. Also, the leading card number may be different, too. So, in order to automate the categorization, we need togeneralizethe text. In other words,*4274 25.06 NOK 4101.00 WWW.TICKET.NO Kurs: 1.0000needs to becomeWWW.TICKET.NO. That's what this tiny package does.InstallationUsePipenv:pipenv install paytextUsagefrompaytextimportPaymentTextpayment_text:PaymentText=PaymentText('*4274 25.06 NOK 4101.00 WWW.TICKET.NO Kurs: 1.0000',)print(payment_text)# Output: '*4274 25.06 NOK 4101.00 WWW.TICKET.NO Kurs: 1.0000'payment_text.generalize()print(payment_text)# Output: 'WWW.TICKET.NO'Known limitationsI've mostly had strings from transactions with Norwegian merchants and banks to work with, so this package probably won't work as well with other languages/locales. If you find strings that it doesn't handle well, pleaseopen an issue on GitHub.Running testsRun the commandnosetests.Upload new release to the Python Package IndexUpdate version number insetup.py.Make new distribution:python setup.py sdist bdist_wheelUpload to PyPI:twine upload dist/*
Package: paython
Paython=========Trying to make it easy to accept payments in Python. So far, we're Paython.Currently - you can just import the gateway needed from gateways & auth/settle/capture (sale)/void/credit once you instantiate with the proper credentials.Supported Gateways==================* Stripe* Authorize.net* Innovative Gateway Solutions (Intuit)* First Data Global Gateway (formerly Linkpoint?)* PlugnPay* SamuraiUsage===========================It's super simple to start:Importing what you need```pyfrom paython import CreditCard, AuthorizeNet```Setting up a credit card```pycredit_card = CreditCard(number = '4111111111111111',exp_mo = '02',exp_yr = '2012',first_name = 'John',last_name = 'Doe',cvv = '911',strict = False)```Checking to see if it's valid```pyif not credit_card.is_valid(): return 'houston, we have a problem' # checks card number + expiration date```Setting up customer data to charge, not all fields are required.```pycustomer_data = dict(address='123 Main St',address2='Apt 1',city='Pleasantville',state='IA',zipcode='54321',country='US',phone='654-369-9589',email='john@localwoodshop.com',ip='127.0.0.1')```Trying to authorize against gateway, options include debug output or test credentials```pyapi = AuthorizeNet(username='test', password='testpassword', debug=True, test=True)gateway_response = api.auth(amount='0.05', credit_card=credit_card, billing_info=customer_data, shipping_info=None)```Keep in mind, if you authorize, you need to settle```pyapi = AuthorizeNet(username='test', password='testpassword', debug=True, test=True)gateway_response = api.settle(amount='0.05', trans_id='2156729380')```OR, you can capture instead```pyapi = AuthorizeNet(username='test', password='testpassword', debug=True, test=True)gateway_response = api.capture(amount='0.05', credit_card=credit_card, billing_info=customer_data, shipping_info=None)```This is the standard paython response.```pygateway_response = {'response_text': 'This transaction has been approved.','cvv_response': 'P','response_code': '1','trans_type': 'auth_only','amount': '0.05','avs_response': 'Y','response_reason_code': '1','trans_id': '2156729380','alt_trans_id': '','auth_code': 'IL2UW7','approved': True,'response_time': '0.55'}```Install Requirements===========================You need pip::pip install -r requirements.txtRun Tests=========Just run::nosetestsOr with stats::nosetests --quiet --with-coverage --cover-package paythonWhen initializing a gateway, debug will output request params, xml & response text or xml. test will use the test gateway endpoint, if there is one & will raise an error otherwise (NoTestEndpointError).
Package: paytm-oauth
===========Paytm Oauth===========Paytm Oauth is a django based consumer for paytm oauth.Quick start-----------1. Add "paytmoauth" to your INSTALLED_APPS in settings like this::```INSTALLED_APPS = (...'paytmoauth',)```2. Update your context_processors to include one provided by `paytmoauth` like```TEMPLATES = [...'OPTIONS': {'context_processors': [...'paytmoauth.context_processors.login_url',]}]```3. Define the following variables in your settings```PAYTMOAUTH_PROVIDER_URLPAYTMOAUTH_AUTHORIZATION_ENDPOINTPAYTMOAUTH_AUTHENTICATION_ENDPOINTPAYTMOUATH_RESOURCE_ACCESS_ENDPOINTPAYTMOAUTH_CLIENT_IDPAYTMOAUTH_CLIENT_SECRETPAYTMOAUTH_SCOPEPAYTMOAUTH_REDIRECT_URL```4. Include urls in root urls like this::```url(r'^oauth/', include('paytmoauth.urls')),```
Package: payu-websdk
PayU SDK for Python ApisThis API gives you the status of the transaction. PayU recommends this API to reconcile with PayUâ€™s database after you receive the response, where var1 is your transaction id.Features SupportedFollowing features are supported in the PayU Python web SDK:Create Payment Link.Verify transactions, check the transaction status, transaction details, or discount rate for a transactionInitiated refunds, cancel refund, check refund status.Retrieve settlement details which the bank has to settle you.Get information of the payment options, offers, recommendations, and downtime details.Check the customerâ€™s eligibility for EMI and get the EMI amount according to interestPay by link
To get started with PayU, visit ourDeveloper GuideTable of ContentsInstallationGetting StartedDocumentation for various MethodsUsagepipinstallpayu_websdkGetting Startedclient=payu_websdk.payUClient(<KEY>,<SALT>,<ENV>)//Needtosetmerchantkey,saltandenv("TEST"/"LIVE")
Package: paywhirl
A convenient PayWhirl API wrapper in PythonThePayWhirlPython library is provided to allow developers to access PayWhirl
services without needing to write their own API wrappers.TheDocumentationlinked here and below contains all of the available methods
for interacting with your PayWhirl account. If you would like to see additional
functionality added, feel free to submit an issue or a pull request.Usage GuideDocumentationTable of ContentsRequirementsInstallationUsageLicenseAboutRequirementsPython: Python 3.5+Installation$pip3install--upgradepaywhirlUsageTo create a new PayWhirl object, you need to pass your API key and
secret, which can be found in theAPI key section of the main site.frompaywhirlimportPayWhirl,HTTPErrorapi_key='pwpk_xxxxxxxxxxxxxxx'api_secret='pwpsk_xxxxxxxxxxx'pw=PayWhirl(api_key,api_secret)try:print(pw.get_account())exceptHTTPErrorase:print(e.response.status_code)print(e.response.text)LicensePayWhirl is copyright © 2016-2018PayWhirl Inc.This library is free
software, and may be redistributed under the terms specified in thelicense.AboutPayWhirl Inc.and the names and logos for PayWhirl are
trademarks of PayWhirl inc.For additional information, please see ourTerms of UseandPrivacy Policy
Package: paywix
PAYWIX 2.0Paywix is a lightweight software development kit (SDK) for payment processing, designed specifically for Python-based applications. It has been expanded to support all Python-based applications. This allows developers to integrate payment processing into their applications using the familiar Python programming language and makes it easier to add this functionality to a wide range of applications.Currently supported Payment GatewaysPayuExample ProjectsPayu Demo Django 4InstallationPython > 3 Version1.pipinstallpaywix2.pipenvinstallpaywixPluginsPaywix is currently extended with the following plugins. Instructions on how to use them in your own application are detailed below.PluginREADMEPAYUhttps://github.com/renjithsraj/paywix/blob/master/PAYU.mdTodosCashfreeStripeBraintreeCCavenuegpayphonepeamazonpayLicenseMIT
Package: pb
As an old Perl-hack I really miss the convenience of one-line programs where
I can easily add block structure. This script emulates the behaviors ofperl -e,perl -nandperl -pusing braces ({and}) to generate
Pythonesque indentation. There may be other ways to get around this but
the goal is to make one-liners as easy as we expect.Examples:`>./pb'for j in range(1,10) { for k in range(0,j) {sys.stdout.write(".")}sys.stdout.write("\n")}' . .. ..........................................`PS. I know this one is very easy as a true Python one-liner:` >python-c'print"\n".join("."*jfor j in range(1,10))'. .. ..........................................`