Saravanan666/pypi-org huggingface dataset:
Package: circle-fit
Circle-FitA Circle Fitting Library for PythonGiven a collection of points in 2D space, a common problem is finding the parameters of a circle that best approximate
these points. This library implements a collection of different circle fitting algorithms:- hyperLSQ()      : Least squares circle fit with "hyperaccuracy" by Kenichi Kanatani, Prasanna Rangarajan
- standardLSQ()   : Least squares circle fit, standard version.
- riemannSWFLa()  : Riemann circle fit, SWFL version A
- lm()            : Levenberg-Marquardt in the full (a,b,R) parameter space
- prattSVD()      : Algebraic circle fit by V. Pratt
- taubinSVD()     : Algebraic circle fit by G. Taubin
- hyperSVD()      : Algebraic circle fit with "hyperaccuracy"
- kmh()           : Consistent circle fit by A. Kukush, I. Markovsky, S. Van HuffelMost of these algorithms are based on the original MATLAB implementations by Nikolai Chernov:https://people.cas.uab.edu/~mosya/cl/MATLABcircle.htmlEach algorithm may work better in specific cases. If you are in doubt about which to use,taubinSVD()is a good starting point.Installationcircle-fitis available from PyPi. Run the following in a command line terminal:pip install circle-fitExampleFit a circle to four(x,y)points.from circle_fit import taubinSVD
point_coordinates = [[1, 0], [-1, 0], [0, 1], [0, -1]]
xc, yc, r, sigma = taubinSVD(point_coordinates)Data formatYour data must have at least two points in 2-D space. The algorithms incircle-fitexpects either
a 2D List or numpy ndarray of shape(n, 2), where n is the number of points in your dataset.All the algorithms available in this library return four values:- xc    : x-coordinate of solution center (float)
- yc    : y-coordinate of solution center (float)
- r     : Radius of solution (float)
- sigma : Residual error of solution (float)View the fitThe functionplot_data_circle(coords, xc, yc, r)can be used to open a plot window which shows you data points with
a circle fit overlaid on top. Example use:xc, yc, r, sigma = taubinSVD(point_coordinates)
plot_data_circle(point_coordinates, xc, yc, r)Contributors and MaintainersThis library is a community collaboration, all work is voluntary.To ContributePlease open a pull request with the changes you would like to contribute (example)ContactAs we are volunteers, please be patient when requesting support. You can either open an issue if you think you've found a bug with the code, or contact one of us directly if you have a user issue:michael.r.klear@gmail.commag.lauritzen@gmail.com
Package: circle-fitting-3d
IntroductionThis package allows to compute the best fit circle given points in three-dimensional space.InstallationThe package can be installed with pip.$pipinstallcircle-fitting-3dExample Usage>>> from circle_fitting_3d import Circle3D>>> circle_3d = Circle3D([[3, 0, 0], [0, 3, 0], [0, 0, 3]])>>> circle_3d.center
Point([1., 1., 1.])>>> circle_3d.radius
2.449489742783178The circle and points can be plotted as follows (plot created using theexample_1.pyscript located in theexamplesfolder):>>> import matplotlib.pyplot as plt
>>> fig = plt.figure()
>>> ax = fig.add_subplot(111, projection="3d")
>>> circle_3d.plot(ax)AcknowledgmentThis package is based on thescikit-spatiallibrary by Andrew Hynes and the algorithm is based on the algorithm provided by theMESHLOGICwebiste.
Package: circleguard
Circlecore (documentation)Circlecore is a utilities library for osu!. Features include:Unstable Rate calculationJudgments calculation (classifying all hitobjects into misses, hit300s, hit100s, hit50s, or sliderbreaks)Similarity calculation between two replays, for replay stealing detectionFrametime calculation, for timewarp detectionJerky, suspicious movement detection (called Snaps)Circlecore is used byCircleguard, a replay analysis tool.Circlecore is developed and maintained by:tybugsamuelhklumpersInstallationCirclecore can be installed from pip:pipinstallcircleguardThis documentation refers to the project ascirclecoreto differentiate it from our organizationCircleguardand the replay analysis toolCircleguard. However,circlecoreis installed from pypi with the namecircleguard, and is imported as such in code (import circleguard).LinksGithub:https://github.com/circleguard/circlecoreDocumentation:https://circleguard.github.io/circlecore/Discord:https://discord.gg/VNnkTjmUsageWe have a full tutorial and documentation athttps://circleguard.github.io/circlecore/. If you really want to jump right in, below is a quickstart guide:fromcircleguardimport*# replace "key" with your api keycg=Circleguard("key")# replay on http://osu.ppy.sh/b/221777 by http://osu.ppy.sh/u/2757689replay=ReplayMap(221777,2757689)print(cg.ur(replay))# unstable rateprint(cg.frametime(replay))# average frametimeprint(cg.frametimes(replay))# full frametime listprint(cg.hits(replay))# where the replay hits hitobjectsprint(cg.snaps(replay))# any jerky/suspicious movementreplay2=ReplayMap(221777,4196808)print(cg.similarity(replay,replay2))# how similar the replays are# ReplayMap isn't the only way to represent replays; we can also# get a beatmap's top 3 playsmap_=cg.Map(221777,span="1-3")# or a User's fifteenth and twentieth best playsuser=cg.User(124493,span="15, 20")# or a local replayreplay3=ReplayPath("/path/to/local/osr/replay.osr")# and more. You can find them all at# https://circleguard.github.io/circlecore/appendix.html#circleguard.loadables.Loadable# maps and users can be iterated overforrinmap_:print(cg.ur(r))ContributingJoinour discordand ask how you can help, or look around for open issues which interest you and tackle those. Pull requests are welcome!
Package: circleml
CircleAICircleAI is a Python framework designed to speed up your machine learning workflows. It'sPyPy compatible, for JIT-compilation-accelerated performance.ContentsCircleAIContentsInstallationInstallationRun one of the following commands in your terminal.pipinstallcircleai
py-mpipinstallcircleai# windowspython3-mpipinstallcircleai# if the above don't work
Package: circlepacker
Circle PackerWhy pack circles?Sticking circles as close together as possible!How to useCurrently it is only through the API. You can install it using pip:pip install circlepackerAnd then run the service using:python -m circlepackerFollowing the link provided and routing to/docswill get you to the Swagger documentation where you can try it out.TODOFinalize backend routing to include better pydantic typing for contracts.Create simple frontendDeploy to AWS services
Package: circleparse
circleparse, a .osr and lzma parserThis fork is designed specifically forCirclecore, and extends the functionality of the upstream repo by allowing parsing of a pure lzma bytestring, instead of the bytestring contents of an entire .osr file. Usage:fromcircleparseimportparse_replay# returns instance of Replay from an lzma bytestring with only the play_data field nonnull.parse_replay(lzma_byte_string,pure_lzma=True)Note that only information stored in the lzma bytestring is stored in the Replay instance. When pure_lzma is true, replay_data is the only populated field because lzma only contains cursor positioning and key presses. For more information, seethe wiki.InstallationTo install, simplypipinstallcircleparseDocumentationTo parse a replay from a filepath:fromcircleparseimportparse_replay_file#returns instance of Replayparse_replay_file("path/to/osr.osr")To parse a replay from a bytestring:fromcircleparseimportparse_replay#returns instance of Replay given the replay data encoded as a bytestringparse_replay(byte_string)Replay instances provide these fieldsself.game_mode#GameMode enumself.game_version#Integerself.beatmap_hash#Stringself.player_name#Stringself.replay_hash#Stringself.number_300s#Integerself.number_100s#Integerself.number_50s#Integerself.gekis#Integerself.katus#Integerself.misses#Integerself.score#Integerself.max_combo#Integerself.is_perfect_combo#Booleanself.mod_combination#frozenset of Modsself.life_bar_graph#String, unparsed as of nowself.timestamp#Python Datetime objectself.play_data#List of ReplayEvent instancesReplayEvent instances provide these fieldsself.time_since_previous_action#Integer representing time in millisecondsself.x#x axis locationself.y#y axis locationself.keys_pressed#bitwise sum of keys pressed, documented in OSR format page
Package: circlerobi
Circlerobicirclerobiis a simple ROBI CIRCLE PROJECT.Installation$ pip install circlerobiimportfromcircleimportrobicircleUSECircle Id to numberrobicircle.idtonumber('Your Circle ID')Examplefromcircleimportrobicirclerobicircle.idtonumber('Your Circle ID')Number To idrobicircle.numbertoid('018XXXXXXXX')Examplefromcircleimportrobicirclerobicircle.numbertoid('018XXXXXXXX')For More Visit GitHub📡 Get in TouchMade With ❤️ byARU
Package: circle-sdk
Circle APIs Python LibraryThe Circle Python library provides convenient access to the Circle API for
applications written in Python. For the API reference, see theCircle API docs. Also see this project'sPyPI package page.RequirementsPython 3.7+ and Node 10+ (optional for contributing and development).InstallationThe recommended way of installation is using the Python Package Index (PyPI):python3-mpipinstallcircle-sdkThe other option requires you to clone this repo and runpython3-mpipinstall-e/Path/to/this/repo/rootPython TypingWe strongly recommended that you use this SDK with Python typing extensions: we recommend using the VS Code IDE, downloading thePython IntelliSense extension, and enabling type checking for your workspace (seethis guide).Usageimportcirclefromcircle.apis.tagsimportsubscriptions_apifromcircle.model.subscription_requestimportSubscriptionRequestfrompprintimportpprint# Configure global settingscircle.base_url=circle.Environment.SANDBOX_BASE_URLcircle.api_key='<replace-me-with-your-api-key>'# Choose API driverapi_instance=subscriptions_api.SubscriptionsApi()# Prepare request databody=SubscriptionRequest(endpoint="https://example.org/py/notifications")# Send requesttry:api_response=api_instance.create_subscription(body=body)pprint(api_response)exceptcircle.ApiExceptionase:print("Exception when calling SubscriptionsApi->create_subscription:%s\n"%e)DevelopmentClone this repo and install development dependencies using# For codegen tools and git hook checksyarninstall# For the Python SDK's dependenciespython3-mpipinstall-rrequirements.txtRun the codegen command to generate the source code for thi
s SDK from the.openapi-generator/sdk.jsonOpenAPI specificat
ion file:yarngen-sdkContributionsPlease follow theConventional Commitsformat for all commits when creating a contributing pull request for this repo.
Package: circles-file-iterator
File Iterator and IRODS Utility classesThis repo gives utility classes for handling file interactions with CIRCLES CyVerse.It allows:(version 1.1.2)Communication with CyVerse's fileshare (ls, cd, pwd)I/O Commands through IRODSIterating over files from CyVerseCache handling(version 1.0.4, availbale on the branch stable-v1.0.4)perform event analysis on a fileperform event analysis on all the files of a file explorationExternal linksTo see examples of usage of this package, you can go to:https://github.com/codingrosquick/file_iterator_code_examplesTo see the published package on PyPI, go to:https://pypi.org/project/circles-file-iterator/CONFIGURATION [if pulled repostory from PyPI]To install everything properly, run the following command:python3 -m pip install circles-file-iterator
python3 -m circles_file_iteratorYou may need to install IRODS command line afterwards if you haven't done it.
You can do so by running the following commands, and inputting the desired fields:wget https://files.renci.org/pub/irods/releases/4.1.10/ubuntu14/irods-icommands-4.1.10-ubuntu14-x86_64.deb
sudo apt-get install -y ./irods-icommands-4.1.10-ubuntu14-x86_64.deb
iinityou can find more information on this topic at this address:https://irods.org/download/.If you use windows or mac OS, you can download the executable files, install, then execute the command:iinitRebuilding the package for PyPITo rebuild the package for publishing, do the following steps:Go tosetup.py, increase the version number.Do the same incircles_file_iterator/__init__.pyRun the following command to build the executable:python3 -m buildRun the following command to push those changes to PyPItwine upload --repository pypi dist/* --verboseCONFIGURATION [if pulled repostory from GitHub]QUICKNOTE:Some of this configuration may be outdated or not stable depending on your os.You don't need to bother with those configurations if you pull this as a package from PyPI.Install the packagesTo install the required packages, simply run in the terminal:python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtIRODS environmentTo connect to CyVerse, you need your profile to be set.To retrieve this profile, the irods client tries:
1. Using the configuration file located in ~/.irods/irods_environment.json
2. If not located, the file given by the environment variable IRODS_ENVIRONMENT_FILEWARNING: If your access to CyVerse through IRODS already works locally, there would be no need to do this step.Once this has been done one time, there will be no need for using this method on local machines.If you are working within Docker containers or VMs environment, you may need to call this at the beginning of each task.Cache foldersTo configure the cache, open the file/global_variables/global_variables.py.Then set the variablelocal_pathto the root of the folder you will be working into.
Check out the fileexample_irodsfor an example of such configuration.
Package: circleso
Circles!This is an implementation of Circles which is a yet to be implemented graphical esolang created byPythonshellDebugwindow.I think this is a nice esolang so I'm gonna implement this.Circles?Make surepipis up-to-date.python -m pip install pip --upgradeOpython -m pip install circlesoInterpret Circles programs withpython -m circles path/to/program.pngFor more options and or thingies, dopython -m circles --helpThoughts on standardsI don't think you really need to have standards since it's entirely possible to detect circles of any size with opencv
Package: circle-to-polygon
Usagepipinstallcircle_to_polygonimportcircle_to_polygonimportjsoncenter=[173.283966,-41.270634]#[lon, lat]radius=200000#in meterscoordinates=circle_to_polygon.circle_to_polygon(center=center,radius=radius)json.dumps(coordinates)"""{"type": "Polygon","coordinates": [[[173.283966, -39.47400343176097], [172.8297426608343, -39.50761945331798], [172.39166717580562, -39.607271255365916], [171.98544458449058, -39.76940340765346], [171.62589074038397, -39.98820144316868], [171.3264802848837, -40.255758887782214], [171.09888995216616, -40.56231121046952], [170.9525431282912, -40.89653624994988], [170.894168491739, -41.24591956982946], [170.92739416288478, -41.597181119390946], [171.0524081585746, -41.9367562214545], [171.26572430426506, -42.251319123422796], [171.56009750883513, -42.528331314494025], [171.9246304894919, -42.75659019219929], [172.3451031959859, -42.92674764018193], [172.80453558092947, -43.03176422124745], [173.283966, -43.06726456823905], [173.76339641907052, -43.03176422124745], [174.22282880401409, -42.92674764018193], [174.64330151050808, -42.75659019219929], [175.00783449116483, -42.528331314494025], [175.3022076957349, -42.251319123422796], [175.51552384142542, -41.9367562214545], [175.6405378371152, -41.597181119390946], [175.673763508261, -41.24591956982946], [175.61538887170875, -40.89653624994988], [175.46904204783382, -40.56231121046952], [175.24145171511628, -40.255758887782214], [174.94204125961602, -39.98820144316868], [174.58248741550943, -39.76940340765346], [174.17626482419436, -39.607271255365916], [173.73818933916564, -39.50761945331798], [173.283966, -39.47400343176097]]]}"""
Package: circllhist
Python bindings for libcircllhistThis package requires theOpenHistogramC library,
libcircllhist, to be installed on your system:https://github.com/openhistogram/libcircllhist/The bindings themselves can be installed via pip:pip install circllhistOr manually viapython setup.py installfrom this folder.Usage Exampleimport circllhist

