Saravanan666/pypi-org huggingface dataset:
Package: pancho-tbk
Requirementspython: ~2.7, ^3.6libxml2 >= 2.9.1libxmlsec1 >= 1.2.14🇬🇧InstallationJust run:$ pip install python-tbkUsageAs simple as call (snakecased) webpay api methods:>>> from tbk.services import WebpayService
>>> from tbk.commerce import Commerce
>>> from tbk import INTEGRACION
>>> commerce = Commerce(commerce_code, key_data, cert_data, tbk_cert_data, INTEGRACION)
>>> webpay = WebpayService(commerce)
>>> transaction = webpay.init_transaction(amount, buy_order, return_url, final_url)
>>> print(transaction['token'])
e87df74f7af4dcfdc1d17521b07413ff9a004a7b423dc47ad09f6a8166a73842ConventionsThis library use a snake cased naming convention for webservices and params for a more pythonic implementation. Every camelcased name in the webpay API was transformed to snakecase:initTransaction(amount, buyOrder, returnURL, finalURL, sessionId)became:init_transaction(amount, buy_order, return_url, final_url, session_id)Oneclick Mall ServiceA list oftbk.services.StoreInputinput is expected aswsOneClickMulticodeStorePaymentInputforstores_inputparameter onauthorizemethod.DocumentationYou can refer tohttp://www.transbankdevelopers.cl/?m=apifor official API documentation. This library documentation is on the way.LoggersThere are two levels of loggers:tbk.services
tbk.soapSpecific service logger are defined by class name:tbk.services.WebpayServiceBugs?Issues are welcome athttps://github.com/cornershop/python-tbk/issues🇪🇸InstalaciónEjecuta:$ pip install python-tbkUsoTan simple como llamar los métodos del API de Webpay (pero snakecased):>>> from tbk.services import WebpayService
>>> from tbk.commerce import Commerce
>>> from tbk import INTEGRACION
>>> commerce = Commerce(commerce_code, key_data, cert_data, tbk_cert_data, INTEGRACION)
>>> webpay = WebpayService(commerce)
>>> transaction = webpay.init_transaction(amount, buy_order, return_url, final_url)
>>> print(transaction['token'])
e87df74f7af4dcfdc1d17521b07413ff9a004a7b423dc47ad09f6a8166a73842ConvencionesLa librería usa una convención de nombres snakecased para ser más pythonica. Cada nombre camelcased en el API de Webpay se transformó a snakecased:initTransaction(amount, buyOrder, returnURL, finalURL, sessionId)se traduce en:init_transaction(amount, buy_order, return_url, final_url, session_id)Servicio Oneclick MallEl métodoauthorizeespera una lista detbk.services.StoreInputen el parámetrostores_inputque se corresponde con la definición dewsOneClickMulticodeStorePaymentInput.DocumentaciónLa documentación oficial se encuentra disponible enhttp://www.transbankdevelopers.cl/?m=api. La documentación de esta librería está en desarrollo.LoggersSe encuentran definidos dos niveles de logger:tbk.services
tbk.soapEl logger específico de un servicio está definido por su nombre de clase:tbk.services.WebpayServiceTesting cards / Tarjetas de pruebaCredit / CréditoMarcaVISAMASTERCARDNo de Tarjeta40518856004466235186059559590568Año ExpiraciónCualquieraCualquieraCVV123123ResultadoAPROBADORECHAZADODebit / DébitoAPRUEBARECHAZATARJETA40518856004466205186059559590560RUT11.111.111-111.111.111-1PASSWORD123123
Package: panci
For a Python project, take a.travis.ymlfile (Travis CI) and output atox.inifile (Tox). Or vice-versa.Why the name?The name “panci” is an homage toJohn MacFarlane’s excellentpandoc.
I’ve replaced the “doc” with “ci”; “CI” stands for Continuous Integration, a broad term for whatTravis CIandToxhelp you with.InstallingWith pip:pip install panciExampleTravis to ToxLet’s say that we have the following.travis.yml:language:pythonpython:-2.6-2.7-3.2-pypyscript:python setup.py testIf we run:panci --to=tox .travis.ymlThen we get:# Tox (http://tox.testrun.org/) is a tool for running tests# in multiple virtualenvs. This configuration file will run the# test suite on all supported python versions. To use it, "pip install tox"# and then run "tox" from this directory.[tox]envlist=py26, py27, py32, pypy[testenv]commands=python setup.py testTox to TravisLet’s say that we have the followingtox.ini:[tox]envlist=py26, py27, py33, pypy[testenv]commands=py.testdeps=pytestIf we run:panci tox.iniThen we get:language:pythonenv:-TOXENV=py26-TOXENV=py27-TOXENV=py33-TOXENV=pypyinstall:-travis_retry pip install tox==1.6.1script:-travis_retry toxpanci-tox-quickstartIf we run:panci-tox-quickstartThen you are asked some questions:This utility will ask you a few questions and then generate a simple tox.ini
file to help get you started using tox.

