Saravanan666/pypi-org huggingface dataset:
Package: comptSort
comptSortA function designed to sort sequences of data with one of 5 different sorting algorithms: Bubble Sort, Insertion Sort, Binary Insertion Sort, Merge Sort and Quicksort.>>>fromcomptSortimportcomptSort>>>fromcomptSortimportSortingAlgorithm>>>uData=[9,8,7,6,5,4,3,2,1]>>>sData=comptSort(uData,SortingAlgorithm.MERGE,asc=True)>>>sData[1,2,3,4,5,6,7,8,9]Installationpython3-mpipinstallcomptSortUsagecomptSort provides two functions, one that sorts a list in place, and one that returns a sorted copy of a list.fromcomptSortimportcompSortfromcomptSortimportcompSortInPlacecomptSort offers 5 different sorting algorithms, all of which are comparison sorts.>>>fromcomptSortimportSortingAlgorithm>>>list(SortingAlgorithm)[<SortingAlgorithm.BUBBLE:'bubble'>,<SortingAlgorithm.INSERTION:'insertion'>,<SortingAlgorithm.BIN_INSERTION:'bin_insertion'>,<SortingAlgorithm.MERGE:'merge'>,<SortingAlgorithm.QUICK:'quick'>]Command Line InterfaceIt is also possible to sort a file with the CLI.$comptSort-h
usage:comptSort[-h][-a{bubble,insertion,bin_insertion,merge,quick}][-d][-i][-oOUTPUT]file

TestthecomptSortlibrarybysortinglinesoffiles.

positionalarguments:filefilecontainingitemstosort

