Saravanan666/pypi-org huggingface dataset:
Package: pyorganise
pyOrganizeAn automated folder organizer in Python.It runs in the background and watches for new files created by the user and moves it to it's folder(Images/Documents/Vides,etc), depending on the extension of the file.Getting StartedThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.PrerequisitesIt needswatchdogmodule to trigger an event when a new file is created.sudo pip install watchdogUsageRun it on your local machine by passing the name of the User Account in Linux.python main.py vishnuwhere,vishnuis the username of my system.That's it!Adding more file formatsJust copy and edit any of theifstatement inside the proccess method in the eventHandler class.eg, to organise .C files, add this snippetelif ".c" in event.src_path:
            fileName=event.src_path.replace(pathDownloads,"")
            os.rename(pathDownloads+fileName,pathDownloads+"C_programs"+fileName)
Package: pyorick
The pyorick package startsyorickas a
subprocess and provides an interface between python and yorick
interpreted code.Features:exec or eval arbitrary yorick code stringsget or set yorick variablescall yorick functions or subroutines with python argumentsget or set slices of large yorick arraysterminal mode to interact with yorick by keyboard through pythonMost of the data is exchanged via binary pipes between the two
interpreters.  Yorick runs in a request-reply mode.  Python prints
anything yorick sends to stdout or stderr except prompts.SeeDESCRIPTION.rstfor a complete description of the interface.  You can clone or forkhttps://github.com/dhmunro/pyorickto contribute to pyorick.
Package: pyorient
Orientdbdriver for python that uses the binary protocol.Pyorient works with orientdb version 1.7 and later.WarningSome issues are experimented with record_create/record_upload and OrientDB < 2.0. These command are strongly discouraged with these versionsNOTICEPrior to version 1.4.7 there was a potential SQL injection vulnerability that now is fixed. (seedetails)Installationpip install pyorientHow to contributeFork the projectwork ondevelopbranchMake your changesAdd tests for it. This is important so I don’t break it in a future version unintentionallySend me a pull request(pull request to master will be rejected)???PROFIT
Package: py-origami-editor-3d
Py Origami Editor 3D projectPythonpreprocessing tool to createOrigamiScriptinput files forOrigami Editor 3DOverviewOrigami Editor 3Dis a GUI for creating origami "on the screen".OrigamiScriptis a scripting tool for Origami Editor 3D.
However, the scripting capabilities are limited, mainly the fact that numbers mist be hard-coded, there are no variables, no computing etc.This project is aPythonpreprocessing tool for OrigamiScript.
The exported result is OrigamiScript file, but before the export, you can use Python to compute some intermediate values, use variables for re-used values etc.UsageThe implemented commands are basically analogous to the original OrigamiScript definitions.See the example belowExampleKirigami example from OrigamiScript manualfrompy_origami_editor_3d.origamiimportOrigamifrompy_origami_editor_3d.paper_typesimportSQUARE#origami=Origami()origami.comment("A very basic paper flower")origami.paper(SQUARE)origami.comment("Fold in half twice:")origami.plane((200,200),(1,0,0)).reflect()origami.plane((200,200),(0,1,0)).reflect()origami.comment("Cut some paper:")origami.angleBisector((200,0),(100,0),(200,100)).cut()origami.angleBisector((0,200),(0,100),(100,200)).cut()origami.plane((130,200),(1,1,0)).cut()origami.comment("Unfold:")origami.target(100,100).plane((200,200),(1,0,0)).reflect()origami.target(100,100).plane((200,200),(0,1,0)).reflect()origami.save("kirigami.txt")InstallationUsingpip[sudo] python3 -m pip install [options] py-origami-editor-3d, e.g.pip install --user py-origami-editor-3dUsingmake(callspython3 -m pip install ., i.e. option 3, internally):make install [options], e.g.make install USER=TRUEUsingpiplocallypython3 -m pip install . [options], e.g.python3 -m pip install . --userContributionMerge RequestsAre welcomeBug reportingIn case of any question or problem, please leave an issue at theGitLab page of the project.ContributorsJan StránskýLicenseThis project is licensed under theMIT License- see thelicense filefor details.TODOother commandsmore tests
Package: pyorphans
Find dirs which appear to be broken python packages, i.e. dirs which
contain*.pyfiles without the necessary__init__.pySuggested use is to run as aPre-commithook.Why?In your main code it’s unlikely to have orphan modules since they are not importable and likely a cause of visible errors.However in your unit tests, particularly if you have a lot of tests, you may find orphans. They go undetected because while developing you maybe pass the full path to the orphan to your test runner, and it works. But when you run the full suite of tests the orphans won’t be found and so you have tests which aren’t running!By runningpyorphansas a pre-commit hook you can catch the orphans and fix them immediately.CLI UsagepipinstallpyorphansThis will install a console scriptpyorphans.To run the checker, just pass it a list of the root packages in your project:pyorphanstestsmyprojectIt returns output like:tests/unit->test_important_stuff.pytests/integration/important_stufftests/integration/important_stuff/api->test_views.pyWe can see here thattests/unitdir is missing an__init__.pybut containstest_important_stuff.pyAlsotests/integration/important_stuffandtests/integration/important_stuff/apidirs are both missing their__init__.pyfiles. Inside both directories is found a single ‘orphan’ file,tests/integration/important_stuff/api/test_views.py.Say you get an output like:myproject/scripts->do_something.pyMaybescriptsis not intended to be a package anddo_something.pyis a perfectly good standalone script that runs from the command-line.In this case create a.pyorphans_ignorefile in the root of your project (the dir that pyorphans will be run from), containing:myproject/scriptsNowmyproject/scripts(and all its subdirs) will be excluded from the search for orphans.Pre-commit HookWe suggest usingPre-commit.pipinstallpre-commitPyorphans is configured as a Pre-commit plugin. To apply it to your project, add a.pre-commit-config.yamlfile to the root of your project like so:repos:-repo:https://github.com/depop/pyorphansrev:"0.2.0"hooks:-id:pyorphansargs:-myproject-testsNow every time you commit, Pyorphans will run and ask you to fix any that it finds. Pyorphans runs fast so you’ll hardly notice it’s there!
Package: pyos
A fresh way to interact with your python objects as though they were files on your filesystem.InstallationAs easy as:Install MongoDBUbuntu:sudoaptinstallmongodbInstall pyos:pipinstallpyosJump in to the shell:>ipythonIn[1]:frompyos.pyosimport*In[2]:ls()From here you cansave()objects, use familiar linux commands (ls(),mv(),find(), etc) and a whole lot more.  Head over to thedocumentationto find out how.
Package: pyosa
PyOpenSurfaceAreaEstimates the area of an open surface represented as a point cloud in 3-D space.InstallationInstall it simply bypipinstallpyosaUsageA simple example of estimating the surface area composed of all points within some radius around a targeted point on the surface of the Stanford bunny is shown below. Runexample.pyto reproduce this example.frommatplotlib.patchesimportCircleimportnumpyasnpfromscipyimportspatialimportpyosa# laod the dataxyz=np.genfromtxt('bunny100k.xyz',delimiter=' ')# downsampling the point cloud just a bit for visualization purposesN=xyz.shape[0]num=0.05*Nmask=np.arange(0,N,int(N/num))xyz_ds=xyz[mask]# extract an arbitrary, open surface for which we want to extract the areapoint=xyz_ds[np.argmax(xyz_ds[:,2]),:]tree=spatial.KDTree(xyz_ds)r=0.5ind=tree.query_ball_point(point,r)# extraction of the surface area is as simple assurf=xyz_ds[ind]area=pyosa.estimate(surf)# show the resulting figurecircle=patches.Circle(point,r,fc='none',ec='k')fig,ax=show_pcd(xyz_ds,point,circle)# impementation in example.pyax.set_title(f'surface area:{area:.2f}')ShortcomingsThe current implementation is limited to open surfaces in 3-D space. The surface is assumed to have the least amount of variance in its "height" direction, that is, the surface is observed from the point of view on the normal at the center of the surface.LicenseMIT
Package: pyOSC
Simple OpenSoundControl module in Pure Python. Replaces the ‘SimpleOSC’ module.This implementation is intended to still be ‘Simple’ to the user, but much more complete
(with OSCServer & OSCClient classes) and much more powerful
(the OSCMultiClient supports subscriptions & message-filtering,
OSCMessage & OSCBundle are now proper container-types)This is a ‘Pure Python’ implementation, intended to be simple and transparent.If you ar looking for a FAST OSC-implementaion, try the ‘pyliblo’ package
Package: py-osc2
PMSF py-osc2 FrameworkWhat is it?PMSFpy-osc2is a Python package for working with ASAM OpenSCENARIO
DSL 2.x scenario files.Note that this package is currently provided as a community service.
It is based on the current public review draft of version 2.1.0 of the
language, which isnon-final, and might include updates based on
current developments.
It is offered without any support and should be considered draft alpha
quality.Specifically both the public review draft standard, this rendering of
the grammar in ANTLR4, and any intermediate fixes might contain errors.Nor is the rendering of the grammar in ANTLR4 intended for purposes
other than the goals of this package.If you are interested in OpenSCENARIO DSL development, please feel free
to contact us directly.Main featuresANTLR4-based parser and lexer for parsing ASAM OpenSCENARIO DSL 2.x
files.Simple syntax checking driverosc2parserfor parsing and checking
ASAM OpenSCENARIO DSL 2.x files.Where to get itThe source code is currently hosted on GitHub at:https://github.com/PMSFIT/py-osc2Binary installers for the latest released version are available at thePython Package Index (PyPI).# or PyPIpipinstallpy-osc2Dependenciesantlr4-python3-runtimeWhen rebuilding the parser from its grammar:setuptools-antlrRebuilding the parserTo rebuild the parser, you needsetuptools-antlrin addition to the normal dependencies above:pipinstallsetuptools-antlrTo rebuild the package with a rebuilt parser, execute:pythonsetup.pyantlrbuildor for installing:pythonsetup.pyantlrinstallor alternatively to install in development mode:pythonsetup.pyantlrdevelopLicense(C) 2021-2024 PMSF IT Consulting Pierre R. MaiMPL 2.0DocumentationAfter installation of the package, an executable script, calledosc2parser, is available to parse and check ASAM OpenSCENARIO DSL 2.x
files:osc2parserexamples/demo.oscThis script can optionally also output a tree-view of the parsed file
contents:osc2parser-texamples/demo.osc
Package: pyoscp
pyOSCPPython Rest-Interface for Open Smart Charging Protocol (OSCP) 2.0 built on Flask-RESTX, providing a OpenAPI interface.OSCP is not as widely used as OCPI or OCPP which are much more a business standard.
It can be used to communicate flexibilities and capacities, having a typical negotiation process.As version 1.x used a SOAP Approach, this can still be seen from the protocol.
The Registration between the participants uses a handshake and needs to have an open port on both sides.To reduce reimplementation, an academic implementation is provided here, which furthermore allows to integrate with a new RESERVATIONS endpoint, if needed.Currently, is no other public Python Implementation for the OSCProtocol.
The documentation of the protocol can be found here (https://www.openchargealliance.org/protocols/oscp-20/- requires mail-registration)Install Instructionspip install pyoscpor after cloning the repository, one can runpip install -e .to work locally with the package.Package informationoscp
├── __init__.py
├── *_endpoints.py      # <- contains REST Endpoint Descriptions
├── json_models.py      # <- contains JSON Schemas in Flask-RestX
└── RegistrationManager # <- contains stubs which have to be inherited and implementedConfigurationmain.pycontains an example of how to use this project.
The managers are meant to be understood as interfaces, which must be implemented according to the business logic which is not part of this communications module.An example architecture would use a background job to schedule answers (for example for the commands module) while saving the data from the post/patch requests in a seperate database, which is used for communication between the background job and the Flask app.
Package: pyoscvideo
pyOscVideopyOscVideo is a multi-video recorder and player controllable viaOpen Sound Control (OSC).The main purpose is to record video from multiple cameras synchronized with another source, for instance, another software recording audio. Since recording multiple videos in high resolution is a demanding task for the hardware, other tasks (audio recording, sensor data recording, measurements, dsp, etc.) can be performed on a separate computer and synchronized via OSC over the network.pyOscVideo currently does not support Windows, recording of multiple high definition videos on GNU/Linux might depend on your build of OpenCV.pyOscVideo is developed within the research project"Social interaction through sound feedback – Sentire"Install notesYou should be able to install directly from PyPI:pip install pyoscvideoPlease note that you will need to installVLCfor the player functionality.UsageAfter installing you can run it by typing:pyoscvideoandpyoscvideoplayerYou can control both the recorder and the player via OSC or using the GUI.
To start the player with GUI control run as:$ pyoscvideoplayer --no-oscControlling the recorderOSC commandargumentdescriptionreply (on success)/oscVideo/prepareRecordingstring, the recording pathPrepares all the internal buffers for writing to filesystem but won't start recording. Sends a reply when finished preparing./oscVideo/status Prepared Recording/oscVideo/recordbooleanStarts/stops the recording. Sends a reply about the success of starting the recording/oscVideo/status Started RecordingControlling the playerOSC commandargumentdescription/oscVideo/loadFolderstring, video folder pathLoads all videos inside the folder path/oscVideo/loadFilestring, video file pathLoads a video/oscVideo/setVideoPlayStarts playing the videos/oscVideo/setVideoPausePauses the player/oscVideo/setVideoPositiontime in millisecondsSets playback position/oscVideo/cleanUnloads / removes all loaded videos from the playerDevelopmentCheck coding style (PEP-8) and type hintsFirst need to install the tools (in case you don't have):
pip install pycodestyle mypythen simply run:
./run_tests.sh
Package: py-osinfo
Py-osinfo should work without any extra programs or libraries, beyond
what your OS provides. The goal is for this to work on every OS that
Python supports. Works on Linux, OS X, Windows, BSD, Solaris, Cygwin,
and Haiku.Pip installsudo pip install py-osinfosudo pip3 install py-osinfofrom osinfo import osinfoRun as a script$ python osinfo.py
type: Linux
brand: Slackware
release: 14.1
kernel: (3, 13, 0)Run as a libraryimport osinfo
os_type, os_brand, os_release, os_kernel = osinfo.get_os_info()