Please enter values for the following settings (just press Enter to
accept a default value, if one is given in brackets).

> Test your project with py24 (Y/n) [Y]: n
> Test your project with py25 (Y/n) [Y]: n
> Test your project with py26 (Y/n) [Y]:
> Test your project with py27 (Y/n) [Y]:
> Test your project with py30 (Y/n) [Y]:
> Test your project with py31 (Y/n) [Y]:
> Test your project with py32 (Y/n) [Y]:
> Test your project with py33 (Y/n) [Y]:
> Test your project with pypy (Y/n) [Y]:
> Test your project with jython (Y/n) [Y]: n

What command should be used to test your project -- examples:
    - python setup.py test
    - nosetests package.module
    - trial package.module
> Command to run to test project [{envpython} setup.py test]:

What dependencies does your project have?
> Comma-separated list of dependencies [ ]: requests,nose

Creating file tox.ini.

Finished: A tox.ini file has been created.

Execute `tox` to test your project.And then atox.inifile is spit out with:# Tox (http://tox.testrun.org/) is a tool for running tests# in multiple virtualenvs. This configuration file will run the# test suite on all supported python versions. To use it, "pip install tox"# and then run "tox" from this directory.[tox]envlist=py26, py27, py30, py31, py32, py33, pypy[testenv]commands={envpython} setup.py testdeps=requestsnoseNote aboutpanci-tox-quickstart: I am also working longer-term on getting atox-quickstartcommand merged into tox. Seethis pull request.Miscellaneous related stuffbuildbot_travis– allowsBuildbotto consume a.travis.ymlfile.SupportFor questions, comments, and suggestions, please useGitHub Issues.
Package: panclassif
PanClassif: A machine learning classifier pipeline forTCGApancancer classificationThis is a complete machine learning pipeline package to work with TCGA cancer RNA-seq gene count data.GithubData prerequisitionTCGA cancer & normal samples downloaded using TCGA2STATsmoothed version of the above collected data using knn-smoothing (Wagner et al., 2017)Dataset Mendeley Click HereFunctionsfeatSelect(homepath, cancerpath, normalpath, k)Paramshomepath : (str)
Path where you want to save all the generated files
and folders.cancerpath : (str)Path where all the cancer's cancer gene expression
matrix are located.normalpath : (str)Path where all the cancer's normal gene expression
matrix are located.k : (int)
The number of top genes you want to choose per
cancer. (default: k=5) you can not put k less than 5dataProcess(homepath,names,cancerpath,smoothed_cancer,smoothed_normal,scale_mode)Paramshomepath : (str)
Path where you want to save all the generated files
and folders.cancerpath : (str)
Path where all the cancer's cancer gene expression
matrix are located.names : (list)
List of the cancer names found fromfeatSelectfunction.smoothed_cancer : (str)
Path where all the cancer's smoothed cancer gene expression
matrix are located.smoothed_normal : (str)
Path where all the cancer's smoothed normal gene expression
matrix are located.scale_mode (int):
Here (0 is for Standardization and 1 for normalization) for data scallingupsampled(names, homepath)binary_merge(names, homepath)multi_merge(names, homepath)Paramsnames : (list)
List of the cancer names found fromfeatSelectfunction.homepath : (str)Path where you want to save all the generated files
and folders.classification(homepath, classifier, mode, save_model)Paramshomepath : (str)
Path where you want to save all the generated files
and foldersclassifer : (sklearn's classification model)
Provide the classification model's instance you want
to use. For example: RandomForestClassifier(n_estimators=100).Or, classifer : (str)
If you want to use "Neural Network" then just type
"NN". For example: classifier = "NN"mode : (str)
There is two mode 1) binary 2) multi. Use "binary"
for binary classification &  "multi" for multiclass
classification. (default: mode = "binary")save_model : (str)
Optional parameter. Use it only if you want to save
the model. For example: save_model = "your_model_name"gsea(homepath)homepath : (str)
Path where you want to save all the generated files
and foldersExamplehomepath = '/home'
cancerpath = '/home/cancer/'
normalpath = '/home/normal/'

