Saravanan666/pypi-org huggingface dataset:
Package: pinksale
pinksale-pythonThe unofficial Python client forPinksale.FunctionaltyA Python wrapper for any presale contract.Easy access to the necessary data about the presale.Supports BSC and ETH for now.Installationpip install pinksale-pythonSupportsBinance Smart ChainSupports ETH (BNB)EthereumSupports ETH (ETH)DonationYou can support the project by donating :)for ETH/BSC/ARBI/AVAX/POLYGON chains:0x09a27f3647aD2Fd081e515F9D2d785292Fba38C1Usage/ExamplesWrite functionsTo make a contribution, you only need to enter the amount in ether:frompinksale.pinksaleimportPinksaleclient=Pinksale("0x0A8527e4A1e3f8b56508e26b8Dc332e067916108","your_private_key",provider="https://bsc-dataseed1.ninicoin.io")tx_receipt=client.contribute(1)# Contribute with 1 BNBEmergency withdraw:client.emergency_withdraw()You can claim your tokens when pool finalizes:client.claim()View FunctionsA simple call example for view functions. Contract address is your presale address.frompinksale.pinksaleimportPinksaleclient=Pinksale("0x0A8527e4A1e3f8b56508e26b8Dc332e067916108",provider="https://bsc-dataseed1.ninicoin.io")contributors=client.get_all_contributors()>>['0x0080b399E21475a7ca6d6cf9081C983BE51Bdead','0xA8617881a6914b59000f279e4425F0E8E84BeBa5',...]You can get Pool Details: Total raised, Details (image, links, etc.), KYCclient.get_pool_details()>>{'total_raised':120222334187259780175,'details':{'a':'https://photos.pinksale.finance/file/pinksale-logo-upload/1696947582061-36b70f470f30f10fb3055f7c2a32ca88.jpg','b':'https://zhaodavinci.com/','d':'https://twitter.com/Zhao_DaVinci','e':'https://github.com/AnalytixAudit/Solidity/blob/main/20231009_AnalytixAudit_ZhaoDaVinc_VINCI_Audit.pdf','f':'https://t.me/ZhaoDaVinci','h':"♠️ Hottest Meta of the Month ♠️\nWhy did CZ tokenize the Mona Lisa? To blend Da Vinci's genius with crypto magic, creating a masterpiece of digital value ♠️ Top Trending ♠️ Audited Contract ♠️ Top Tier Listings ♠️ CMC & CG Fast track ♠️ Top Incubator ♠️ Based Team ♠️ Buy Back & Burn ♠️ 100x Target ♠️",'s':'https://youtu.be/HYnUI5dDyeo'},'kyc':{'a':'','b':'https://app.analytixaudit.com/zhao-da-vinc','c':'','d':'','e':'','f':''}}Also pool settings: "token", "currency", "start_time", "end_time", "soft_cap", "total_selling_tokens", "max_contribution"client.get_pool_settings()Get current rate returns amount of tokens for 1 bnb.client.get_current_rate()Get all contributor addresses:client.get_all_contributors()Get contribution amount of an address:address=""client.get_contribution_of(address)Changelog0.1.0Support for BSC (BNB) and ETH (ETH)
Package: pinksale-python
pinksale-pythonThe unofficial Python client forPinksale.FunctionaltyA Python wrapper for any presale contract.Easy access to the necessary data about the presale.Supports BSC and ETH for now.Installationpip install pinksale-pythonSupportsBinance Smart ChainSupports ETH (BNB)EthereumSupports ETH (ETH)DonationYou can support the project by donating :)for ETH/BSC/ARBI/AVAX/POLYGON chains:0x09a27f3647aD2Fd081e515F9D2d785292Fba38C1Usage/ExamplesWrite functionsTo make a contribution, you only need to enter the amount in ether:frompinksale.pinksaleimportPinksaleclient=Pinksale("0x0A8527e4A1e3f8b56508e26b8Dc332e067916108","your_private_key",provider="https://bsc-dataseed1.ninicoin.io")tx_receipt=client.contribute(1)# Contribute with 1 BNBEmergency withdraw:client.emergency_withdraw()You can claim your tokens when pool finalizes:client.claim()View FunctionsA simple call example for view functions. Contract address is your presale address.frompinksale.pinksaleimportPinksaleclient=Pinksale("0x0A8527e4A1e3f8b56508e26b8Dc332e067916108",provider="https://bsc-dataseed1.ninicoin.io")contributors=client.get_all_contributors()>>['0x0080b399E21475a7ca6d6cf9081C983BE51Bdead','0xA8617881a6914b59000f279e4425F0E8E84BeBa5',...]You can get Pool Details: Total raised, Details (image, links, etc.), KYCclient.get_pool_details()>>{'total_raised':120222334187259780175,'details':{'a':'https://photos.pinksale.finance/file/pinksale-logo-upload/1696947582061-36b70f470f30f10fb3055f7c2a32ca88.jpg','b':'https://zhaodavinci.com/','d':'https://twitter.com/Zhao_DaVinci','e':'https://github.com/AnalytixAudit/Solidity/blob/main/20231009_AnalytixAudit_ZhaoDaVinc_VINCI_Audit.pdf','f':'https://t.me/ZhaoDaVinci','h':"♠️ Hottest Meta of the Month ♠️\nWhy did CZ tokenize the Mona Lisa? To blend Da Vinci's genius with crypto magic, creating a masterpiece of digital value ♠️ Top Trending ♠️ Audited Contract ♠️ Top Tier Listings ♠️ CMC & CG Fast track ♠️ Top Incubator ♠️ Based Team ♠️ Buy Back & Burn ♠️ 100x Target ♠️",'s':'https://youtu.be/HYnUI5dDyeo'},'kyc':{'a':'','b':'https://app.analytixaudit.com/zhao-da-vinc','c':'','d':'','e':'','f':''}}Also pool settings: "token", "currency", "start_time", "end_time", "soft_cap", "total_selling_tokens", "max_contribution"client.get_pool_settings()Get current rate returns amount of tokens for 1 bnb.client.get_current_rate()Get all contributor addresses:client.get_all_contributors()Get contribution amount of an address:address=""client.get_contribution_of(address)Changelog0.1.0Support for BSC (BNB) and ETH (ETH)
Package: pinky
pinky - molecular fingerprint librarypinky is library for generating molecular fingerprints from SMILES strings.pinky includes a fork of the SMILES parser and mol builder from frownshttp://frowns.sourceforge.net/originally written by Brian Kelley with
contributions from Andrew Dalke.This should be considered alpha software. The goal is to add more molecular
fingerprint algorithms (currently only ECFP is supported). Also, would like to
battle test the SMILES parser to provide a robust pure python SMILES parsing
library.Usagefrompinky.smilesimportsmilinfrompinky.fingerprintsimportecfpmol=smilin('CCCC(=O)N')foratominmol.atoms:printatom,atom.sumBondOrders()forbondinmol.bonds:printbond.symbol,bond.bondorder,bond.bondtype,bond.fixed# Compute ECFP_4 fingerprintfp=ecfp(mol,radius=2)LicenseSee LICENSE file.
Package: pinliner
pinliner - Python InlinerThis tool allows you to merge all files that comprise a Python package into
a single file and be able to use this single file as if it were a package.Not only will it behave as if it were the original package, but it will also
show code in exceptions and debug sessions, and will display the right line
number and file when logging.Imports will work as usual so if you have a package structure like:.
└── [my_package]
     ├── file_a.py
     ├── [sub_package]
     │    ├── file_b.py
     │    └── __init__.py
     ├── __init__.pyAnd with pinliner installed you execute:$mkdirtest$pinlinermy_packagetest/my_package.py$cdtest$pythonYou’ll be able to use generatedmy_package.pyfile as if it were the real