if os_type in osinfo.OSType.linux:
    print("Looks like you're using Linux.")

    if os_kernel < (3, 13, 1):
        print("Your Linux kernel version is too old!")

if os_brand in osinfo.OSBrand.CentOS:
    print("Looks like you're using CentOS.")

if os_release == '99.01':
    print("OMG CentOS from 2099. Can I see the sorce code?")OutputsCentOStype: Linux
brand: CentOS
release: 6.5
kernel: (2, 6, 32)Cygwintype: Cygwin
brand: CYGWIN_NT-6.3
release: 1.7.32
kernel: (1, 7, 32)Crunch Bangtype: Linux
brand: CrunchBang
release: 11
kernel: (3, 2, 0)Debiantype: Linux
brand: Debian
release: 7.6
kernel: (3, 2, 0)Fedora 20type: Linux
brand: Fedora
release: 20FreeBSD 10type: BSD
brand: FreeBSD
release: 10.0Haikutype: BeOS
brand: Haiku
release: 1
kernel: (1,)Linux Minttype: Linux
brand: LinuxMint
release: 10.9.4
kernel: (3, 11, 10)Manjarotype: Linux
brand: Manjaro
release: 0.8.10
kernel: (3, 12, 20)Mac OS Xtype: MacOS
brand: OSX
release: 10.9.4
kernel: (13, 3, 0)NetBSDtype: BSD
brand: NetBSD
release: 6.1.4Open Indianatype: Solaris
brand: OpenIndiana
release: 151a8
kernel: (5, 11)open SUSEtype: Linux
brand: openSUSE
release: 13.1
kernel: (3, 11, 10)Open SXCEtype: Solaris
brand: OpenSXCE
release: pensxce2014.05__illumos20140505
kernel: (5, 11)PCBSDtype: BSD
brand: FreeBSD
release: 10.0-release-p13Redhattype: Linux
brand: Redhat
release: 6.5
kernel: (2, 6, 32)Sabayontype: Linux
brand: Sabayon
release: 5.5
kernel: (2, 6, 37)Scientific Linuxtype: Linux
brand: ScientificLinux
release: 6.5
kernel: (2, 6, 32)Ubuntu 14.04type: Linux
brand: Ubuntu
release: 14.04
kernel: (3, 13, 0)Windows 7type: Windows
brand: Windows7
release: 6.1.7601
kernel: (6, 1, 7601)Windows 8type: Windows
brand: Windows8
release: 6.2.9200
kernel: (6, 2, 9200)Windows XPtype: Windows
brand: WindowsXP
release: 5.1.2600
kernel: (5, 1, 2600)Please submit a pull request with the results for your favorite OS!Bugs and CorrectionsPlease report a Bug if you suspect any of this information is wrong.
Package: pyosirix
pyOsirixTable of contentsPyOsirix and gRPCInstallationDevelopmentBug/Feature RequestTo-doCreditsPyOsirix and gRPCThis provides a Pythonic interface that uses the osirixgRPC plugin to
interact with OsiriX and Horos, to provide access to functionality
through the gRPC protocol. This will supercede the previous
implementation of pyOsiriX as it will be general, and easy to maintain.Free software: BSD licenseDocumentation:https://osirixgrpc.github.io/InstallationRequirementsPython 3+ (https://www.python.org/)Horos/Osirix (https://horosproject.org/)InstructionsUsing pip:pip install pyosirixUsing it from github for development purposes:git clone git@github.com:osirixgrpc/pyosirix.git
cd pyosirix
# Create your own scripts with main function to test the functionality, note that you need to start an OsirixService first and have Horos/Osirix open.