smoothed_cancer = '/home/smoothed_cancer'
smoothed_normal = '/home/smoothed_normal'Data Load and Process Phaseimportpanclassifaspc#You have to follow below order to work the code properlynames=pc.featSelect(homepath,cancerpath,normalpath,k=5)pc.dataProcess(homepath,names,cancerpath,smoothed_cancer,smoothed_normal)pc.upsampled(names,homepath)pc.binary_merge(names,homepath)pc.multi_merge(names,homepath)Classification Phasefromsklearn.ensembleimportRandomForestClassifierpc.classification(homepath,RandomForestClassifier(n_estimators=100),mode="multi",save_model="RF")Gene enrichment checkpc.gsea(homepath)
Package: pancli
panclipancli (also known as Pansi Cli), is a tool for running scrapy spider or interacting to ScrapyDD server.pancli give some useful supplymentary functions to scrapy command line, some of the functions are:Execute spider from a egg packaged project.Install package required libraries at run-time if necessary.Package a scrapy project into egg.Installationpancli is available on pypi, you can install it by simply run:pip install pancliUsagesRun a spiderRun a spider is very easy by executingpancli crawl {spider_name}, the command is compatiable withscrapy crawlOne special and the most wonderful parameter is the-fparameter, which specifies a FIGURE file in which all settings/parameters/plugins of a spider can be writen as a simple JSON/YAML file. If you run spider very often, FIGURE file can save tons of time.FIGURE fields:spider: the target spider name which is the same in thescrapy listcommand.settings: (dict) settings can be used to populate all settings at runtime, not only the literal/string values, but list/dictsAnd other parameters, the more detail documentation is coming soon.package a spiderA packaged spider is extremely portable, with one spider package and a FIGURE file, you can easily crawl the whole internet.When your current dir is in the scope of scrapy project(with any ancient folder which contains a scrapy.cfg file), you can easily run the following commmand to build a spider package.pancli packageIf you haven't create setup.py for the project, this command will help you create one.And this command is inspired byscrapyd-client
Package: panclus
PanclusGz is the panclus version for the next the older version named Panclus which was not the best but it was very useful in calculating the dates of solar and lunar eclipses as well as in converting speech to text in any language and with the translation of the text.PanclusGz comes with all these features and also have more attributes as well as some sub-modules.Usage for PanclusGz:Sub-ModuleslocationsdependenciesGzInstallerlocations:from PanclusGz import locations as ls
# To find the weather of any place
ls.get_weather('India')

# To get area of any country
ls.area("India")

# To get full info of the country
ls.full_info('India')

# To find the capital of any country
ls.capital('India')

# To find the country code
ls.country_code('India')Gz:from PanclusGz import Gz as gz
# For converting text to speech
gz.speak('hello')

# To make it speak in several languages

# This is the format

gz.speak_in_language(text_to_speak,language_code,name_of_file_to_save)

gz.speak_in_language('hello','en-Us','test.mp3')

# To search wikipedia
gz.wikit('what is python')

# To search on google
gz.search('python')

# To find solar or Lunar eclipse date
gz.date_solar_eclipse()
gz.date_lunar_eclipse()

# To copy paste text
gz.copy('hello')
gz.paste()

# To see date and time
gz.show_date()
gz.show_time()

# To translate text
gz.translate(from_language,to_language,text_of_translation)
gz.translate('english','hindi','hello')

