Saravanan666/pypi-org huggingface dataset:
Package: deg
Depency GraphA Graph creation, analysis and visualizations library.InstallationpipinstalldegUsageCan be used directly using theDependencyNodeobject or by extending the object into some other subjective structure.A sample usage would look as the following :fromdegimportDependencyGraph,DependencyNodeclassTable(DependencyNode):'''Class for representing each node of the tree.This contains every piece of static information that may be required for analysis.'''def__init__(self,name,cols=None):super(Table,self).__init__(name)self.cols=colsself.visited=Falseself.col_relations=Nonedefadd_cols(self,df:pd.DataFrame):self.cols=dfdefadd_relations(self,df:pd.DataFrame):self.col_relations=dfdefgenerate_search_criteria(self,module=None):selection=''ifself.is_independent():print('Ignoring rules for independent table :\n',self.col_relations.to_string())selection='''TRUNC({tablename}.{datecol}) BETWEEN (SELECT PRG_PERIOD_START FROM PURGE_MODULE_INPUT WHERE REQUEST_ID = PRG_BTCH_ID AND MODULE = '{module}' AND STATUS = 'INITIATED') AND (SELECT PRG_PERIOD_END FROM PURGE_MODULE_INPUT WHERE REQUEST_ID = PRG_BTCH_ID AND MODULE = '{module}' AND STATUS = 'INITIATED')'''.format(tablename=self.name,datecol=self.get_date_col(),module=module)else:forparentinself.parents:criterias=''for_,rowinself.col_relations[self.col_relations['r_table']==parent.name].iterrows():iflen(criterias)>0:criterias+=' AND 'criterias+='{0}.{1}={2}.{3}'.format(row['table_name'],row['column_name'],row['r_table'],row['r_col'])criterias+=' AND '+parent.generate_search_criteria(module=module)selection+='INNER JOIN{parent_name}ON{criterias}'.format(parent_name=parent.name,criterias=criterias)returnselectiondefget_cols(self)->pd.DataFrame:returnself.colsdefis_visited(self)->bool:returnself.visiteddefset_visited(self):self.visited=Truedefget_date_col(self):try:returnself.cols[(self.cols['data_type']=='DATE')&(self.cols['nullable']=='N')].iloc[-1]['column_name']exceptExceptionase:# print(e)returnNonedef__str__(self):return'Table({0},{1})'.format(self.name,self.is_independent(),self.children)def__repr__(self):return'Table({0},{1})'.format(self.name,self.is_independent(),self.children)graph=DependencyGraph(Table)whileTrue:df=get_children(temp)ifdfisNoneordf.shape==(0,0):breakforvalindf.itertuples():graph.add(val[2],parent=val[1],relation=val[3])temp=df.iloc[:,1]execution_limit-=1ifexecution_limit<=0:breakDocstrings have been added to detail what functions such asgraph.adddoes.
Package: degann
DEGANNDEGANNis a library generating neural networks for approximating solutions to differential equations. As a backend for working with neural networks, tensorflow is used, but with the ability to expand with your own tools.FeaturesGeneration of neural networks by parameters.Construction of tables with the numerical solution of ordinary differential equations of the first orderConstruction of tables with numerical solution of systems of ordinary differential equations of the first orderChoosing the Best Neural Network from Several for Fixed Training ParametersIterating over training parameters with choosing the best neural network for each setExport neural networks as a function in C++Export Neural Networks as a Parameter SetImport Neural Networks from a Parameter SetBuilding a dataset with complete training results for approximating the solution of a differential equation for each neural network that participated in trainingInstallManualDownload the repository as a zip archive, unpack and run the command from the root of the repositorypipinstall-rrequirements.txtThis will download and install all the dependencies for the project, then you can use the source code of the library (e.g. create project nearby to thedegannfolder)Via pipUse commandpipinstalldegannNow you can use thedegannpackage
Package: degate-connector
DeGate Public SDK Connector PythonThis is a lightweight library that works as a connector toDeGate public SDKSupported APIs:SpotSpot Websocket Market StreamSpot User Data StreamInclusion of examplesCustomizable base URLResponse metadata can be displayedInstallationpipinstalldegate-connectorSDKUsage examples:fromdegate.spotimportSpotasClientETH={"id":0,"symbol":"ETH",}USDC={"id":8,"symbol":"USDC",}client=Client(tokens=[ETH,USDC])# Get server timestampprint(client.time())# Get klines of ETHUSDC at 1m intervalprint(client.klines("ETHUSDC","1m"))# Get last 10 klines of ETHUSDC at 1h intervalprint(client.klines("ETHUSDC","1h",limit=10))# accountAddress、assetPrivateKey、accountId are required for user data endpointsclient=Client(accountAddress='<account_address>',assetPrivateKey='<DeGate AssetPrivateKey>',accountId='<account_id>',tokens=[ETH,USDC])# Get account and balance informationprint(client.account())# Post a new orderparams={'symbol':'ETHUSDC','side':'SELL','type':'LIMIT','quantity':0.1,'price':9500}response=client.newOrder(**params)print(response)Please findexamplesfolder to check for more endpoints.TestnetSpot Testnetis available, it can be used to test.To use testnet:fromdegate.spotimportSpotasClientclient=Client(baseUrl='https://testnet-backend.degate.com')print(client.time())Response MetadataThe DeGate API server provides weight usages in the headers of each response.
You can display them by initializing the client withshow_header=True:fromdegate.spotimportSpotasClientclient=Client(show_header=True)print(client.time())returns:{'data':{'serverTime':1587990847650},'header':{'Context-Type':'application/json;charset=utf-8',...}}IfClientErroris received, it'll display full response meta information.Display logsSetting the log level toDEBUGwill log the request URL, payload and response text.ErrorThere are 2 types of error returned from the library:degate.error.ClientErrorThis is thrown when server returns4XX, it's an issue from client side.It has 4 properties:status_code- HTTP status codeerror_code- Server's error code, e.g.-1102error_message- Server's error message, e.g.Unknown order sent.header- Full response header.degate.error.ServerErrorThis is thrown when server returns5XX, it's an issue from server side.Websocketimporttimefromdegate.websocket.spot.websocket_clientimportSpotWebsocketClientasWsClientdefmessage_handler(message):print(message)ETH={"id":0,"symbol":"ETH",}USDC={"id":8,"symbol":"USDC",}wsClient=WsClient(tokens=[ETH,USDC])wsClient.start()wsClient.subscribeTicker(symbol="ETHUSDC",id=1,callback=message_handler,)time.sleep(300)wsClient.stop()More websocket examples are available in theexamplesfolderTestnetfromdegate.websocket.spot.websocket_clientimportSpotWebsocketClientasWsClientwsClient=WsClient(websocketBaseUrl='wss://testnet-ws.degate.com')
Package: degen
DegenProgramming with betting odds, made simplepronounced "dee-gen"as inDegenerate GamblerTable of ContentsInstallationGetting StartedExamplesDeveloping / ContributingInstallationpipinstalldegenGetting StartedfromdegenimportAmericanOddsodds=AmericanOdds(-110)print(odds.value)# >>> -110Easy conversion between odds typesThere are 3 mainOddstypes provided by degen:AmericanOddsDecimalOddsImpliedProbabilityThey all support the methods:.to_american_odds().to_decimal_odds().to_implied_probability()No more formulasExamplesExample 0: simple odds objectsfromdegenimportAmericanOdds,DecimalOdds,ImpliedProbabilityamerican_odds=AmericanOdds(-110)decimal_odds:DecimalOdds=american_odds.to_decimal_odds()print(decimal_odds.value)# >>> 1.909090909090909090909090909implied_probability:ImpliedProbability=american_odds.to_implied_probability()print(implied_probability.value)# >>> 0.5238095238095238095238095238Example 1: Bitwise operators for simple odds computation, parlay using bitwise-and operatorodds1=AmericanOdds(-110)odds2=AmericanOdds(-110)parlay_odds:AmericanOdds=odds1&odds2print(parlay_odds.value)# >>> 264.4628099173553719008264463Example 2: Computingjuiceorthe vigusing the bitwise-or operatorjuice=AmericanOdds(-110)|AmericanOdds(-110)# Juice can't be represented by american odds, so the type of the juice# variable will be "ImpliedProbability" after the computation, which is still an Odds type.print(type(juice))# >>> <class 'degen.odds_models.ImpliedProbability'># ImpliedProb > 1.0 provides a measure of "juiced" odds, or the book "vig"print(juice.value)# >>> 1.047619047619047619047619048# You can ask all odds objects if they're "juiced"print(juice.is_juiced)# >>> TrueContributing / DevelopingInstall requirementspipinstall-rrequirements-dev.txt-rrequirements.txtRun tox suite:Run black code fmt checksRun unittestsCheck coverageGenerate coverage report & badgetoxTest coverage has a floor of 95% - this will block a PR from getting approval if this threshold isn't met.TodoContributions from other developers are always welcome, here are some things that need to be implemented:Fractional OddsHong OddsNotesEverythign done with Decimals for numerical precision
Package: degenerate-dna
testspackagePython implementation of the Degen Perl package by Zwick et al.http://www.phylotools.com/ptdegenoverview.htmUsage>>>fromdegenerate_dnaimportDegenera>>>dna='AGTTCT'>>>res=Degenera(dna=dna,table=1,method='S')>>>res.degenerate()>>>res.degenerated'AGYAGY'Installationpipinstalldegenerate-dnaRequirementspython 2.6, 2.7, 3.3, 3.4, 3.5LicenceBSDAuthorsCarlos Peña.
Package: degiro-pit-woj-i
Degiro - PITCelem tej aplikacji jest pobranie kursów walut potrzebnych do obliczenia podatku giełdowego w Polsce.
Aplikacja na licencji MIT, autor nie ponosi odpowiedzialności za poprawność działania programu.WymaganiaPython 3.8 lub nowszyDla Windows:Powershell, ewentualnie cmd.exeInstalacjaOtwórzPowershell (Windows)/Terminal (Linux). Uruchom:pip install degiro-pit-woj-iAktualizacjapip install --upgrade degiro-pit-woj-iInstalacja z kodu źródłowego (alternatywna do pip install)Pobierz kod aplikacjigit clone https://github.com/woj-i/degiro-pit.gitOtwórz terminal w katalogu projektu (tam gdzie README.md). Uruchom:python -m venv venvDla Windows:venv\Scripts\activate.batDla Linux / MacOS:source venv/bin/activateUruchom:pip install -r requirements.txtPrzygotowanie danychPobierz raport z transakcji DeGiro w formie plików csv. Zapisz plik w osobnym katalogu (np. Degiro).
Domyślna nazwa pliku z transakcjami przy eksporcie z DeGiro toTransactions.csv.Przykładowy plik z danymi znajdziesz w kataloguexamples/input.Uruchomienie programuOtwórz Powershell/Terminal w katalogu gdzie znajdują się  plik z transakcjami.
Powershell można uruchomić przezWindows Explorer -> Plik -> Otwórz Windows Powershell. Uruchom:python -m degiro_pit.enricher Transactions.csv --date_column_name Datum --currency EURTo komenda dla niemieckiej wersji DeGiro. Jeśli kolumna daty w Twoim pliku CSV nazywa się inaczej to zmieńDatumna swoją nazwę.
Możesz także wybrać inną walutę. Obecnie są wspierane EUR i USD.
Jeśli nazwałeś plik inaczej niż  domyślneTransactions.csvto użyj nazwy swojego pliku w komendzie powyżej.WynikiWyniki znajdują  się w katalogu gdzie została uruchomiona aplikacja. Nazwa pliku wynikowego tooutput.csv.
Wyniki należy otworzyć używanym przez Ciebie arkuszem kalkulacyknym (np. LibreOffice Calc).Dysponując kolumną z kursem waluty z dnia poprzedniego od transakcji (eur_pln_day_before) łatwo stworzyć kolumnę z wyliczoną wartością w złotówkach.
Do rocznego podsumowania należy pamiętać o usunięciu linii transakcji kupna, które nie zostały zamknięte.Rozwój aplikacjiWszelkie uwagi i propozycje ulepszeń są mile widziane. Proszę używać do tego zakładki "issues" w GitHubie.
Package: degiropy
degiropyUnofficial Degiro API in PythonGetting StartedInstallingpipenv --python 3
pipenv install requests
pipenv install degiropyUsagefromdegiropyimportDegiropyfromdegiropy.typesimportActions,OrderTypes,TimeTypes,ProductTypes,Sortdegiro=Degiropy(username,password,verbose=True)# Initializationdegiro.login()degiro.get_config()degiro.init_url_config()degiro.init_data()# Usage examplescf=degiro.get_cash_funds()print(cf['EUR']['value'])# prints EUR amountdegiro.get_portfolio_summary()# returns object with `equity` and `cash` propertiesdegiro.get_portfolio(False)# Returns portfolio skipping historical dataorder={}# Fill order datadegiro.place_order(order)# Places an orderDevelopmentpython setup.py build
python setup.py installLicenseBSD 2
Package: degit
De-GithubSetupWe are using Python 3.8 for development.Install required packages by runningpip install -r requirements.txtWe are using Ganache to create a blockchain network at local environment for development and testing.Please head to theGanache websiteand download it.Once you have installed Ganache, you can simple click on quickstart and you should be able to call degit functions.Remember to define theRPC_SERVERenvironment variable, by default the value ishttp://127.0.0.1:7545which is the default network of Ganache.Also please put your private key in the.keyfile. Degit will automatically load the key and use it for git operations.How to run testsWe have prepare atest.pyfor your convenient.Before you run the tests, you must put in two different private key to.keyand.second_user_key(you can randomly pick 2 from Ganache).Then run:python test.pyYou should obtain a console output similar to this one:Owner's Log:
File last modified time on Owner machine: 2022-05-08 12:25:00
Initialized Repository. State file created in current directory.
Committed files:


Staged files:

	test.txt

Commit 076bb1b40881a287b47ca56d7d17d2c54815dd36 was successful.
Contract deployed to chain, contract address: 0x7B9ef343909fD32b8Ad7c9667Dc49Dd4034e4742. 
Pushed commits "076bb1b40881a287b47ca56d7d17d2c54815dd36" to repository "test".
Whitelisted user of address: 0xbe2545A975e8A6Efd0BA5c4600aE4CfA228DA8b5
Dumped repository config to ./repo_config.pkl.

Friend's Log:
Loaded repository config from ./repo_config.pkl
Replace your repository by commit 076bb1b40881a287b47ca56d7d17d2c54815dd36
File last modified time on friend machine: 2022-05-08 12:25:07


Process finished with exit code 0Thistest.pymimic two users (1 owner and 1 collaborator):The owner has written some code intest.txtThe owner runsdegit init test(testis the repository name)The owner runsdegit add test.txtThe owner runsdegit commitThe owner runsdegit pushto pushtest.txtto the blockchain networkThe owner gets his friend account address and runsdegit whitelist_add_user <friend_address>The owner runsdegit dump_repository_configThe friend runsdegit load_repository_configThe friend runsdegit pullThe friend now has thetest.txtin his machineThe printed file last modified time shows that the file is truly replaced by the one pulled from the repository.FileStorageAt the moment we are using HKUST provided endpoint to upload file and download file.In the future, we might deploy a smart contract ourselves as a decentralized filestorage.Smart ContractAt the moment we have./contracts/Repository.solonly.This is the template repository we defined to allow user to create repository with access control.Limited FunctionsIt is unfortunate that due to limited time and team members, we are unable to replicate git fully.
Package: dego
Homedego-py is a Python Wrapper for the JSON-RPC API of Dero Gold, which integrates with DeroGoldd and WalletAPI.Installationpip3installdegoRequirementsPython >= 3.6DeroGoldd version 0.4.0hotfix2DonationIf you would like to support  the project, consider making a donation. :-)dg51XbaPvkmVSyC1sK1NDfBdiPkMBMcdZY1WjFRdxreDLkDpPfW23aBZTgzDeap9voh2vQTXxCyNJbi3A1TgvXQE1CKrtXdJDLicenseMIT License
Package: degreedays
This is a client library for the Degree Days.net API - a popular source of heating degree days, cooling degree days, and hourly temperature data, for locations worldwide.Degree days are used to monitor and manage the energy usage of buildings, to reduce consumption and the costs and carbon emissions that come with it.  The Degree Days.net API is used by numerous software systems doing automated analysis of energy-usage data from buildings around the world.For more on this Python library, please visit the quick-start guide atwww.degreedays.net/api/pythonFor more on the Degree Days.net API, please visitwww.degreedays.net/api/For more on degree days and how best to use them, please visitwww.degreedays.netThis client library will run on Python 2 (2.5 and above) and Python 3.  It has zero dependencies.  For development you can use it with the free test API account described atwww.degreedays.net/api/testbut for production use you'll need a commercial Degree Days.net API account fromwww.degreedays.net/api/signupThe quick-start guide atwww.degreedays.net/api/pythonwill probably be enough to get you going, but please feel free to email us if you'd like any help or if you have any feedback.  Thanks for trying out the Degree Days.net API!
Package: degreed-client
Python client for Degreed APIThe Degreed python package to leverage and connect to the Degreed API from python 3.Free software: Apache Software License 2.0Documentation:https://degreedClient.readthedocs.io.FeaturesUsers ModuleContent Module ( article, books, videos and courses)Provider ModulePathways ModuleRecommendations ModuleRequired Learning ModuleCompletions ModuleCertifiable skills ModuleSkill Plan ModuleSkills Rating ModuleSearch terms ModuleViews ModuleGroups ModuleCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.This package was derived fromtonybaloneyAnthony Shaw’s open source project for the pathgather python client.History2.2.2 (2020-05-17)2.1.2 (2020-05-13)2.1.1 (2020-05-13)2.1.0 (2019-09-27)2.0.0 (2019-09-09)1.8.0 (2019-07-25)1.6.2 (2019-07-06)1.6.1 (2019-07-06)1.5.0 (2019-07-04)1.0.0 (2019-05-21)First release on PyPI.
Package: degreesConversion
Degrees converterSimple library that converts temperature from one unit to another one(e.g. from Celsius to Fahrenheit).Every method of the classConverterreturns a float rounded to the second decimal figure.UsageImport the classConverterand create an instance of the classConverter:fromdegreesConversion.converterimportConverterconv=Converter()and then call the methods of the instance with an int or a float value:print(conv.celFah(0))# output: 32.0The methods can accept a string as argument if it's still a number:print(conv.celFah("0"))# output: 32.0print(conv.celFah("zero"))# output: Couldn't convert string to float.
Package: degtrig
DegTrigA PyPi module providing all of the trigonometric functions that deal in degrees. No more math and numpy radians confusion!How does it work?Use import DegTrig to get access to the convert functions:fromdegtrigimport*and then use the functions:sin(30)cosh(1)asin(1/2)atanh(0.1)cot(60)asec(0.9)Why DegTrigmathprovides trigonometric functions however the normal functions use radians while the hyperbolic functions use degrees. It's all a little too much to remember! DegTrig provides the answer to this problem by unifying the functions so that they all use degrees (the better unit of rotation).InstallationOn bash:$pipinstallDegTrigOn windows:python -m pip install DegTrigUsageContributingContributingFork it (https://github.com/)Create your feature branch (git checkout -b my-new-feature)Commit your changes (git commit -am 'Add some feature')Push to the branch (git push origin my-new-feature)Make sure that the script does not have errors or warningsCreate a new Pull RequestLicenseThis tool is open source under theMIT Licenseterms.[Back To Top]
Package: degu.purchaseorders
degu.pruchaseordersIntroductionThis product include content types to recive purchase orders and sent
email notifications to users. This product provides two content types:Purchase Order Folderallows to send and store purchase orders.Purchase Ordercontains the description of a purchase order.Installing itAdds this line to your buildout (degu.purchaseorders).Changelog0.1.0dev (unreleased)Initial release
Package: deicode
[![Build Status](https://travis-ci.org/biocore/DEICODE.svg?branch=master)](https://travis-ci.org/biocore/DEICODE)
[![Coverage Status](https://coveralls.io/repos/github/biocore/DEICODE/badge.svg?branch=master)](https://coveralls.io/github/biocore/DEICODE?branch=master)DEICODE is a tool box for running Robust Aitchison PCA on sparse compositional omics datasets, linking specific features to beta-diversity ordination.## InstallationTo install the most up to date version of deicode, run the following command# pip (only supported for QIIME2 >= 2018.8)
pip install deicode# conda (only supported for QIIME2 >= 2019.1)
conda install -c conda-forge deicodeNote: that deicode is not compatible with python 2, and is compatible with Python 3.4 or later. deicode is currently in alpha. We are actively developing it, and backward-incompatible interface changes may arise.## Using DEICODE inside [QIIME 2](https://qiime2.org/)The QIIME2 forum tutorial can be found [here](https://forum.qiime2.org/t/robust-aitchison-pca-beta-diversity-with-deicode/8333).The official plugin docs and tutorial can be found [here](https://library.qiime2.org/plugins/deicode).The in-repo tutorial can be found [here](https://nbviewer.jupyter.org/github/biocore/DEICODE/blob/master/ipynb/tutorials/moving-pictures.ipynb).## Using DEICODE as a standalone toolThere are two commands within deicode. The first isrpcaand the second isauto-rpca. The only difference is thatauto-rpcaautomatically estimates the underlying-rank of the matrix and requires no input for then_componentsparameter. In therpcathen_componentsmust be set explicitly. The structure of the commands follows the QIIME2 commands exactly and so questions about the use of the tool can be answered in the tutorial in theUsing DEICODE inside QIIME 2section above. However, an example analysis without the use of QIIME2 can be found [here](https://nbviewer.jupyter.org/github/biocore/DEICODE/blob/master/ipynb/tutorials/moving-pictures-standalone-cli-and-api.ipynb).## Using DEICODE as a Python APITherpcafunctionality of DEICODE is also exposed as a python API. An example analysis without the use of the command line can be found [here](https://nbviewer.jupyter.org/github/biocore/DEICODE/blob/master/ipynb/tutorials/moving-pictures-standalone-cli-and-api.ipynb).## Other Resources[Aitchison Distance Introduction](https://github.com/biocore/DEICODE/blob/master/ipynb/introduction.ipynb)The code for OptSpace was translated to python from a [MATLAB package](http://swoh.web.engr.illinois.edu/software/optspace/code.html) maintained by Sewoong Oh (UIUC).Transforms and PCoA : [Scikit-bio](http://scikit-bio.org)Data For Examples : [Qiita](https://qiita.ucsd.edu/)#### Simulation and Benchmarking[simulations and case studies](https://github.com/cameronmartino/deicode-benchmarking)
Package: deid
Deidentify (deid)Best effort anonymization for medical images in Python.Please see ourDocumentation.These are basic Python based tools for working with medical images and text, specifically for de-identification.
The cleaning method used here mirrors the one by CTP in that we can identify images based on known
locations. We are looking for collaborators to develop and validate an OCR cleaning method! Please reach out if you would like to help work on this.InstallationLocalFor the stable release, install via pip:pipinstalldeidFor the development version, install from Github:pipinstallgit+git://github.com/pydicom/deidDockerdockerbuild-tpydicom/deid.
dockerrunpydicom/deid--helpIssuesIf you have an issue, or want to request a feature, please do so on ourissues board.
Package: deid-data
Deidentify (deid) DataData for best effort anonymization for medical images in Python.This data is supplementary to theDeidlibrary and can be installed alongside it.
It's required for tests and supplementary datasets, and you are free to use it for your own purposes! To install:$pipinstalldeid-dataPlease see our mainDocumentation.IssuesIf you have an issue with the data or want to request a new dataset, please do so on ourissues board.
For all other issues, please post todeid-issues