Saravanan666/pypi-org huggingface dataset:
Package: pykeccelsms
KECCEL MESSAGINGKeccel Service Manager is a very simple but powerful SMS Gateway built for developers who just want to send SMS in the
DR Congo at a very affordable cost. Both requests and responses are transmitted in JSON format.SENDING AN SMSMethod: POSTURL:https://api.keccel.com/sms/v2/message.aspRequest ParameterDescriptionExampletoReceiver phone number243851234567messageMessage bodyHello worldfromName that will appear on the phone as the sender of the SMSKECCEL, GUESTtokenYour API key that will be provided by Keccel84hbYi6TU8ZuAll parameters are mandatory.Note: In GUEST or trial modes, the SMS will be displayed as coming from KECCEL. In production, you need to provide an
appropriate name to use as the sender of the SMS, such as the name of your application or your company.Response ParameterDescriptionExamplestatusStatus of the messageRejected, SentmessageIDThe ID of the sent message123456 (used for Delivery Receipt)descriptionA string describing the status or errorInvalid token, Message submitted to the networkExample Request{"token":"84hbYi6TU8Zu","to":"243851234567","from":"GUEST","message":"Hello World"}Response Delivery Report{"status":"SENT","messageID":"123456","description":"Message submitted to the network"}DELIVERY REPORTSThis service allows you to receive the delivery status of a previous sent message. There is NO delivery report for rejected
messages. The delivery can be automatically sent to your callback (PUSH) or you can retrieve it (PULL) from our server.PUSH: Automatic DeliveryIf the Delivery Reports (DLR) are required, you need to provide a callback URL where an automatic HTTP request will be
sent with the previous messageID and the delivery status of the message (DELIVERED or FAILED).
The DLR receipt will be sent to your URL as below:
http(s)://yourcallbackurl?messageID=123456&status=DELIVEREDPULL: Delivery CheckYou can also send a request to our delivery endpoint to check on the delivery status of a previous sent message:
Method: GETURL:https://api.keccel.com/sms/v2/delivery.aspRequest ParameterDescriptionExamplefromName that will appear on the phone as the sender of the SMSKECCEL, GUESTtokenYour API key that will be provided by Keccel84hbYi6TU8ZumessageidThe ID of the message which status is requested123456Response ParameterDescriptionExamplemessageidThe messageID value as requested123456statusStatus of the messageDELIVERED, FAILED (or ErrorBALANCE CHECKThis request is used to get the amount of the remaining SMS credits and the expiration date of a designated account.
Method: GETURL:https://api.keccel.com/sms/v2/balance.aspRequest ParameterDescriptionExamplefromName that will appear on the phone as the sender of the SMSKECCEL, GUESTtokenYour API key that will be provided by Keccel84hbYi6TU8ZuResponse ParameterDescriptionExamplebalanceNumber of remaining credits645expirationExpiration. No SMS will be sent after this date and time31-Dec-2021 06:46:17statusStatus of the accountActive, inactive
Package: pykechain
About pykechainpykechainis a python library for advanced users of KE-chain. It will enable users to connect and fully interact
to all features ofKE-chain, the digital verification and high tech systems design
platform ofKE-works.
With it you can interact with KE-chain, its parts, projects, forms, workflows, activities, scripts and all other
aspects of KE-chain from within python scripts or iPython /Jupyternotebooks.It requires a normal user access to a KE-chain (version 3) instance for it to work.NoteThis version of pykechain (> 4.0.0) is compatible with the latest release of KE-chain where we
added the Forms feature. It is fully backward compatible with all KE-chain versions v2022 and higher.
This version discontinues support for python version 3.6.NoteThis version of pykechain (> 3.0.0) is suited from KE-chain versions > 3 (or > v2021) running
onpython >= 3.7exclusively. If you desire to connect to an older version of KE-chain or
run onpython 2.7, please use apykechain v2release. Put in the requirementspykechain~=2.7.Basic usageEnsure you have member access to a KE-chain instance and login:from pykechain import Client
kec = Client(url='https://<domain>.ke-chain.com')
kec.login(username='demo_user', password='pastaplease')Now interact with it:project = kec.scope('Bike Project')
for part in project.parts():
    print(part.name)Installationpykechain is easily installed using pip.pykechainis Python3.7,3.8,3.9,3.10andpypy3compatible:pip install pykechainOr if you want to live on the edge, install the latest and greatest from the master branch:pip install https://github.com/KE-works/pykechain/archive/main.zipIn scripts you can either usePipenvor a piprequirements.txtfile to