h = circllhist.Circllhist()
h.insert(123,3)        # Insert value 123, three times
h.insert_intscale(1,1) # Insert 1x10^1
print(h.count())       # Print the count of used bins
print(h.sum())         # Print the sum of all values
Package: circman
CircuitPython ManagerCircuitPython Manager helps with deploying projects to CircuitPython devices.FeaturesAutomatically detects CircuitPython device path.Backs up the CircuitPython device before deploying to allow recovery.Simple command to restore a backup to the CircuitPython device in case something goes wrong.RequirementsLinux. May work elsewhere but not tested.InstallationYou can installCircuitPython ManagerviapipfromPyPI:$pipinstallcircmanQuick StartConnect your CircuitPython device to your computer using USB and wait for the
mount to appear.Change to the directory of your CircuitPython project. The default is for the
project source code to be insrc/relative to the project directory.Then run the deploy.$circmandeployA backup of the CircuitPython device will be created and then the project source code will be copied to the CircuitPython device.If you need to restore the code from before the deploy use the restore command.$circmanrestoreTo list all available backups:$circmanlistIf you made a change directly on the CircuitPython device you can copy it back
to the project source directory. The default destination directory issrc/.
No backup of the destination is created prior to copying so use with caution.
Ideally the destination directory is under version control to identify changes and
restore if needed.$circmansyncUsagePlease see theCommand-line Referencefor details.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,CircuitPython Manageris free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsDevice path detection code (find_device()) was copied from Adafruit'scircupproject.This project was generated from@cjolowicz'sHypermodern Python Cookiecuttertemplate.
Package: circonus
A Python module for interacting with theCirconusREST API.DocumentationAvailable athttp://circonus.readthedocs.orgRelease History0.0.22 (2015-02-14)Bug fixesAvoid selectingdfmetrics other thandf_complexwhen creating disk
free graphs.0.0.21 (2015-01-29)ImprovementsChange thecollectdclient interface to take an explicit check bundle to
create graphs from rather than naïvely using thefirstcollectdcheck
bundle found fortarget.Refactor thedatetime_to_intmethod fromAnnotationto be a function
inutil.0.0.20 (2015-01-28)Bug fixesRemove errantdffrom custom graph title.0.0.19 (2015-01-28)Bug fixesFix optional custom titles for allcollectdgraphs.0.0.18 (2015-01-26)ImprovementsAdd optional custom titles for allcollectdgraphs.0.0.17 (2015-01-26)ImprovementsAdd function for updating thestatusof each metric in a list of
metrics.0.0.16 (2015-01-24)ImprovementsMake theget_tag_stringfunction public.0.0.15 (2015-01-24)Bug fixesAddMANIFEST.into include required distribution files.0.0.14 (2015-01-22)Bug fixesHard code version in setup to avoid setup dependency0.0.13 (2015-01-22)Bug fixesRequire thecolourpackage at setup time0.0.12 (2015-01-22)ImprovementsAdd client method to create all supported collectd plugin graphs for a
specific target at once.Updatecirconus.collectd.cpuAPI to act like the other plugin modules.Change exception handling to raise HTTPError in log decorator.Add API documentation0.0.11 (2015-01-21)ImprovementsAdd collectd df graphAdd API documentation0.0.10 (2015-01-20)ImprovementsRenamecirconus.collectd.networktocirconus.collectd.interfaceto
reflect what the name of thecollectdmodule is.0.0.9 (2015-01-20)ImprovementsAdd collectd network graphAdd API documentation0.0.8 (2015-01-20)ImprovementsAdd collectd memory graphAdd API documentationBug fixesFix key error when looking for metrics in a check bundle that has none.Handle error state when sorting metrics.  If there were less metrics than
suffixes to sort by the returned list would containNonevalues.  Now an
empty list is returned.0.0.7 (2015-01-19)ImprovementsAdd initial support for collectdAdd graph moduleAdd metric moduleAdd API documentation0.0.6 (2015-01-16)ImprovementsAdd optional common tags parameter to CirconusClient class for a cleaner way
to specify common tags on a given instance of the client.Update all docstrings to reStructuredText format with parameter and return
types.Add API documentation.0.0.5 (2015-01-13)Bug fixesFix documentation link0.0.4 (2015-01-13)ImprovementsDocumentation0.0.3 (2015-01-13)Bug fixesMake thewith_common_tagsdecorator copy theCOMMON_TAGSlist rather
than modify it.0.0.2 (2015-01-13)ImprovementsAnnotation decorator, context manager & ad hoc methodsHISTORY.rstBug fixesProperly unpackargsinwith_common_tagsdecorator0.0.1 (2015-01-08)Wrap REST API with requestsCustom HTTP request headers for app. name and tokenResource taggingError logging
Package: circ-pandas
circ-pandascirc-pandasextends pandas data for circular data.Mean direction>>importpandasaspd>>fromcircpandasimportcircseries>>s=pd.Series([170,-160])>>s.circ.mean(radian=False)-175.0Circular variance>>importpandasaspd>>fromcircpandasimportcircseries>>s=pd.Series([45,-45])>>s.circ.var(radian=False)0.2928932188134524# 1 - (1 / sqrt(2))
Package: circrl
CircRLA small library of mech interp tools, primarily focused on
interpreting RL policies (though most of the tools are general).The library has three main components:Hooks: Tools for hooking into PyTorch models that provide
simple, safe wrappers around PyTorch forward hooks
functionality and allow easy caching, patching and arbitrary hook
functions.Probing: Tools for training linear probes on model activations
(or any other data), including sparse probes.Rollouts: Tools for running rollouts and collectiong various
kinds of data through a unified interface.InstallationCircRL is available on PyPI, and can be installed with pip:pipinstallcircrlUsageA detailed, self-contained demo of CircRL is available in theCircRL demo notebook.LicenseCircRL is licensed under the MIT license.CitationIf you use CircRL in your research, please cite according to:@misc{circrl,author={MacDiarmid, Monte},title={CircRL},year={2023},url={https://github.com/montemac/circrl}}