# To open a file from system
gz.openfile('cmd')Installer:Installer is a basic app to install python packages
from PanclusGz import InstallerDependencies:It is used to see dependencies of the packagefrom PanclusGz import dependencies
Package: pancopackage
This is the homepage of our project.Choose an open source license template fromhttps://choosealicense.com/eg. GNU General Public License v3.0pip install setuptools wheel twine# generate source distribution and build distributionpython setup.py sdist bdist_wheelreference:https://packaging.python.org/tutorials/packaging-projects/upload:
twine upload dist/*install:
pipenv install pancopackage
Package: pan-cortex-data-lake
Palo Alto Networks Cortex™ Data Lake SDKPython idiomatic SDK for the Cortex™ Data Lake.The Palo Alto Networks Cortex Data Lake Python SDK was created to assist
developers with programmatically interacting with the Palo Alto Networks
Cortex™ Data Lake API.The primary goal is to provide full, low-level API coverage for the
following Cortex™ Data Lake services:Query ServiceThe secondary goal is to provide coverage, in the form of helpers, for
common tasks/operations.Log/event paginationOAuth 2.0 and token refreshingMore, coming soon!Documentation:https://cortex.pan.devFree software: ISC licenseFeaturesHTTP client wrapper for the popular Requests library with full access to its features.Language bindings for Query Service.Helper methods for performing common tasks, such as log/event pagination.Support for OAuth 2.0 grant code authorization flow.Library of example scripts illustrating how to leverage the SDK.Support for API Explorer Developer Tokens for easier access to API!StatusThe Palo Alto Networks Cortex™ Data Lake Python SDK is consideredalphaat this time.InstallationFrom PyPI:$ pip install pan-cortex-data-lakeObtaining and Using OAuth 2.0 TokensIf you're an app developer, work with your Developer Relations representative to obtain your OAuth2 credentials. API Explorer may optionally be used to generate a Developer Token, which can also be used to authenticate with the API. For details on API Explorer developer tokens, please visithttps://cortex.pan.dev/docs/learn/developer_tokens.Example>>>frompan_cortex_data_lakeimportCredentials,QueryService>>>c=Credentials()>>>qs=QueryService(credentials=c)>>>query_params={..."query":"SELECT * FROM `1234567890.firewall.traffic` LIMIT 1",...}>>>q=qs.create_query(query_params=query_params)>>>q.status_code201>>>q.json(){'jobId':'40fedce6-ddf5-44cf-9af2-7c3d5303f388','uri':'/query/v2/jobs/40fedce6-ddf5-44cf-9af2-7c3d5303f388'}>>>results=qs.get_job_results(job_id='40fedce6-ddf5-44cf-9af2-7c3d5303f388')>>>results.json()ContributorsKevin Steves -githubSteven Serrata -github
Package: panda3d-appimage
NOTE ==========================================================================This works on Linux only.INSTALLATION ==================================================================pip install panda3d-appimageUSAGE =========================================================================In your setup.py file, add the following:from direct.dist.commands import bdist_appsfrom p3d_appimage import AppImageBuilderclass BDistAppsCmd(bdist_apps):def run(self):bdist_apps.run(self)AppImageBuilder(self).build()setup(...cmdclass={"bdist_apps": BDistAppsCmd},... )EXAMPLE =======================================================================Let's build an AppImage for the Panda3D's Asteroids example.Modify the file setup.py(https://github.com/panda3d/panda3d/blob/master/samples/asteroids/setup.py)adding these lines:from direct.dist.commands import bdist_appsfrom p3d_appimage import AppImageBuilderclass BDistAppsCmd(bdist_apps):def run(self):bdist_apps.run(self)AppImageBuilder(self).build()setup(...cmdclass={"bdist_apps": BDistAppsCmd},... )Then, launch the standard Panda3D build command:python setup.py bdist_appsAt the end of the process, you will get the builds created by Panda3D and yourAppImage in the dist/ folder. Do ./Asteroids-x86_64.AppImage to launch yourAppImage.UPDATING APPIMAGES ============================================================The builder can also update your AppImage. If you specify a zsync_path when youinvoke the AppImageBuilder's method build(), then you can Invoke the AppImage'smethod update() in your application and this will update your AppImage.
Package: panda3d-assetcoop
Game assets for use with panda3d, made by Entikan.BAMs are to be converted with panda3d-boterham.Basic usage example:importassetcoopfromdirect.showbase.ShowBaseimportShowBasebase=ShowBase()lona=loader.load_model('models/scenes/lona.bam')lona.ls()To build all assets.$ pip install panda3d-boterham
$ boterham assetcoop/blender assetcoop/bamLicense is the Panda3D License.
More general-use assets are very welcome.
Package: panda3d-astron
![GitHub issues](https://img.shields.io/github/issues/NxtStudios/p3d-rest?style=for-the-badge)
![PyPI - Status](https://img.shields.io/pypi/status/panda3d-astron?style=for-the-badge)
![Engine](https://img.shields.io/static/v1?style=for-the-badge&label=Engine&message=Panda3D&color=red)Panda3D Astron server support as a Python 3 module. Allows the use of Astron with stock Panda3D### RequirementsThe Panda3D SDK (get it <a href=”http://www.panda3d.org/download.php?sdk”>here</a>)## License
Panda3D REST is licensed under the MIT license. See the provided LICENSE file for details.
Package: panda3d-character-controller
Panda3D Character ControllerAn extensive character controller system to be used with the Panda3D engineFeaturesWalking/RunningSprintingJumpingClimbingWall runLedge grabplayer stamina handlingP3D integrated physicsfirst person camera systemthird person camera systemJSON configuration fileInstallInstall the character controller via pippipinstallpanda3d-character-controllerHow to useUsing the character controller itself is quite easy, simply instantiate it and
call the startPlayer function. You can set it's start position and rotation
using the setStartPos and setStartHpr functions.base.cTrav=CollisionTraverser("base collision traverser")base.cTrav.setRespectPrevTransform(True)# actual character setupplayer=PlayerController(base.cTrav,"path/to/config.json")# start the playerplayer.startPlayer()ConfigConfiguration of the player is done in a json file that has to be passed to the
controllers constructor.
Simply copy and tweak the config file which can be found in the data folder.
For further information see the PDF documentation.PDF DocumentationAn extensive documentation about the character controller can be found in the
doc Folder.
Package: panda3d-eventmapper
Panda3D Event MapperA simple utility to remap Panda3D events.FeaturesRemap eventsConfigure via PRC variables or an APIHandle keyboards, mice, and gamepadsInstallationUsepipto install thepanda3d-eventmapperpackage:pipinstallpanda3d-eventmapperExampleimportsysfromdirect.showbase.ShowBaseimportShowBaseimportpanda3d.coreasp3dimporteventmapperp3d.load_prc_file_data('','event-map-item-quit escape q\n''event-map-item-move-forward raw-w\n''event-map-item-move-backward raw-s\n''event-map-item-move-left raw-a\n''event-map-item-move-right raw-d\n')classGameApp(ShowBase):def__init__(self):super().__init__()self.eventmapper=eventmapper.EventMapper()self.accept('quit',sys.exit)self.accept('move-forward',print,['move forward'])self.accept('move-backward',print,['move backward'])self.accept('move-left',print,['move left'])self.accept('move-right',print,['move right'])GameApp().run()Running TestsFirst installpanda3d-simplepbrin editable mode along withtestextras:pipinstall-e.[test]Then run the test suite withpytest:pytestBuilding WheelsInstallbuild:pipinstall--upgradebuildand run:python-mbuildLicenseBSD
Package: panda3d-flatpak
NOTE ==========================================================================This works on Linux only.INSTALLATION ==================================================================pip install panda3d-flatpakUSAGE =========================================================================In your setup.py file, add the following:from direct.dist.commands import bdist_appsfrom p3d_flatpak import FlatpakBuilderclass BDistAppsCmd(bdist_apps):def run(self):bdist_apps.run(self)bld = FlatpakBuilder(self,'com.yourCompany.YourProject','/home/you/path/to/flatpak_repo','D43B...B5','/home/you/path/to/gpg','http://www.yourdomain.org/flatpak')bld.build()setup(...cmdclass={"bdist_apps": BDistAppsCmd},... )This article(https://blogs.gnome.org/alexl/2017/02/10/maintaining-a-flatpak-repository/)contains a section which explains how to create GPG keys for signing Flatpakrepos.UPDATES =======================================================================If you built a Flatpak repo, and later you modify your code and execute 'pythonsetup.py bdist_apps' again, your Flatpak repo will be updated. So, your userscan do their 'flatpak update' command to update your project.EXAMPLE =======================================================================Let's build a Flatpak repository for the Panda3D's Asteroids example.First of all, create your GPG key (look at the article cited earlier).Modify the file setup.py(https://github.com/panda3d/panda3d/blob/master/samples/asteroids/setup.py)adding these lines:from direct.dist.commands import bdist_appsfrom p3d_flatpak import FlatpakBuilderclass BDistAppsCmd(bdist_apps):def run(self):bdist_apps.run(self)bld = FlatpakBuilder(self,'org.panda3d.Asteroids','/home/you/panda3d/samples/asteroids/dist/flatpak_repo','D43B...B5','/home/you/path/to/gpg','file:///home/you/panda3d/samples/asteroids/dist/flatpak_repo')bld.build()setup(...cmdclass={"bdist_apps": BDistAppsCmd},... )Then, launch the standard Panda3D build command:python setup.py bdist_appsAt the end of the process, you will get the builds created by Panda3D, yourFlatpak repository in dist/flatpak_repo/ and a .flatpakref file in dist/.Let's install Asteroids:flatpak --user install file:///home/you/panda3d/samples/asteroids/dist/asteroids-stable.flatpakrefLet's run Asteroids:flatpak run org.panda3d.AsteroidsNow, you can delete build/ and dist/, then you can rebuild it changing the URL(from file:///... to https://...), so you can use it online (in place oflocally): just upload the repo to the path you specified and the .flatpakrefsomewhere and everything should work.