installpykechainas a requirementin aPipfile:[packages]
pykechain = "*"
# or when you want to install a certain branch
pykechain = {ref = "main", git = "https://github.com/KE-works/pykechain"}in a piprequirements.txt:pykechain
# or when you want to install a certain branch i.e. `main`
git+https://github.com/KE-works/pykechain.git@main#egg=pykechainChangelogA proper changelog is maintained in theChangelog
Package: pykeepass-cache
pykeepass_cachepykeepass_cache is a support library forpykeepass.  It is a drop-in replacement forpykeepass.PyKeePasswhich caches databases in a background process to make database access faster.This is useful in situations where the program is terminated between invocations (e.g. CLI scripts).  The background process will automatically shut down after 300 seconds.UsageInstallpipinstallpykeepass-cacheUse as a drop-in replacement forpykeepass.PyKeePass:>>>frompykeepass_cacheimportPyKeePass>>>kp=PyKeePass('test.kdbx','password','keyfile.key')Significant speedup on database open times:# initial open.  database decryption takes a long time>>>timeit.timeit('from pykeepass_cache import PyKeePass;PyKeePass(\'test3.kdbx\',\'password\',\'test3.key\')',number=1)1.2734863759251311# database is now cached in background process and opening is nearly instantaneous>>>timeit.timeit('from pykeepass_cache import PyKeePass;PyKeePass(\'test3.kdbx\',\'password\',\'test3.key\')',number=1)0.006465494981966913Configure background server timeout, socket path:>>>kp=PyKeePass('test.kdbx','password','keyfile.key',timeout=60,socket_path='/tmp/pykeepass.sock)Get a dictionary of currently cached databases:>>>frompykeepass_cacheimportPyKeePass,cached_databases>>>kp=PyKeePass('test.kdbx','password','keyfile.key')>>>cached_databases(){'/home/evan/resources/pykeepass_cache/tests/test.kdbx':<pykeepass.pykeepass.PyKeePassobjectat0x7f4b85678dd8>}Manually kill the server>>>frompykeepass_cacheimportclose>>>close()Testspython tests/tests.py
Package: pykef
Python interface to control KEF speakersSupported: KEF LS50 Wireless (RequiresfirmwareJune 2018 or later)Untested: KEF LSXFeatures supportedGet and set volumeMute and UnmuteGet and set source inputGet if the speakers are onlineAutomatically connects and disconnects when speakers goes online/offlineTurn off speakerFeatures unfortunatly unsupportedTurn on is impossible over tcp/ip because the speaker turns off network interface when turned off. This is true for LS50 Wireless. LSX should be possible to turn on.Note: One workaround to turning on is to use IR commands to turn on. I have included alirc configwith all the keys on the remote. Note that each command has to be sent twice to work (at least for me).InstallpipinstallpykefDiscussionSeehome assistant threadExamplesSetup:host='192.168.1.200'port=50001speaker=KefSpeaker(host,port)Set volume:speaker.volume=0.5# %50 volGet volume:volume=speaker.volumeSet source:speaker.source=InputSource.AUXGet source:source=speaker.sourceMute:speaker.volume=None# Orspeaker.muted=TrueUnmute (set to volume before mute):speaker.muted=FalseStep volume upspeaker.increseVolume()# 5% increasespeaker.increseVolume(0.10)# 10% increaseStep volume downspeaker.decreaseVolume()# 5% increasespeaker.decreaseVolume(0.10)# 10% increaseTurn offspeaker.turnOff()How toUpload new release:Update needed tools:python3-mpipinstall--user--upgradesetuptoolswheelBuildpython3setup.pysdistbdist_wheelUpload (test)twineupload--repository-urlhttps://test.pypi.org/legacy/dist/*LicenseMIT LicenseAuthorsRobin Grönberg
Package: pykefile
Pyke(WIP, Beta Release) Make-like build automation tool for Python projects with extensive DSL features.Features:Users can specify tasks, subtasks, and task rules.Use regex rules patterns to create targets for tasks.Significantly less confusing than Makefiles (is that ataborspace...?)Complete Python DSL with full access to builtins and external dependencies.[WIP]Run and execute tasks in parallel with each other (threaded multitasking).Example:importpyke# create a defualt task, named "build"@pyke.task("build",default=True)defbuild():print("Building the project...")# create a task dependency. running `pyke dist`# will make the "build" task run first!@pyke.task("dist",deps=["build"])defdist():print("Distributing the project...")pyke.run()Put that in aPykefileand you're good to go. Then runpykein the same directory and watch the magic happen!$pykedist
Buildingtheproject...
Distributingtheproject...Installation:Install thepykefilelibrary withpip. Requires Python 3.8 or higher.python-mpipinstallpykefileYou can also add it your developement dependencies withpoetry.python-mpoetryaddpykefile--devUsage:Just like any other Makefile, you'll need thePykefilein your current directory. (Pykefile.pyalso works)Then use thepykecommand to execute and run specified tasks.Runningpykewithout any commands will call the default task if there is one. The first argument will call a task by that name.Developement:Fork the repository:ForkClone locally (git clone https://github.com/<username>/pyke.git)Create your feature branch (git checkout -b my-new-feature)Commit your changes (git commit -a -m 'Add some feature')Push to the branch (git push origin my-new-feature)Create a new Pull Request! 🎉Local Developement:In order to properly test thepykecommands, install the package locally like so:python-mpipinstall-e.You can now usepykein your terminal, and it will automatically use the latest changes to the source code.Usebash bin/buildto build the project.bash bin/docswill update and start the documentation server locally.Final Notes:Pyke is still in beta and I'm open to feature requests or bug reports. Feel free to open an issue! Thanks for checking this project out and I hope it'll make your Python developement process easier!
Package: pykegg
pykeggAnalyze and visualize KEGG information using network approach.Usingbiopython,igraphandplotnine, parse the KGML intoigraphand easily plot the relevant information contained in KEGG Pathway in Python environment.importrequests_cacheimportnumpyasnpfromPILimportImageimportpykeggimportmatplotlibasmpl## Be sure to cache all the downloaded files to avoid recursive queryingrequests_cache.install_cache('pykegg_cache')g=pykegg.KGML_graph(pid="hsa03460")## Export as igraphgra=g.get_graph()print(gra)## Overlay to raw imagends=g.get_nodes()nds=nds[nds.original_type=="gene"]nds["lfc"]=np.arange(-2,2,0.01)[0:nds.shape[0]]cmap_grad=mpl.colors.LinearSegmentedColormap.from_list("cmap_grad",["yellow","green"])norm=mpl.colors.Normalize(vmin=min(nds.lfc),vmax=max(nds.lfc))nds["color"]=[mpl.colors.to_hex(cmap_grad(norm(x)))ifxisnotNoneelseNoneforxinnds.lfc]Image.fromarray(pykegg.overlay_opencv_image(nds,pid="hsa03460"))## Plot using plotnine# options.figure_size = (7,5)pykegg.plot_kegg_pathway_plotnine(g,node_x_nudge=25,label_size=5,show_label="gene")Documentationhttps://pykegg.readthedocs.io/TODOThe function for converting identifiers (especially for ENTREZID <-> SYMBOL) without connection to servers, like usinggenomic-features.Parallel edge support by nudging x and y positionBetter error handling
Package: pyKeksik
pyKeksikБиблиотека для взаимодействия с APIКексикаОфициальная документацияБиблиотека была написана потому что было нечего делать, обновлять буду постоянноПримеры кодаfrompyKeksikimportKeksikApikeksik_api=KeksikApi(group_id,apikey)# Список донатовprint(keksik_api.donates.get())# Список краутфанденговых кампанийprint(keksik_api.campaigns.get())# Список выплатprint(keksik_api.payments.get())# Балансprint(keksik_api.balance())В планах:Реализовать прием callback
Package: pykeksikapi
pykeksikapiДля начала импортируем и инициализируем экземпляр класса:frompykeksikapiimportKeksikAPIkeksik=KeksikAPI(token='your_keksik_token',group_id='your_id_group')Пример получения списка донатов сообщества, сортировка по сумме доната:awaitkeksik.donates.get(sort='amount')Пример получения текущего баланса кексика:outcome=awaitkeksik.other.balance()print(outcome.balance)# Покажет текущий баланс кексика
Package: pykemon
A python wrapper forPokeAPIFree software: BSD licenseDocumentation:http://pykemon.rtfd.org.InstallationNice and simple:$pipinstallpykemonUsageEven simpler:>>>importpykemon>>>client=pykemon.V1Client()>>>p=client.get_pokemon(uid=1)[<Pokemon-Bulbasaur>]FeaturesGenerate Python objects from PokeAPI resources.Human-friendly APIHistory0.2.0 (2016-06-11)Beckett API Client framework added0.1.2 (2014-1-3)Sprite attribute added to Pokemon class0.1.1 (2013-12-24)Description attribute added to Pokemon class0.1.0 (2013-12-23)First release on PyPI.All PokeAPI resources fully supported and represented in an object-oriented style.Easy-to-use API: just one method!
Package: pykemon2.0
A python wrapper forPokeAPIThis is remade fromthe original Pykemondue to it not being compatible with Python 3.0 or higher, it still works the same though.This api wrapper is currently for the V1 API, soon I’ll update it to V2Free software: BSD licenseDocumentation:http://pykemon.rtfd.org.InstallationNice and simple:$pipinstallpykemon2.0UsageEven simpler:>>>importpykemon>>>client=pykemon.V1Client()>>>p=client.get_pokemon(uid=1)[<Pokemon-Bulbasaur>]FeaturesGenerate Python objects from PokeAPI resources.Human-friendly API
Package: pykemon_battle
A text-based Pokémon battling systemTable of ContentsAbout The ProjectInstallationUsageTestsRoadmapLicenseContributingContactAbout The Projectpykemmon_battleis a library that provides a text-based Pokémon battling system.InstallationQuick installation instructions:$ python -m pip install pykemon_battleInstall a development version of this library by cloning the repository and runningflit:$ git clone https://github.com/11michalis11/pykemon_battle.git
$ cd pykemon_battle
$ python -m pip install flit
$ python -m flit install --symlinkUsageInclude the following in a python script:importpykemon_battleaspkmteam_size=3new_battle=pkm.Battle(team_size)new_battle.start_battle()Then run the script in your terminal:$ python my_script.pyTestsRun all tests developed by first installing and then runningtox:$ python -m pip install tox
$ python -m toxRoadmapSee theopen issuesfor a list of proposed features (and known issues).LicenseDistributed under the MIT License. SeeLICENSEfor more information.ContributingFork the repositoryClone the forked repositoryCreate a new branchApply changes to thepykemon_battlelibraryRun tests and make sure they passCommit changesPush changes to GitHubOpen PR on GitHubContactMichalis Panayides -@Michalis_Pan-PanayidesM@cardiff.ac.ukProject Link:pykemon_battle
Package: pykeops
PyKeOps contains the python bindings (numpy and pytorch) for the cpp/cuda libraryKeOps. It provides
standard python functions that can be used in anypython 3codes.For a full documentation you may read:InstallationDocumentationLearning KeOps syntax with examplesTutorials galleryAuthorsBenjamin CharlierJean FeydyJoan Alexis Glaunès
Package: pyker
PykerSimple pker game in pure pythonwhat to do with this library?For now I just implmented an algorithm for ranking poker hands based on the description given herehttp://nsayer.blogspot.com/2007/07/algorithm-for-evaluating-poker-hands.htmlPlease checksamples/Comparsion.ipynbto se how it worksHow to testRequirementsTo test you needpoetryandpyenvwithpython 3.7andpython 3.8, then follow the comandsgit clone https://github.com/zodiacfireworks/pyker.git
cd pyker
poetry install
poetry run toxAnd thats all!
Package: pykernellogit
What is PyKernelLogitPyKernelLogit is a Python package for performing maximum likelihood estimation
of conditional logit models and similar discrete choice models based on the
Python package PyLogit. This package extends the functionalities of PyLogit to
provide some functionalities that allows to estimate discrete choice models
based on Kernel Logistic Regression (KLR). Moreover, this package provides some
functions to estimate indicators such as the Willingness to Pay (WTP) for the
KLR models.InstallationPyKernelLogit is available for its installation on the Python Package Index at:https://pypi.org/project/pykernellogit/.AuthorsPyKernelLogit was developed by José Ángel Martín Baos from the University of
Castilla-La Mancha (JoseAngel.Martin@uclm.es) based on the package PyLogit
(https://github.com/timothyb0912/pylogit)
developed by Timothy Brathwaite.LicenseModified BSD (3-clause)
Package: pykernelpatch
About the projectThis is a WIP iOS 32-bit (atm) kernel patcher. The project is by all means
not to be used in any sort of production environment. This is and will always
be a library to help understand, develop, and automate certain patches to
an iOS kernel in particular.How the project worksSo far, the only thing that is being done is that a binary file is being
passed to find offsets with a given pattern and is patching 1 or more bytes to
disable certain aspects of a decrypted kernelcache to enable restoring unsigned
firmware. This does not patch the kernel to be used in a jailbroken environment.
That requires more patches, but will be added to this project eventually.What's being patchedUnfortunately, I'm not fully certain what these patches do, however I know that
the patches that are being used tie into codesigning, amfi, signature checking,
and more. I'm not aware exactly what is being patched, but the patches that are
being used are derived from the sn0wbreeze project, which provides patched iOS
ipsw's which can be used to either jailbreak or to preserve the baseband that
comes with the ipsw. So far, the patches that are from the baseband preservation
mode that sn0wbreeze offers are being used in this project.What versions and devices are supportediPhone 3GS:3.0, 3.0.1, 3.1, 3.1.2, 3.1.34.0, 4.0.1, 4.0.2, 4.1, 4.2.1, 4.3, 4.3.1, 4.3.2, 4.3.35.0, 5.0.1, 5.1, 5.1.16.0, 6.0.1, 6.1, 6.1.2, 6.1.3, 6.1.6
Package: pykernsformer
pykernsformerThe pykernsformer module extends thetorch.nn.TransformerEncoderLayerclass to include custom attention formulas.InstallationYou can install the pykernsformer package using pip aspip install pykernsformerUsagepykernsformer comes with the following built in attention kernels.pykernsformerAttentionFormulaCitationattentionRegular$softmax(\frac{QK^T}{\sqrt{d_k}})V$Vaswani et al.attention_linearLinear$\frac{QK^T}{\sum_k QK^T}V$attention_periodicPeriodic$softmax(-\frac{2\sin^2(\pi\frac{\sqrt{2 - 2q_ik_j^T}}{p})}{\sqrt{d_k}})V$attention_LPLocally Periodic$softmax(-\frac{2\sin^2(\pi\frac{\sqrt{2 - 2\hat{q}_i\hat{k}_j^T}}{p})}{\sqrt{d_k}} + \frac{{q_i}{k_j^T}}{\sqrt{d_k}})V$attention_RQRational Quadratic$\frac{\left( 1 + \frac{1}{\alpha \sqrt{d_k}} - \frac{2QK^T}{2 \alpha \sqrt{d_k}} \right)^{-\alpha}}{\sum_k \left( 1 + \frac{1}{\alpha \sqrt{d_k}} - \frac{2QK^T}{2 \alpha \sqrt{d_k}} \right)^{-\alpha}}V$You can also implement your own attention function with the following signature:defattention_custom(query,key,value,mask=None,dropout=None):[...]p_attn=[...]# the attention matrix[...]returntorch.matmul(p_attn,value),p_attn
Package: pyketama
pyketama========![build](https://img.shields.io/travis/maralla/pyketama.svg)pyketama is a cython implementation of ketama consistent hashing algorithm.Install=======```bashpip install pyketama```Usage=====```pythonimport ketamadata = ["127.0.0.1:12211", "127.0.0.1:12212"]continuum = ketama.Continuum(data)print(continuum['test'])# with weight, (key, weith)data = [("127.0.0.1:12211", 400), ("127.0.0.1:12212", 500)]continuum = ketama.Continuum(data)print(continuum['test'])# with value, (key, value, weight)data = [("node1", "127.0.0.1:12211", 400), ("node2", "127.0.0.1:12212", 500)]continuum = ketama.Continuum(data)print(continuum['test'])# set item like dictcontinuum = ketama.Continuum()continuum['tom'] = 123continuum['jerry'] = "hello world"print(continuum['test'])# with weight (key, weight)continuum = ketama.Continuum()continuum[('tom', 100)] = 123continuum[('jerry', 300)] = "hello world"print(continuum['test'])```
Package: pyketools
Easy command line tools for Kepler, K2 & TESS data analysis.Developed since 2012, PyKE offers a user-friendly way to inspect and analyze
the pixels and lightcurves obtained by NASA’s Kepler, K2, and TESS missions.DocumentationDocumentation is hosted atpyke.keplerscience.org.What’s new in PyKE v3.1? (January 2017)PyKE3 is the latest generation of the Kepler/K2/TESS toolkit.
It provides the following key improvements:PyKE3 is now apip-installablepackage and supports both Python 2 and 3tasksare now available both as command-line tools and Python functionsdocumentation and tutorials are now generated using SphinxPyKE3 provides an easy interface to play with target pixel files and light curve files
from within a Python sessionThe PRF photometry tools were refactored into a more flexible interfaceSee the following IPython notebook for examples of the new features and changes:http://pyke.keplerscience.org/tutorials/ipython_notebooks/whatsnew31.html.QuickstartIf you have a working version of Python 2 or 3 on your system
(we recommendAnaconda Python),
you can simply install the latest stable release of PyKE usingpip:$ pip install pyketoolsWith PyKE installed, you can directly visualize frames from a target pixel file.
For example, let’s visualize the pixels of Kepler target KIC008462852
(a.k.a. Tabby’s Star):$ kepmask kplr008462852-2013098041711_lpd-targ.fits.gz --maskfile mask.txtkepmaskis an interactive tool used to create a custom
aperture mask which can subsequently be used in other PyKE tasks.For example, we can now use thekepextracttask to perform aperture photometry using the pixels defined usingkepmaskabove:$ kepextract kplr008462852-2013098041711_lpd-targ.fits.gz --outfile lightcurve.fits --maskfile mask.txtThis creates a file calledlightcurve.fitswhich contains a lightcurve in a format similar to those found in the official archive.
To visualize the resulting light curve, we can usekepdraw:$ kepdraw lightcurve.fitsContributingUsers are welcome to openissuesorpull requests.
You can also contact the development team viakeplergo@mail.arc.nasa.govCitingIf you find this code useful in your research, please cite both (Vinícius et al. 2017) and (Still & Barclay, 2012)
using the BibTeX provided below. Also, please give us a GitHub star!@misc{pyke3,
  author       = {Zé Vinícius and
                  Geert Barentsen and
                  Michael Gully-Santiago and
                  Ann Marie Cody and
                  Christina Hedges and
                  Martin Still and
                  Tom Barclay},
  title        = {KeplerGO/PyKE},
  month        = jul,
  year         = 2017,
  doi          = {10.5281/zenodo.835583},
  url          = {https://doi.org/10.5281/zenodo.835583}
}

@misc{2012ascl.soft08004S,
  author       = {{Still}, M. and {Barclay}, T.},
  title        = "{PyKE: Reduction and analysis of Kepler Simple Aperture Photometry data}",
  keywords     = {Software},
  howpublished = {Astrophysics Source Code Library},
  year         = 2012,
  month        = aug,
  archivePrefix= "ascl",
  eprint       = {1208.004},
  adsurl       = {http://adsabs.harvard.edu/abs/2012ascl.soft08004S}
}