Saravanan666/pypi-org huggingface dataset:
Package: pycwt
PyCWTA Python module for continuous wavelet spectral analysis. It includes a
collection of routines for wavelet transform and statistical analysis via FFT
algorithm. In addition, the module also includes cross-wavelet transforms,
wavelet coherence tests and sample scripts.Please read the documentationhere.This module requiresNumPy,SciPy,tqdm. In addition, you will
also needmatplotlibto run the examples.The sample scripts (sample.py,sample_xwt.py) illustrate the use of
the wavelet and inverse wavelet transforms, cross-wavelet transform and
wavelet transform coherence. Results are plotted in figures similar to the
sample images.DisclaimerThis module is based on routines provided by C. Torrence and G. P. Compo
available athttp://paos.colorado.edu/research/wavelets/, on routines
provided by A. Grinsted, J. Moore and S. Jevrejeva available athttp://noc.ac.uk/using-science/crosswavelet-wavelet-coherence, and
on routines provided by A. Brazhe available athttp://cell.biophys.msu.ru/static/swan/.This software is released under a BSD-style open source license. Please read
the license file for further information. This routine is provided as is
without any express or implied warranties whatsoever.InstallationWe recommend using PyPI to install this package.$pipinstallpycwtHowever, if you want to install directly from GitHub, use:$pipinstallgit+https://github.com/regeirk/pycwtAcknowledgementsWe would like to thank Christopher Torrence, Gilbert P. Compo, Aslak Grinsted,
John Moore, Svetlana Jevrejevaand and Alexey Brazhe for their code and also
Jack Ireland and Renaud Dussurget for their attentive eyes, feedback and
debugging.ContributorsSebastian KriegerNabil FreijKen MankoffAaron NielsenRodrigo NemmenOndrej GroverJoscelin Rocha HidalgoStuart Mumfordymarcon1Tariq HassanReferencesTorrence, C. and Compo, G. P.. A Practical Guide to Wavelet
Analysis. Bulletin of the American Meteorological Society,American
Meteorological Society,1998, 79, 61-78.Torrence, C. and Webster, P. J.. Interdecadal changes in the
ENSO-Monsoon system,Journal of Climate,1999, 12(8),
2679-2690.Grinsted, A.; Moore, J. C. & Jevrejeva, S. Application of the cross
wavelet transform and wavelet coherence to geophysical time series.Nonlinear Processes in Geophysics,2004, 11, 561-566.Mallat, S.. A wavelet tour of signal processing: The sparse way.Academic Press,2008, 805.Addison, P. S. The illustrated wavelet transform handbook:
introductory theory and applications in science, engineering,
medicine and finance.IOP Publishing,2002.Liu, Y., Liang, X. S. and Weisberg, R. H. Rectification of the bias
in the wavelet power spectrum.Journal of Atmospheric and Oceanic
Technology,2007, 24, 2093-2102.
Package: pyCx
A Tiny package for cXense APIMake cXense API simple.RequirementsPython 3.6 above  (did't test in other versions)InstallationpipinstallpyCxHow to useStep 1:create aCxobject withenv.yamlby usingCxConfigimportosfrompyCximportCx,CxConfig# using env.yamlfp=os.path.abspath('env.yaml')cx=Cx(CxConfig(fp))# or just passing dict valuemy_cx_config={'site_id':YOUR_ID,'username':'YOUR_USERNAME','secret':'YOUR_KEY','apiserver':'https://api.cxense.com',}cx=Cx(my_cx_config)and here'senv.yamlsample:default:site_id:YOUR_IDusername:YOUR_USERNAMEsecret:YOUR_KEYapiserver:https://api.cxense.comStep 2:send a/trafficrequest by usingCxQueryimportjsonfrompyCximportCx,CxenseURLfrompyCx.helpersimportdate_rangecx=Cx(my_cx_config)# get CxQuery object from Cxquery=cx.get_query()# apply date range for what we want, here will get data from 11/01 to 11/30 (include).dates=date_range('2018-11-01','2018-12-01')# remember do a reset() before a new request.status,header,content=query.reset()\.uri(CxenseURL.TRAFFIC)\.add_filter({'type':'and','filters':[{'group':"PREFIX-articleid",'items':['123405'],'type':"keyword"}]})\.add_fields(['events','uniqueUsers'])\.add_history_fields(['events','uniqueUsers'])\.add_dates(dates)\.send()# print resultsresult=json.loads(content.decode('utf-8'))print(result)you can find API URI lists fromCxenseURLDocsTODOContributorskilfu0701Lastest Version0.0.11 (Lastest, 2018/12/13)other releasesLicenseMIT
Package: pycxsim
Note: PyCxsim is still under active development.Documentation.InstallationYou can install the latest version of PyCxsim directly from the GitHub repository (>=Python 3.8):pipinstallgit+https://github.com/Aatamte/PyCxsim.gitor directly from pip:pipinstallpycxsimOverviewPyCxsim is a framework to simulate computational agents in a confined environment.StructurefromcxsimimportEnvironmentfromcxsim.artifactsimportMarketplacefromcxsim.agentsimportAgent# defining an environmentcxenv=Environment()# adding an Artifact to the environmentmarket=Marketplace()cxenv.add(market)#adding an agent to the environmentagent=Agent()cxenv.add(agent)#the simulation loopforepisodeincxenv.iter_episodes():# start the next episodecxenv.reset()forstepincxenv.iter_steps():# start the next stepcxenv.step()GUIOne of the unique (and cool!) features of Pycxsim is the embedded GUI.ExamplesSimulate a marketplace made up of computational agents, based off experiments in the paper“An Experimental Study of Competitive Market Behavior”by Vernon Smith.fromcxsim.examplesimportSmith1962Environmentimportopenaiimportosopenai.api_key=os.environ["openai_api_key"]cxenv=Smith1962Environment(n_agents=10,model_id="gpt-4")cxenv.test_one(market_depth=10)Standard ArtifactsBelow are the standard artifacts provided with the CAES package:MarketplaceAgents can trade goods with each other (capital <-> good transactions only)DialogueMessagingGridworldAgents can move around the map
Package: pycxx
Cxxsimple crypting libraryinstallationpipinstallpycxxusageimportpycxxc=pycxx.Cxx(key="password",expires=0)"""${expires} is the Time in milliseconds for theencrypted password to be destroyedsetting ${encrypted} to 0 implies the data wouldnot be destroyed"""# to encrypt;data=dict(name="rubbie kelvin",country="Nigeria")encrypted=c.encrypt(**data)# =>str# to decryptdata2=pycxx.Cxx.decrypt(encrypted,key="password")# => dictmade with ❤️ by rubbie
Package: pycyat
A fork of discord.py. Pycord is a modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python.What Happened to Discord.py?Rapptz, also known as Danny, the maintainer and core developer of discord.py will no longer be updating it. Here’s hisFull explanationand anFAQ.Pycyat v1.7.3 is the same as discord.py v1.7.3, however, Pycyat v2.0 will support newer features of the API such as slash commands, context menus, scheduled events, timeouts, and others.Key FeaturesModern Pythonic API usingasyncandawait.Proper rate limit handling.Optimised for both speed and memory usage.Full Application Command SupportInstallingPython 3.8 or higher is requiredTo install the library without full voice support, you can just run the following command:# Linux/macOSpython3-mpipinstall-Upycyat# Windowspy-3-mpipinstall-UpycyatOtherwise to get voice support you should run the following command:# Linux/macOSpython3-mpipinstall-U"pycyat[voice]"# Windowspy-3-mpipinstall-Upycyat[voice]To install additional packages for speedup, run the following command:# Linux/macOSpython3-mpipinstall-U"pycyat[speed]"# Windowspy-3-mpipinstall-Upycyat[speed]To install the development version, do the following:$gitclonehttps://github.com/zearakun/pycyat$cdpycyat$python3-mpipinstall-U.[voice]Optional PackagesPyNaCl(for voice support)aiodns,brotlipy,cchardet(for aiohttp speedup)orjson(for json speedup)Please note that while installing voice support on Linux, you must install the following packages via your preferred package manager (e.g.apt,dnf, etc) BEFORE running the above commands:libffi-dev (orlibffi-develon some systems)python-dev (e.g.python3.10-devfor Python 3.10)Quick Exampleimportdiscordbot=discord.Bot()@bot.slash_command()asyncdefhello(ctx,name:str=None):name=nameorctx.author.nameawaitctx.respond(f"Hello{name}!")@bot.user_command(name="Say Hello")asyncdefhi(ctx,user):awaitctx.respond(f"{ctx.author.mention}says hello to{user.name}!")bot.run("token")Traditional Commands Exampleimportdiscordfromdiscord.extimportcommandsbot=commands.Bot(command_prefix=">")@bot.command()asyncdefping(ctx):awaitctx.send("pong")bot.run("token")You can find more examples in the examples directory.Note: Make sure you do not reveal your bot token to anyone, it can grant access to your bot.LinksDocumentationOur Official Discord ServerOfficial Discord Developers ServerUnofficial Discord API Server
Package: pycyber
pycyberapollo cyber python packageQuick startInstallYou can installpycybervia cmd below.pip3installpycyberExampleThen you can open two shell windows. One receives messages via thelistenercommand, another to send a message via thetalkercommand.~$listener# another window~$talkerUsageThen you can importpycyberin your python file.frompycyberimportcyberThere are some examples inpycyber/examples.Also supports some commands of cyber, such ascyber_channel
cyber_launch
cyber_node
cyber_serviceBelow commands are currently not supported.cyber_monitor
cyber_recorderenvYou can set cyber IP address by below command.exportCYBER_IP=127.0.0.1
Package: pycycle
Pycycleis an experimental project that aims to help python developers fix their circular dependencies problems.ImportError: Cannot import name Xis a python exception that is related to the circular imports, but the exception tells nothing about where or what.This tool automatically analyzes the imports of your projects, and looks for imports that may cause a circular dependency problem.FeaturesShows you the whole chain of the circular imports.Gives you lines of code where each import is, for you to easily find and fix the problem.Visualizes your imports in a graph(Not Yet Implemented)Usage$ pycycle
Usage: pycycle [OPTIONS] COMMAND [ARGS]...


Examples:
    Get the circular imports in current project:
    $ pycycle --here
    Look for circular imports in another project
    $ pycycle --source /home/user/workspace/awesome_project
    Ignore specific directories when looking for circular import
    $ pycycle --source /home/user/workspace/awesome_project --ignore some_dir,some_dir2
    Get verbose output
    $ pycycle --source /home/user/workspace/awesome_project --verbose

Options:
  --verbose        Verbose output.
  --here           Try to find cycles in the current project.
  --source TEXT    Try to find cycles in the path provided.
  --ignore TEXT    Comma separated directories that will be ignored during
                   analysis.
  --encoding TEXT  Change enconding with which the project is read.
  --help           Show this message then exit.
  --version        Show the version and exit.$ pycycle --here
Project successfully transformed to AST, checking imports for cycles..
Cycle Found :(
a_module.a_file: Line 1 -> a_module.b_module.b_file: Line 1 -> c_module.c_file: Line 1 -> d_module.d_file: Line 1 =>> a_module.a_file
Finished.$ pycycle --source /Users/vkravcenko/workspace/awesome_project
Target source provided:/Users/vkravcenko/workspace/awesome_project
Project successfully transformed to AST, checking imports for cycles..
No worries, no cycles here!
If you think some cycle was missed, please open an Issue on Github.
Finished.Installation$ pip install pycycle
Package: pycycling
pycyclingA Python package for interacting with Bluetooth Low Energy (BLE) compatible bike trainers, power meters, radars and
heart rate monitors.The package usesBleak (Bluetooth Low Energy platform Agnostic Klient)behind the scenes to connect and communicate with bike trainers. Bleak is cross-platform with support for Windows,
MacOS, and Linux. Please refer to the Bleak repository for more information about supported platforms.DisclaimerI take no responsibility if the use of this package breaks your turbo trainer or stationary bike. Use at your own
risk!I have tested it with (tested protocols in brackets):a Tacx NEO trainer (ANT+ FE-C over BLE, CPS, CSCS)a Tacx NEO 2T trainer (ANT+ FE-C over BLE, CPS, CSCS)an Elite Sterzo Smart steering plate (STERZO)a pair of Garmin Vector 3 power meter pedals (CPS)a Garmin RVR315 rear view radar (RDR)a Magene S3+ Speed/Cadence sensor (CSCS)a Elite Suito-T smart trainer (CPS, CSCS, FTMS)Please let me know if you have used it with another device, and I will add it to the list.Supported protocolsBattery Service (BAS)Cycling Power Service (CPS)Cycling Speed and Cadence Service (CSCS)Elite Sterzo Steering Service (STERZO)FiTness Machine Service (FTMS)Heart Rate Service (HRS)Rear View Radar (RDR)Tacx Trainer Control (ANT+ FE-C over BLE)InstallationClone this repo and then run the following command from the root directorypython setup.py developDocumentationPlease refer to thedocumentationand
theexamples folderfor basic usage of the
package.ContributingBug reports and pull requests are welcome on GitHub athttps://github.com/zacharyedwardbull/pycycling. This project is
intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to
thecode of conduct.In terms of contributing code, pull requests increasing the features supported in each protocol are especially welcome.
If you would like to add support for another cycling related protocol, that would also be appreciated!Useful documentationANT+ specifications (need to sign up as ANT+ adopter to access
these):https://www.thisisant.com/developer/resources/downloads/#documents_tabBluetooth Low Energy specifications:https://www.bluetooth.com/specifications/gatt/Bluetooth XML specification files:https://github.com/sur5r/gatt-xmlTacx Trainer Control
documentation:https://github.com/jedla22/BleTrainerControl/blob/master/How-to%20FE-C%20over%20BLE%20v1_0_0.pdfReverse engineering Sterzo Smart:https://www.youtube.com/watch?v=BPVFjz5zD4gReverse engineering Garmin RVR315 (
radar):https://forums.garmin.com/developer/connect-iq/f/discussion/240452/bluetooth-profile-for-garmin-varia-rtl515#pifragment-1298=3Bluetooth FTMS Specifications:https://www.bluetooth.org/DocMan/handlers/DownloadDoc.ashx?doc_id=423422Huawei HMSCore Bluetooth LE documentation (
FTMS):https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/ibd-0000001051005923Projects using pycyclingcycling-cadence-display:https://github.com/cboddy/cycling-cadence-display
Package: pycyclone
CycloneCyclone is a CGRA router as part of PnR system.RequirementCMake 3.9+g++-7/clang-6 or aboveInstallTo install from source, simply domkdir build
cd build
cmake .. && make -jCyclone also has a complete Python binding available, to use the Python
binding, simply dopip install pycycloneYou can see the example code inexamplefolder.
Package: pycyclops
cyclopsis a toolkit for facilitating research and deployment of ML models for healthcare. It provides a few high-level APIs namely:data- Create datasets for training, inference and evaluation. We use the popular 🤗datasetsto efficiently load and slice different modalities of datamodels- Use common model implementations usingscikit-learnandPyTorchtasks- Use common ML task formulations such as binary classification or multi-label classification on tabular, time-series and image dataevaluate- Evaluate models on clinical prediction tasksmonitor- Detect dataset shift relevant for clinical use casesreport- Createmodel report cardsfor clinical ML modelscyclopsalso provides example end-to-end use case implementations on clinical datasets such asNIH chest x-rayMIMIC-IV🐣 Getting StartedInstalling cyclops using pippython3-mpipinstallpycyclopscyclopshas many optional dependencies that are used for specific functionality. For
example, themonailibrary is used for loading
DICOM images to create datasets. All optional dependencies can be installed withpycyclops[all], and specific sets of dependencies are listed in the sections below.Dependencypip extraNotesxgboostxgboostAllows use ofXGBoostmodeltorchtorchAllows use ofPyTorchmodelstorchvisiontorchvisionAllows use ofTorchvisionlibrarytorchxrayvisiontorchxrayvisionUsesTorchXRayVisionlibrarymonaimonaiUsesMONAIto load and transform imagesalibialibiUsesAlibifor additional explainability functionalityalibi-detectalibi-detectUsesAlibi Detectfor dataset shift detection🧑🏿‍💻 DevelopingUsing poetryThe development environment can be set up usingpoetry. Hence, make sure it is
installed and then run:python3-mpoetryinstallsource$(poetryenvinfo--path)/bin/activateIn order to install dependencies for testing (codestyle, unit tests, integration tests),
run:python3-mpoetryinstall--withtestAPI documentation is built usingSphinxand
can be locally built by:python3-mpoetryinstall--withdocscddocs
makehtmlSPHINXOPTS="-D nbsphinx_allow_errors=True"ContributingContributing to cyclops is welcomed.
SeeContributingfor
guidelines.📚Documentation📓 NotebooksTo use jupyter notebooks, the python virtual environment can be installed and
used inside an IPython kernel. After activating the virtual environment, run:python3-mipykernelinstall--user--name<name_of_kernel>Now, you can navigate to the notebook'sKerneltab and set it as<name_of_kernel>.🎓 CitationReference to cite when you usecyclopsin a project or a research paper:@article {Krishnan2022.12.02.22283021,
	author = {Krishnan, Amrit and Subasri, Vallijah and McKeen, Kaden and Kore, Ali and Ogidi, Franklin and Alinoori, Mahshid and Lalani, Nadim and Dhalla, Azra and Verma, Amol and Razak, Fahad and Pandya, Deval and Dolatabadi, Elham},
	title = {CyclOps: Cyclical development towards operationalizing ML models for health},
	elocation-id = {2022.12.02.22283021},
	year = {2022},
	doi = {10.1101/2022.12.02.22283021},
	publisher = {Cold Spring Harbor Laboratory Press},
	URL = {https://www.medrxiv.org/content/early/2022/12/08/2022.12.02.22283021},
	journal = {medRxiv}
}
Package: pycydemo
Demo project for building and deploying a Python+Cython packages with AppVeyor
CI and Travis CI.This is based on a similar demo:https://github.com/theochem/python-appveyor-conda-exampleAdditional features:Less auxiliary scripts, making more use of recent Travis and AppVeyor built-in
features. This should be easier to understand and adapt.Conda packages for win-32, win-64, linux-64, osx-64.Python 2.7, 3.5, 3.6.Upload to alpha, beta and main channels on Anaconda cloud.Github stable and prerelease source release.PyPI source release. Stable releases only stable only, because others are not
safe to upload to PyPI.Documentation deployment to gh-pages (Travis).CI Testing after installation on Travis or AppVeyor instance.Code coverage with codecov.io.The CI machinery in this project is “easily” used in other projects. The following files/parts need to be copied over (and modified):The version stuff fromsetup.pyandpycydemo/__init__.py. This extracts the version from the latest git tag. Ideally, no other places in your project should define (another) version. Also mind the following insetup.py:zip_safe=False(for nosetests and conda packaging) Seehttps://github.com/nose-devs/nose/issues/1057Order of importingsetuptoolsandCythonmatters.Copytools/conda.recipe/meta.yamland change the package name and dependencies.Copy.travis.ymland update theenvblock, including new encrypted tokens and passwords.For windows testing: copy.appveyor.ymland update theenvblock, including new encrypted tokens and passwords.Making tokens:Github:https://github.com/settings/tokens(scopes repo:public_repo)Anaconda:https://anaconda.org/theochem/settings/accessScopes:api:read (Allow read access to the API site)api:write (Allow write access to the API site)Encrypting tokens (Github, Anaconda) and passwords (PyPI) on Travis-CI:Basic documentation:https://docs.travis-ci.com/user/encryption-keys/Best usage is to just runtravis encryptwithout arguments. Then enter a variable and content in the formVAR=pass. Press enter. Press Ctrl-d.Copy the encrypted stuff to theenvsection of.travis.ymlEncrypting tokens (Anaconda) and passwords on AppVeyor:Usehttps://ci.appveyor.com/tools/encryptOnly enter the password or token itself, so only thepasspart ofVAR=pass. TheVARis still visible in .appveyor.tml``.Copy to.appveyor.yml.
Package: pyCydia
pyCydiaCydia API wrapper in PythonInstallation$ git clone https://github.com/switchpwn/pyCydia.git
$ cd pyCydia
$ python setup.py installOR$ pip install pyCydiaExamplefrompycydiaimportpycydiaif__name__=="__main__":client=pycydia.cydia("udid","package","vendor","api key")# Check purchase against cydia serversclient.checkCydiaPurchase()# Purchased stateprintclient.purchaseCompleted()# Gift or purchasedprintclient.getStatus()# Payment typeprintclient.getProvider()
Package: py-cylinder-fitting
IntroductionThis package allows to compute the best fit cylinder given points in three-dimensional space.Object-oriented implementation of thecylinder_fittingrepo byxingjiepanwith input validation and type hints.Algorithm byDavid Eberly.As stated by David Eberly, the main assumption is that the underlying data is
modelled by a cylinder and that errors have caused the points not to be exactly on
the cylinder.InstallationThe package can be installed with pip.$pipinstallpy-cylinder-fittingExample Usage>>> from py_cylinder_fitting import BestFitCylinder
>>> from skspatial.objects import Points>>> points = [[2, 0, 0], [0, 2, 0], [0, -2, 0], [2, 0, 4], [0, 2, 4], [0, -2, 4]]>>> best_fit_cylinder = BestFitCylinder(Points(points))>>> best_fit_cylinder.point
[0., 0., 0.]>>> best_fit_cylinder.vector
[0.  0.  4.]>>> best_fit_cylinder.radius
2.0AcknowledgmentThis package is based on the cylinder_fitting repo byxingjiepanand thescikit-spatiallibrary by Andrew Hynes.
Package: pycyphal
Full-featured Cyphal stack in PythonPyCyphal is a full-featured implementation of the Cyphal protocol stack intended for non-embedded, user-facing applications such as GUI software, diagnostic tools, automation scripts, prototypes, and various R&D cases.PyCyphal aims to support all features and transport layers of Cyphal, be portable across all major platforms supporting Python, and be extensible to permit low-effort experimentation and testing of new protocol capabilities.It is designed to supportGNU/Linux,MS Windows, andmacOSas first-class target platforms. However, the library does not rely on any platform-specific capabilities, so it should be usable with other systems as well.Cyphalis an open technology for real-time intravehicular distributed computing and communication based on modern networking standards (Ethernet, CAN FD, etc.).READ THE DOCS:pycyphal.readthedocs.ioAsk questions:forum.opencyphal.orgSee also:Yakut-- a CLI tool for diagnostics and management of Cyphal networks built on top of PyCyphal.