# See unit tests for examplesFeaturesTODODevelopmentWant to contribute? Great!To fix a bug or enhance an existing module, follow these steps:Fork the repoCreate a new branch (git checkout-bimprove-feature)Make the appropriate changes in the filesAdd changes to reflect the changes madeCommit your changes (git commit-am'Improve feature')Push to the branch (git push originimprove-feature)Create a Pull RequestBug / Feature RequestIf you find a bug (the website couldn’t handle the query and / or gave
undesired results), kindly open an issuehereby including
your search query and the expected result.If you’d like to request a new function, feel free to do so by opening
an issuehere.
Please include sample queries and their corresponding results.To-doPlaceholderCreditsTimothy Sum Hon Muntimothy22000@gmail.com/timothy.sumhonmun@icr.ac.ukMatthew Blackledgemattyblackledge@gmail.com/matthew.blackledge@icr.ac.ukHistory0.1.4 (2021-10-28)Bug Fixes, Tests0.1.3 (2021-10-27)First release on PyPI.
Package: pyoslapi
Open source licenses templatesTable of ContentsAvailable licensesBSDGNUCreative CommonsOtherProjects that use licensesAuthorsHelp authorLicensePull requests are welcome. Seecontributingandopening issuesfor details.Available licenses:BSDKey nameLicense full namebsd-2-clauseBSD 2-Clause Licensebsd-3-clauseBSD 3-Clause LicenseCreative Commons:Key nameLicense full namecc0CC0 1.0 Universalcc-byAttribution 3.0 Unportedcc-by-ncAttribution-NonCommercial 3.0 Unportedcc-by-nc-ndAttribution-NonCommercial-NoDerivs 3.0 Unportedcc-by-nc-saAttribution-NonCommercial-ShareAlike 3.0 Unportedcc-by-ndAttribution-NoDerivs 3.0 Unportedcc-by-saAttribution-ShareAlike 3.0 UnportedGNUKey nameLicense full namegpl-2.0GNU General Public License v2.0gpl-3.0GNU General Public License v3.0agpl-3.0GNU Affero General Public License v3.0lgpl-2.1GNU Lesser General Public License v2.1lgpl-3.0GNU Lesser General Public License v3.0OtherKey nameLicense full nameaalAttribution Assurance Licenseafl-3.0Academic Free License 3.0apache-2.0Apache License Version 2.0apsl-2.0Apple Public Source License 2.0artistic-2.0Artistic License 2.0bsl-1.0Boost Software License 1.0catosl-1.1Computer Associates Trusted Open Source License 1.1cddl-1.0COMMON DEVELOPMENT AND DISTRIBUTION LICENSE Version 1.0cecill-2.1CeCILL License 2.1epl-2.0Eclipse Public License - v2.0mitMIT Licensempl-2.0Mozilla Public License Version 2.0unlicenseUnlicensewtfplDO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2x11X11zlibZLIBOther projects usinglicensesBelow is a list of public, open source projects that uselicenses:lfp- Tool for easy adding the license to your project.If you are usinglicensesin a project please send
a pull request to add it to the list.AuthorsAPI:LanguageAuthorGoYuriy LisovskiyJavaScriptYuriy LisovskiyPythonYuriy LisovskiyLicenses:https://www.gnu.orghttp://unlicense.orghttps://opensource.orghttps://creativecommons.orgDonationsBitcoin:1KfafTH4fSodRHw6Lc9nnGs58sibXrYEv7Ether:0x53c554400ca9d6dd5c56739c27bd79fd14fca851Bitcoin Cash:qrxtu27d9me0h3336yjcqjw6fz9g3esley8cf09ylcLicenseThis project is licensed under theMITsoftware license - see theLICENSEfile for details.
Package: pyoslom
Python binding for OSLOM graph clustering algorithmSummaryPyolsom is a python binding forOSLOM(Order Statistics Local Optimization Method) graph clustering algorithm.It works with directed/undirected weighted and unweighted graph.
The algorithm performs usually good but slow, so it is better to be applied to medium graph size.The orginal C++ code is really hard to be refactored. I tried the best to make it work with python.Known issuesThe lib is not thread safe. So use mutliprocess  when parallel is required.RequirementsC++ 17Python 3scikit-learn>=0.24pybind11>=2.6networkx>=2.5The versions are what I worked on. Lower versions may work also.InstallInstall pybind11 first because there is no binary release in pip repo and thesetup.pydepends onpybind11.pipinstall"pybind11>=2.6"On Windows  installMicrosoft Visual C++ Build Toolfirst (refer tohttps://wiki.python.org/moin/WindowsCompilers).build from sourcegitclonehttps://bochen0909@github.com/bochen0909/pyoslom.git&&cdpyoslom&&pythonsetup.pyinstallor use pippipinstallpyoslomHow to useExample:importnetworkxasnxfrompyoslomimportOSLOMG=nx.read_pajek("example.pajek")# networkx graph or adjacency matrixalg=OSLOM(random_state=123)results=alg.fit_transform(G)defprint_clus(clus):fork,vinclus.items():ifk!='clusters':print(str(k)+"="+str(v))fork,linclus['clusters'].items():print("Level:"+str(k)+", #clu="+str(len(l)))print_clus(results)For more complete examples please see the notebookexample.ipynb.LicenseThe original c++ code is published atOSLOMfollowing a research publication. However there is no license attached with it.
The python wrapping work is licensed under the GPLv2.
Package: pyosm
A Python library for parsing OSM streams.InstallationAssuming Ubuntu 12.04 and an active python virtualenv:Install build dependencies:sudo apt-get install -y build-essential python-devInstall lxml dependencies:sudo apt-get install -y libxml2-dev libxslt-devInstall requirements:pip install -r requirements.txtInstall pyosm:python setup.py installUsageThere are several examples in the [examples](https://github.com/iandees/pyosm/tree/master/examples) directory.
Package: pyosmapi
This Project is currently in Alphaall requests are directed tohttps://master.apis.dev.openstreetmap.orgPYOSMAPIA OSM-Edit API Interface written in PythonDescriptionThis Project is forked from repositoryosmateI saw the need to write my own code to access the OSM-API for editing.
My second requirement was to be able to use OAuth which I haven’t found In any other Python OSM-API yet.Installationthe project is now on pip, so now it is just as easy aspipinstallpyosmapiafter that import osm.osm_apiimportpyosmapi.osm_apiapi=pyosmapi.osm_api.OsmApi()#init with '' or Fales access testserver (https://master.apis.dev.openstreetmap.org)#by initializing OsmApi(True) you can access the live serverapi.get_current_user((<osm-username>,<osm-password>))I wrote some documentation to every public method.
I’ve Implemented all methods from the API v0.6, excluding reductionSupportPlease create an Issue in github for any Bugs and Feature requests.
For direct contact to me please write a PM via OSMhere.
If you want to support me, consider toDonateany amount you like.