package:>>>importmy_package>>>frommy_packageimportfile_aasa_file>>>frommy_package.sub_packageimportfile_bAnd__init__.pycontents will be executed as expected when importingmy_packagepackage and you’ll be able to access its contents like you would
with your normal package.Modules will also behave as usual.If your package is checking__name__for__main__it will also work as
usual.  Although given the fact that we only have 1 file we will no longer be
able to call other packages/modules directly from the command line to trigger
code conditioned to__name__having__main__as its value.Loader code will automatically compile packages and modules to byte code,
before running it.  When a module is imported for the first time, or when the
specific’s package/module source (not the whole inlined file) is more recent
than the current compiled file, a .pyc file containing the compiled code will
be created in the same directory as the pinlined .py file.If the byte code is up to date then it will be used instead, thus avoiding a
recompilation, exactly the same as python normally does, with the only
exception that all .pyc files will be in the same directory and the filenames
will include the full path to the original file.InstallationYou can install pinliner globally in your system or use a virtual environment,
this is how it could be done using a virtual environment:$virtualenv.venv$source.venv/bin/activate$pipinstallpinlinerAfter that you can run the tool withpinliner.History0.2.0 (2016-04-03)Add support for incompatible loaders to coexists.Generate and use pyc files for modules.Add support for the filename to be different than the package.Now __main__ works directly from the package as expected.0.1.1 (2016-03-29)Fix missing template file when installingReduce memory footprint to keep the package structure and code.Include tagging of beginning of files in the output.0.1.0 (2016-03-27)Show code when debugging and on tracebacksImprove internal package and module namesFix line numbers (off by 1)Package’s root namespace is no longer polluted by pinlinerOriginal filename for package/modules is stored so it will be reported by
exceptions and logging.0.0.1 (2016-03-26)Basic functionality.
Package: pinmyreqs
Pin your requirements.txt dependencies without adding new onesUsage:To install,pip install pinmyreqsTo use,pip freeze | pinmyreqs requirements.txtThere’s also an utility to unpin your deps so you can upgrade all of them:unpinmyreqs requirements.txtAlternatives:https://pypi.python.org/pypi/pypinner/https://pypi.python.org/pypi/bumper/https://pypi.python.org/pypi/peepin/https://pypi.python.org/pypi/pip-lock/https://pypi.python.org/pypi/pur/
Package: pinn
The Pinn Python library is the easiest, fastest and most enjoyable way to integrate
Pinn into your existing or new python project. This interface around our REST API
provides an idiomatic, ORM-style usage that will make life easy.Table of ContentsInstallationDocumentationChangelogLicenseInstallationThe easiest way to get started is:pipinstall--upgradepinnAlternatively you could also install directly from source like so:pythonsetup.pyinstallDocumentationFor a full run down of the library please see the reference documentationhere, or keep reading on for just the basics.ChangelogFor a detailed account of each release, please refer to theCHANGELOG.LicenseCopyright (c) 2019 Pinn Technologies, Inc.Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: pinn2dcm
Pinn2DCMIntroductionThis modules serves to convert old Pinnacle CTs into the DICOM format. It can be called from the command line for batch processing, however an optional GUI is also available.Currently, this module is the minimum viable product. It was tested with a single anonymized dataset, therefore many features that might be of interested are not yet available. Please feel free to contact me if you have any questions or suggestions!UsageThe script requires you to provide two paths: the path to the Pinnacle CT directory and the path to the output directory. The Pinnacle CT directory needs to contain the following files:├──PinnacleCTdirectory│├──*.img
│├──*.header
│├──*.ImageInfo
│├──*.ImageSetTo start conversion, run the following command:$pinn2dcm"path to Pinnacle CT directory""path to output directory"To start the GUI, run the fcommand without any arguments:$pinn2dcmInstallationYou can either download the repository manually and extract it, usegit clone, or install using pip:$pipinstallpinn2dcmNote: If Python is not added to your PATH, you may need to preface the above commands withpython -m!DependenciesNumpyPydicomContactIf you have any questions or suggestions, please feel free to contact me atse.schaefer@uke.de!
Package: pinnacle
# pinnacle
Python Wrapper for Pinnacle Sports API[Pinnacle Documentation](https://www.pinnacle.com/en/api/manual)# Installation` $ pip install pinnacle `# Usage`python >>> from pinnacle.apiclient import APIClient >>> api =APIClient('username','password') >>> sport_ids = api.reference_data.get_sports() >>> tennis_events = api.market_data.get_fixtures(33) `
Package: pinnacle-nick
# pinnacle
Python Wrapper for Pinnacle Sports API[Pinnacle Documentation](https://www.pinnacle.com/en/api/manual)# Installation` $ pip install pinnacle `# Usage`python >>> from pinnacle.apiclient import APIClient >>> api =APIClient('username','password') >>> sport_ids = api.reference_data.get_sports() >>> tennis_events = api.market_data.get_fixtures(33) `
Package: pinnacle-pub
pinnacleRun the statistics and create some plots:Create or load an ADS API key, and save it in a environment variable ADS_DEV_KEY::import pinnaclecreate a config dictionaryiate = pinnacle.inst_adsentries(config)
iate.load_inst()
viz = pub_dataviz(iate)
viz.plot_all()The task of this project is to analyze the publication metrics in the IATE.AutorProject by Marcelo Lares (IATE, UNC).  Developed in 2020.
Package: pinner
A tiny console script to verify you have pinned all of your python requirements.Why you should specify exact version in requirements.txtExample:$ cat requirements.txt
PIL
coveralls>=1.0a1
responses==0.3.0
git+https://github.com/miracle2k/django-assets.git@master#egg=django_assets
-e git+git://github.com/miracle2k/webassets.git@9956fb86c1c750672324b2c95c9a464a0ef11a4f#egg=webassets
git+https://github.com/fcurella/django-recommends.git#egg=django_recommends

$ pinner
./requirements.txt:1:1: R001 Dependency PIL not pinned
./requirements.txt:2:1: R002 Dependency coveralls should be pinned to exact version
./requirements.txt:4:1: R004 VCS dependency django_assets specifies branch/tag, commit expected
./requirements.txt:6:1: R003 VCS dependency django_recommends lacks revision specifier
[4]You can use it in your commit hook or CI testsChangelog0.1.0 (2015-03-01)First release on PyPI
Package: pinn-ics
pinn-icsPINN frameworkInstallationpipinstallpinn-icsLatest version:1.0.2- New Features: `RAR algorithm` - generate data where the loss is higherSyntaxVar Configurationpinnicsrequires configurations for all variables.VarSpeccan import directly frompinnicsVarSpecobject containsindentify characterandlimitof this variable.Example:Your solution depends on 2 domains:dimensionandtime.Formatu(x, t)frompinnicsimportVarSpecx=VarSpec('x',limit=(-1,1))t=VarSpec('x')# which defaults the limit of var t from 0 to 1Function Definitionpinnicssupports solving partial differential equation with the simple syntax.Define afunctionwith format:importnumpyasnpimporttensorflowastfdefpde_loss(res):# that presents u = u(x, t)u=res(x='x',t='t',num=10000)# u't + u * u'x = 3 * u''xx + sin(pi * x)returnu.diff('t')+u()*u.diff('x')-3*u.diff('x','x')-tf.sin(np.pi*res.var['x'])Whereas:resis the required predefine argument, that will store all information.u = res(x='x', t='t', num==10000)that representsu = u(x, t).You can also use like thatu = res(x=-1., t='t')that representsu = u(-1, t)u()will return the value ofu(x, t)u.diff('x')returns the first order partial derivative ofu(x, t)byxu.diff('x', 'x')returns the second order partial derivativeres.var['x']is the input valuexfor the model.Networkpinnicsprovides aNetworkclass to help people solvePDEproblems by easy way.Example:frompinnicsimportNetWork# define network to solve pde problem.net=NetWork(variables=[x,t],losses=[pde_loss],layers=[2,20,20,20,1])net.solve(epochs=10000,show_every=1000)Whereas:variables,losses,layersare required to create a new network.variablesis thelistwhich contains allvariables(VarSpecobject) of model.lossesis thelistwhich contains allequations(function defined in previous part).layersis thelistthat represents network's architecture.Non-required arguments:activation_func: the activation function after each layer (expect result layer),defaultbytf.keras.activations.tanhoptimizer: the optimizer of model,defaultbytf.keras.optimizers.Adam()initializer_func: the initializer for model's parameters,defaultbytf.keras.initializer.glorut_normalnet.solve(10000)will training and approximate the result.After obtaining the model, you can get predict by usingcall() function.x=np.linspace(-1,1,200).reshape(-1,1)t=np.linspace(0,1,200).reshape(-1,1)input=np.concatentate([x,t],axis=1)y_pred=net(input)A completely examplefrompinnicsimportNetWork,VarSpecimportmatplotlib.pyplotaspltimportnumpyasnpt=VarSpec('t',limit=(0,5))defpde(res):u=res(t='t',num=1000)returnu.diff('t','t')+3*u.diff('t')+2*u()defbound(res):u_pos=res(t=0,num=50)returnu_pos()-3defbound_t(res):u_zero=res(t=0,num=50)returnu_zero.diff('t')-1net=NetWork(variables=[t],losses=[pde,bound,bound_t],layers=[1,20,20,1])net.solve(epochs=1000,show_every=100)plt.plot(net.history_loss)plt.show()x=np.linspace(0,5,300).reshape(-1,1)y=7*np.exp(-x)-4*np.exp(-2*x)y_pred=net(x)plt.plot(x,y,label='truth',linewidth=3)plt.plot(x,y_pred,label='predict',linewidth=3,linestyle='dashed')plt.plot(x,y-y_pred,label='different')plt.show()
Package: pinnstf2
[Paper]-[PyTorch]-[TensorFlow v1]DescriptionPINNs-TF2 is a Python package built on the TensorFlow V2 framework. It not only accelerates PINNs implementation but also simplifies user interactions by abstracting complex PDE challenges. We underscore the pivotal role of compilers in PINNs, highlighting their ability to boost performance by up to 119x.Each subplot corresponds to a problem, with its iteration count displayed at the
top. The logarithmic x-axis shows the speed-up factor w.r.t the original code in TensorFlow v1, and the y-axis illustrates the mean relative error.For more information, please refer to our paper:PINNs-TF2: Fast and User-Friendly Physics-Informed Neural Networks in TensorFlow V2.Reza Akbarian Bafghi, and Maziar Raissi. ML4PS, NeurIPS, 2023.InstallationPINNs-TF2 requires following dependencies to be installed:TensorFlow>=2.0.0Hydra>= 1.3Then, you can install PINNs-TF2 itself via [pip]:pipinstallpinnstf2If you intend to introduce new functionalities or make code modifications, we suggest duplicating the repository and setting up a local installation:gitclonehttps://github.com/rezaakb/pinns-tf2cdpinns-tf2# [OPTIONAL] create conda environmentcondacreate-nmyenvpython=3.9
condaactivatemyenv# install packagepipinstall-e.Quick startExplore a variety of implemented examples within theexamplesfolder. To run a specific code, such as the one for the Navier-Stokes PDE, you can use:pythonexamples/navier_stokes/train.pyYou can train the model using a specified configuration, like the one found inexamples/navier_stokes/configs/config.yaml. Parameters can be overridden directly from the command line. For instance:pythonexamples/navier_stokes/train.pytrainer.max_epochs=20n_train=3000To utilize our package, there are two primary options:Implement your training structures using Hydra, as illustrated in our provided examples.Directly incorporate our package to solve your custom problem.For a practical guide on directly using our package to solve the Schrödinger PDE in a continuous forward problem, refer to our tutorial here:tutorials/0-Schrodinger.ipynb.DataThe data located on the server and will be downloaded automatically upon running each example.ContributingAs this is the first version of our package, there might be scope for enhancements and bug fixes. We highly value community contributions. If you find any issues, missing features, or unusual behavior during your usage of this library, please feel free to open an issue or submit a pull request on GitHub. For any queries, suggestions, or feedback, please send them toReza Akbarian Bafghiatreza.akbarianbafghi@colorado.edu.LicenseDistributed under the terms of the [BSD-3] license, "pinnstf2" is free and open source software.ResourcesWe employedthis templateto develop the package, drawing from its structure and design principles. For a deeper understanding, we recommend visiting their GitHub repository.Citation@inproceedings{Bafghi2023PINNsTF2FA,
  title={PINNs-TF2: Fast and User-Friendly Physics-Informed Neural Networks in TensorFlow V2},
  author={Reza Akbarian Bafghi and Maziar Raissi},
  year={2023},
  url={https://api.semanticscholar.org/CorpusID:265043331}
}
Package: pinnwand
pinnwandAboutpinnwandis Python pastebin software that tried to keep it simple but got
a little more complex.PrerequisitesPython >= 3.8Tornadosqlalchemyclickdocutilstomlipygments-better-htmla database driverUsageWebEnter text, click "Paste", easy enough.stecksteckis a command line client to pinnwand instances:€ pip install --user steck
...
€ steck paste *
You are about to paste the following 7 files. Do you want to continue?
- LICENSE
- mypy.ini
- poetry.lock
- pyproject.toml
- README.rst
- requirements.txt
- steck.py

Continue? [y/N] y

Completed paste.
View link:    https://localhost:8000/W5
Removal link: https://localhost:8000/remove/TS2AFFIEHEWUBUV5HLKNAUZFEIcurlpinnwandhas a direct endpoint forcurlusers:€ echo "foo" | curl -X POST http://localhost:8000/curl -F 'raw=<-'
Paste URL:   http://localhost:8000/OE
Raw URL:     http://localhost:8000/raw/GU
Removal URL: http://localhost:8000/remove/GQBHGJYKRWIS34D6FNU6CJ3B5M
€ curl http://localhost:8000/raw/GU
foo%This will preselect thelexerandexpiryarguments to betextand1dayrespectively. You can provide those to change them.APIpinnwandprovides a straight forward JSON API, here's an example using the
common requests library:>>> requests.post(
...     "http://localhost:8000/api/v1/paste",
...     json={
...             "expiry": "1day",
...             "files": [
...                     {"name": "spam", "lexer": "python", "content": "eggs"},
...             ],
...     }
... ).json()
{'link': 'http://localhost:8000/74', 'removal': 'http://localhost:8000/remove/KYXQLPZQEWV2L4YZM7NYGTR7TY'}More information about this API is available in thedocumentation.More ways to use pinnwandVarious deprecated ways of posting are still supported, don't implement these
for any new software but if you are maintaining old software and want to know
how they used to work you can read our documentation_.If you do use a deprecated endpoint to post a warning will be shown below any
pastes that are created this way.Reporting bugsBugs are reported best atpinnwand'sproject pageon github. If you just
want to hang out and chat aboutpinnwandthen I'm available in the#pinnwandchannel on Freenode IRC.Licensepinnwandis distributed under the MIT license. SeeLICENSEfor details.HistoryThis pastebin has quite a long history which isn't reflected entirely in its
repository.