options:-h,--helpshowthishelpmessageandexit-a{bubble,insertion,bin_insertion,merge,quick},--algorithm{bubble,insertion,bin_insertion,merge,quick}algorithmtosortwith-d,--descending,--reverseordersequenceindescendingorder-i,--force-integersparselinesfromfilesasintegers(bydefaultstrings)-oOUTPUT,--outputOUTPUTwritesortedlinestofileAuthorshipJacob Sanchez Perez <jsanchez-perez@uclan.ac.uk>LicenseThis software is distributed under theGeneral Public License v2.0, more information available at theFree Software Foundation.
Package: compuglobal
CompuGlobalPython wrapper for all endpoints of the following undocumented APIs:Frinkiac,Morbotron,Master Of All Science,Capital Beat UsandGood God LemonNote: I’ll be keeping the wrapper up to date as more APIs are released.CompuGlobal allows for both random and searchable screencaps, images and gifs
embedded with default or custom captions for the following shows:The Simpsons, Futurama, Rick and Morty, West Wing and 30 Rock.Make sure to acquaint yourself with the API using thedocumentation.InstallationTo install the library, you can just run the following command:python3 -m pip install -U compuglobalBasic Usageimportcompuglobalsimpsons=compuglobal.Frinkiac()# Randomscreencap=simpsons.get_random_screencap()# Searchscreencap=simpsons.search_for_screencap('nothing at all')# Images/Gifsimage=screencap.get_meme_url()gif=screencap.get_gif_url()For documented examples, checkhere.Async Usageimportasyncioimportcompuglobalasyncdefmain():simpsons=compuglobal.aio.Frinkiac()# Randomscreencap=awaitsimpsons.get_random_screencap()# Searchscreencap=awaitsimpsons.search_for_screencap('nothing at all')# Images/Gifsimage=screencap.get_meme_url()gif=awaitscreencap.get_gif_url()if__name__=='__main__':loop=asyncio.get_event_loop()loop.run_until_complete(main())For documented examples, checkhere.What’s New0.2.7 - Breaking changesThese changes are intended to provide more flexibility in the formatting
of captions:Addedformat_caption()method to CompuGlobalAPI objects. This
replaces the formatting logic previously within theencode_caption()method. Theencode_caption()method now only takes a caption parameter.Captions will no longer be formatted and shortened before
generation of memes, gifs, and mp4 urls if a caption is given.
Behaviour remains the same if no caption is given or ifformat_caption()is used on the caption beforehand.0.2.1 - Breaking ChangesAdded Frame object:search(),get_frames()andget_nearby_frames()now all return a list of Frame objects instead of the json response.PreviewCreditsCreators and contributors ofFrinkiac,Morbotron,Master of All Science,Good God LemonandCapital Beat Us:Paul KehrerSean SchulteAllie YoungMax,Jon Bernhardt,Nick Beatty,Vimp,juz, Iconfactory andGed MaheuxBLUEamnesiacfor the Internet King Popup BannerNamed CompuGlobal as shorthand forCompuGlobalHyperMegaCap,as the family of websites are named.
Package: compu-methods
ASAM, Autosar, MSRSW CompuMethodsQuickstartcompu-methods is available on PyPI and can be installed withpip.$pipinstallcompu_methodsAfter installing compu-methods you can use it like any other Python module.Here is a simple example:importcompu_methods# Fill this section in with the common use-case.TheAPI Referenceprovides API-level documentation.Change LogVersion History0.0.1Project created.
Package: computational-stopwatch
Computational StopwatchSimple stopwatch to easily print the elapsed time of a set of operations. It's a minimalistic library, but it is very useful in many real cases.UsageThe easiest way to use this tool is in conjunction with thewithpython statement:>>fromcomputational_stopwatchimportStopwatch>>>>withStopwatch():>>time.sleep(3)# <- simulates a computationElapsedtime0:00:03.003106Anything within the scope of thewithstatement will count against the elapsed time. An optional task name to be printed along the elapsed time (e.g. for better identification in a log) can be set in the constructor. This name will be prepended to the printed message. This is useful to track the elapsed time of several tasks ran in sequence.>>withStopwatch("My short task"):>>time.sleep(3)# <- simulates a computationMyshorttaskcomplete.Elapsedtime0:00:03.003106Alternatively to the use with thewithstatment, the class can be directly instantiated and the print function explicitly called.>>sw=Stopwatch()>>time.sleep(3)>>sw.print_elapsed_time()Elapsedtime0:00:03.003280or simply>>sw=Stopwatch()>>time.sleep(3)>>print(sw)0:00:03.003269The start time can be reset with thereset_timefunction and theget_elapsed_timemethod returns the unformatted elapsed time, which is useful for numerical comparisons.Differentverbositylevels can be set in the constructor, with 2 as the default level, with 1 only the time is printed when the object is deleted, and with 0 nothing is printed. This is convenient to directly assess the elapsed time in seconds without any rogue prints on deletion:>>sw=Stopwatch(verbosity=0)>>time.sleep(3)>>t=sw.get_elapsed_time()>>print(t)3.0032315254211426By default, everything is printed on the standard output. Further or alternative streams can be set in the constructor. For instance, the folowing snipped:>>log_file=open('/tmp/my_log_file.txt','w')>>withStopwatch("My logged task",streams=[sys.stdout,log_file]):>>time.sleep(3)# <- simulates a computationMyloggedtaskcomplete.Elapsedtime0:00:03.002731prints the message both on the standard output as well as in the log file for future perusal.Versions Historyv1.0.3added__str__function to easily include just the time stamp inside other stringsv1.0.2updated the READMEadded multiple streams functionalityv1.0.1minor fixesv1.0.0first reelease
Package: computation-graph
A function composition framework that supports:State - functions which retain state for their next turn of action.Prioritized paths - lazily attempt overloaded composition paths according to priorities.Deep dependency injection - compose a function to a variadic function at the end of an arbitrarily long pipeline.Non cancerousasynciosupport.pip install computation-graphTo deploy:python setup.py sdist bdist_wheel; twine upload dist/*; rm -rf dist/;Type checkingThe runner will type check all outputs for nodes with return type annotations. In case of a wrong typing, it will log the node at fault.DebuggingComputation traceAvailable computation trace visualizers:graphviz.computation_tracemermaid.computation_traceascii.computation_traceTo use, replaceto_callablewithrun.to_callable_with_side_effectwith your selected style as the first argument.Graphviz debuggerThis debugger will save a file on each graph execution to current working directory.You can use this file in a graph viewer likegephi.
Nodes colored red are part of the 'winning' computation path.
Each of these nodes has the attributes 'result' and 'state'.
'result' is the output of the node, and 'state' is thenewstate of the node.In gephi you can filter for the nodes participating in calculation of final result by filtering on result != null.
Package: compute-api-client
compute-api-clientA client library for accessing Compute APIUsageFirst, create a client. Since Compute requires authentication, useAuthenticatedClientclassfromcompute_api_clientimportAuthenticatedClientclient=AuthenticatedClient(base_url="http://compute-api:8000",token="SuperSecretToken")Now we call Compute and get the list of Plugins:fromcompute_api_client.modelsimportPluginfromcompute_api_client.api.plugin_controllerimportplugin_controller_findfromcompute_api_client.typesimportResponseresponse:Response[MyDataModel]=get_my_data_model.sync_detailed(client=client)Or do the same thing with an async version:fromcompute_api_client.modelsimportPluginfromcompute_api_client.api.plugin_controllerimportplugin_controller_findfromcompute_api_client.typesimportResponseresponse:Response[MyDataModel]=awaitget_my_data_model.sync_detailed(client=client)There are more settings on the generatedClientclass which let you control more runtime behavior, check out the docstring on that class for more info.Things to know:Every path/method combo becomes a Python module with four functions:sync: Blocking request that returns parsed data (if successful) orNonesync_detailed: Blocking request that always returns aRequest, optionally withparsedset if the request was successful.asyncio: Likesyncbut async instead of blockingasyncio_detailed: Likesync_detailedbut async instead of blockingAll path/query params, and bodies become method arguments.If your endpoint had any tags on it, the first tag will be used as a module name for the function (my_tag above)Any endpoint which did not have a tag will be incompute_api_client.api.defaultBuilding / publishing this ClientThis project usesPoetryto manage dependencies  and packaging.  Here are the basics:Update the metadata in pyproject.toml (e.g. authors, version)If you're using a private repository, configure it with Poetrypoetry config repositories.<your-repository-name> <url-to-your-repository>poetry config http-basic.<your-repository-name> <username> <password>Publish the client withpoetry publish --build -r <your-repository-name>or, if for public PyPI, justpoetry publish --buildIf you want to install this client into another project without publishing it (e.g. for development) then:If that projectis using Poetry, you can simply dopoetry add <path-to-this-client>from that projectIf that project is not using Poetry:Build a wheel withpoetry build -f wheelInstall that wheel from the other projectpip install <path-to-wheel>
Package: computed-cached-property
computed-cached-propertyA decorator for caching computed properties in classes. like Vue's Computed-Propertiesinstallpipinstallcomputed-cached-propertyexamplefromcomputed_cached_propertyimportcomputed_cached_propertyfromdataclassesimportdataclass@dataclassclassA:v1:int=1v2:str='fuck'v3:bool=False@property@computed_cached_propertydefv4(self):print('run code in v4 function')returnf'v1:{self.v1}, v2:{self.v2}, v3:{self.v3}'@property@computed_cached_property(typed=Ture)# same as @functools.lru_cache(maxsize=1, typed=Ture)defv5(self):print('run code in v4 function')returnf'v1:{self.v1}, v2:{self.v2}, v3:{self.v3}'a1=A(v1=99)print(a1.v4)print(a1.v4)a1.v2='xxoo'print(a1.v4)# output# run code in v4 function# v1:99, v2:fuck, v3:False# v1:99, v2:fuck, v3:False# run code in v4 function# v1:99, v2:xxoo, v3:FalseHintNot recommended for use in a production environmentLicenseMIT
Package: compute_distance
compute_distanceDocumentation:https://MFStark.github.io/compute_distanceSource Code:https://github.com/MFStark/compute_distancePyPI:https://pypi.org/project/compute_distance/Compute distances and create TIF filesInstallationpipinstallcompute_distanceDevelopmentClone this repositoryRequirements:PoetryPython 3.7+Create a virtual environment and install the dependenciespoetryinstallActivate the virtual environmentpoetryshellTestingpytestDocumentationThe documentation is automatically generated from the content of thedocs directoryand from the docstrings
of the public signatures of the source code. The documentation is updated and published as aGithub project pageautomatically as part each release.ReleasingTrigger theDraft release workflow(pressRun workflow). This will update the changelog & version and create a GitHub release which is inDraftstate.Find the draft release from theGitHub releasesand publish it. When
a release is published, it'll triggerreleaseworkflow which creates PyPI
release and deploys updated documentation.Pre-commitPre-commit hooks run all the auto-formatters (e.g.black,isort), linters (e.g.mypy,flake8), and other quality
checks to make sure the changeset is in good shape before a commit/push happens.You can install the hooks with (runs for each commit):pre-commitinstallOr if you want them to run only for each push:pre-commitinstall-tpre-pushOr if you want e.g. want to run all checks manually for all files:pre-commitrun--all-files
Package: compute-geometry
Welcome to thecompute-geometrylibrary, a comprehensive computational geometry library for Python. This library is designed to provide a set of tools and algorithms for solving geometric problems, making it a valuable resource for developers and researchers working in areas such as computer graphics, robotics, and geographic information systems.FeaturesGeometry Primitives:Efficient implementations of fundamental geometric primitives, including points, lines, and polygons.Algorithms:A variety of computational geometry algorithms, such as convex hull computation, line segment intersection, and Voronoi diagram generation.Geometry Operations:Functions for performing common geometric operations, such as distance calculations, area computations, and geometric transformations.Visualization:Functions for visualizing geometric objects and algorithms using Matplotlib.Documentation:Comprehensive documentation with usage examples to help you quickly integrate the library into your projects.InstallationYou can install thecompute-geometrylibrary usingpip:pipinstallcompute-geometryGetting StartedTo get started with thecompute-geometrylibrary, import it into your Python script or project:importcompute-geometryascgeomExplore the library's documentation to understand the available functionality and how to use it effectively.ExamplesHere are some examples to demonstrate how to use the Geometry library:# Example 1: Compute the convex hull of a set of pointsfromcgeom.algorithmsimportConvexHull# create a list of pointspoints=[(326,237),(373,209),(378,265),(443,241),(396,231),(416,270),(361,335),(324,297)]# create a convex hull object with the list of pointsconvex_hull=ConvexHull(points)# plot the convex hullconvex_hull.plot()# print the indexes of the points that form the convex hullprint('Convex Hull: ',convex_hull.get_indexes())# Example 2: Compute Voronoi diagram of a set of pointsfromcgeom.voronoiimportVoronoiDiagram# load a set of pointspoints=np.loadtxt("./points1.txt")# create a voronoi diagram objectvoronoi=VoronoiDiagram(points)# build the voronoi diagramcells=voronoi.build_voronoi_diagram()# plot the voronoi diagramvoronoi.plot_voronoi(cells)ContributingContributions to thecompute-geometrylibrary are welcome! If you have additional algorithms, improvements, or bug fixes, please submit a pull request. Be sure to follow thecontribution guidelinesoutlined in the repository.LicenseThis library is licensed under theMIT License, allowing you to use, modify, and distribute it for both commercial and non-commercial purposes.Start exploring the world of computational geometry with thecompute-geometrylibrary in Python!
Package: compute-hyperv
Hyper-V Nova DriverFree software: Apache licenseDocumentation:https://docs.openstack.org/nova/pike/admin/configuration/hypervisors.htmlSource:http://git.openstack.org/cgit/openstack/compute-hypervBugs:http://bugs.launchpad.net/compute-hypervRelease Notes:https://docs.openstack.org/releasenotes/compute-hypervFeaturesTODO
Package: computenest-cli
ComputeNest-CLIProject descriptioncomputenest-cli is a tool that integrates the creation, updating, and deployment of artifacts, as well as the creation and updating of services. It also provides the ability to associate artifacts with services and supports various custom operations, such as custom image creation. Users can choose different types of artifacts and associate them with services based on their needs.RequirementsPython >= 3.6Installationcomputenest-cli uses a common package management tool named pip.#Install the computenest-cli 
pip install computenest-cliUsageTo use computenest-cli, simply run the computenest-cli command with the required parameters:computenest-cli import --file_path $FILE_PATH --access_key_id $ACCESS_KEY_ID --access_key_secret $ACCESS_KEY_SECRETReplace$FILE_PATHwith the path to the config.yaml you want to manage, and$ACCESS_KEY_IDand$ACCESS_KEY_SECRETwith your AccessKey ID and AccessKey Secret.Optional parameters:ParameterDescriptionExample Valueservice_nameName of the servicemy-serviceversion_nameName of the versionv1.0iconCustom icon url for the servicehttps://xxx/icon.pngdescDescription of the serviceThis is a sample serviceHow to get the AccessKey pairCreate an AccessKey pair
Package: compute-oper1
This is a very simple calculator that takes 2 numbers and performs relevant mathematical computations on themChange Log=============================0.0.1 - 18-09-2023 -- First release0.0.1.1 -- 18-09-2023 --  updated release to check if it works0.0.1.2 -- 19-09-2023 --  updating same package and uploading.0.0.1.3 -- 19-09-2023 --  updating same package and uploading.
Package: computepipfilehash
Compute dependency hashes from Pipfile.lockThis is a small tool to computesha256hashes from the Pipfile.lock file.
ThePipfile.lockfile should exists in the current directory.Example usagecomputepipfilehashIf you have locally build wheels in the./localwheels/directory, then you
can generate a new requirements file from it.computepipfilehash --wheel-hashesBoth the above commands will print the output in the STDOUT.
Package: computercraft
Pythonized CC Tweaked (ComputerCraft) APIWarning: CPython can't build safe sandboxes for arbitrary untrusted code(read more).
Never use code in this repo if you don't trust your players!Download and install wheel from github releasespipinstallcomputercraft-*.whlEnable localhost in mod server configIn case of singleplayer it's located inside your saves folder.
In case of multiplayer check your server folder.Editcomputercraft-server.toml[[http.rules]]host="127.0.0.0/8"action="allow"# change here deny to allowStart python server:python-mcomputercraft.serverIn minecraft, open up any computer and type:wgethttp://127.0.0.1:8080/py
pyNow you have python REPL in computercraft!
To quit REPL typeexit()and press enter.pyis short Lua program that interacts with the server.ccmodule contains almost everythingas isin ComputerCraft documentation:fromccimportdisk,osdisk.eject('right')print(os.getComputerLabel())Opening a file:fromccimportfswithfs.open('filename','r')asf:forlineinf:print(line)Waiting for event (os.captureEventinsteados.pullEvent):fromccimportostimer_id=os.startTimer(2)foreinos.captureEvent('timer'):ife[0]==timer_id:print('Timer reached')breakUsing modems:fromccimportperipheralmodem=peripheral.wrap('back')listen_channel=5# this automatically opens and closes modem on listen_channelformsginmodem.receive(listen_channel):print(repr(msg))ifmsg.content=='stop':breakelse:modem.transmit(msg.reply_channel,listen_channel,msg.content)Using parallel:fromccimportparallel,osdeffn():os.sleep(2)print('done')parallel.waitForAll(fn,fn,fn)Importing in-game files as modules:fromccimportimport_filep=import_file('/disk/program.py')# absolutem=import_file('lib.py',__file__)# relative to current fileMore examples can be found in repository.
Package: computerender
Computerender Python ClientPython client for using the computerender API.Updatesv0.1: Improved Error handlingv0.0: Img2img!Installation$pipinstallcomputerenderExamplesfromcomputerenderimportComputerenderimportasynciocr=Computerender()# Generate image and save to filewithopen("cow.jpg","wb")asf:img_bytes=asyncio.run(cr.generate("a cow wearing sunglasses"))f.write(img_bytes)# Generate image with custom parametersimg_bytes=asyncio.run(cr.generate("testing",w=1024,h=384,iterations=20))# img2img generation reading from and writing to fileswithopen("cow.jpg","rb")asin_f:img_bytes=asyncio.run(cr.generate("van gogh painting of a cow wearing sunglasses",img=in_f.read()))withopen("van_gogh_cow.jpg","wb")asout_f:out_f.write(img_bytes)# img2img one-liner reading and writing to fileopen("fly.jpg","wb").write(asyncio.run(cr.generate("fly",img=open("cow.jpg","rb").read())))# Generate image and use it for img2img without saving anything to filesimg_bytes=asyncio.run(cr.generate("testing",w=1024,h=384,iterations=20))result_bytes=asyncio.run(cr.generate("testing style transfer",img=img_bytes))"a cow wearing sunglasses""van gogh painting of a cow wearing sunglasses"LicenseDistributed under the terms of the [MIT license][license]
Package: compute-rhino3d
compute_rhino3dPython package providing convenience functions to call compute.rhino3d.com
geometry web servicesProject Hompage:https://github.com/mcneel/compute.rhino3dSupported platformsThis is a pure python package and should work on all versions of pythonTeststartpython>>> from rhino3dm import *
>>> import compute_rhino3d.Util
>>> import compute_rhino3d.Mesh
>>>
>>> compute_rhino3d.Util.authToken = AUTH_TOKEN_FROM (rhino3d.com/compute/login)
>>> center = Point3d(250, 250, 0)
>>> sphere = Sphere(center, 100)
>>> brep = sphere.ToBrep()
>>> meshes = compute_rhino3d.Mesh.CreateFromBrep(brep)
>>> print("Computed mesh with {} faces".format(len(meshes[0].Faces))
Package: computer-info
This package is used to view system and hardware information. 这个包用于查看系统及硬件信息。It uses the wmi library in order to view some hardware information. 它使用wmi库以查看一些硬件信息。
An example, if you want to use it to view the MAC address, you can code it like this: 例如，如果你想用它来查看MAC地址，你可以这样编码：>>> import computer_info
>>> print(computer_info.net_mac())
F6:XX:XX:XX:XX:XXI don’t believe I need to write a separate description to point out what the functions do, because the function names are clearly written, and then the system automatically lists all the functions below. 我相信我无需编写一个另外的说明来指出函数们的作用，因为函数名称写得很清楚，然后系统会在下面自动列出所有的函数。
The names of all system-related functions start with system, the names of network-related functions start with net, and the names of hardware-related functions start with hardware. Only one function starts with computer. 所有与系统相关的函数的名称都以system开头，网络相关的函数的名称以net开头，硬件相关函数的名称以hardware开头。只有一个函数以computer开头。
This library is very useful, it is small, convenient and easy to call. You can use and combine these functions as many times as you want to get the most out of them. 这个库十分的好用，它小巧便捷，且调用方便。您可以随意地使用、组合这些函数以发挥您想要的最大效果。
Please forgive me if you can’t read the English in this description. I do not know English, this is just a machine translation. 如果你看不懂这篇描述中的英语，请原谅我。我不懂英语，这只是机器翻译。https://www.deepl.com/translator#zh/en/
Package: computerSitTimer
Computer Sit TimerThis is a simple countdown timer that pops up
and stays on top to block the view until action is taken.
It is similar to pomodoro technique,
but started from different motivation:
to not sit extensively in front of computer for better health.Several reasons why I re-invented the wheel instead of using existing (browser) apps:light-weight (relatively)blocking/really obtrusivenot browser extension/app (as we all spend far too long on browsers)runs in the notification tray (background) and not have a console/terminal there.Also, a hobby project for myself to try out developing desktop application with Python.
Because I am lazy, I am now trying to usepySimpleGUI(more specificallypySimpleGUIQtfor the tray)
to do so.Setup and InstallationAs this package is uploaded toPyPI, the easiest way to install is via pip:pip install computerSitTimerKnown Issuesno PySide2 for Python3.10 in Windows and Mac (as of v0.1.3)Resources:Official Cookbook for pySimpleGUI.trinket tutorialshas quite something there (examples).
It is basically like a VM and can run code and windows there.