Saravanan666/pypi-org huggingface dataset:
Package: oglio
IntroductionProvides a common way to parse and write Pyut XML files.  Additionally, removes this code from
Pyut and places in a new project, so we can easily version the library.  Furthermore, it allows
the development of an IOXml plugin for Pyut with common codeOverviewDeveloper NotesThis project usesbuildlackeyfor day-to-day development buildsNoteFor all kinds of problems, requests, enhancements, bug reports, etc.,
please drop me an e-mail.
Written byHumberto A. Sanchez II(C) 2024I am concerned with the direction GitHub's Copilot project.I urge you to read about theGive up GitHubcampaign fromthe Software Freedom Conservancy.While I do not advocate for all the issues listed there, I do not like that
a company like Microsoft may profit from open source projects.I continue to use GitHub because it offers the services I need for free.
But I continue to monitor their terms of service.I do not consent to any use of this project's code by the GitHub Copilot project it is done without my permission.
Package: oglob
oglobTheoglobis a Python module designed to offer composable file searching capabilities beyond the traditionalglob.globfunctionality. It enables users to perform complex pattern-based searches for files and directories within a file system, offering a blend of flexibility, performance, and ease of use.The Key feature is the composable file pattern matching: Utilizes logical operators such as AND, OR, NOT, and AND NOT (DIFF) to construct intricate search patterns, allowing for precise file and directory selection criteria.Getting StartedThe module is easy to integrate and use within any Python project. It's compatible with standard Python workflows and can be used alongside other file manipulation libraries.fromoglobimportfilesroot='.'pattern=files.sec(lambdaparts:'tests'inparts)pattern&=files.path(lambdap:p.suffix=='.py')required_files=files(root,pattern,recursive=True)# required_files: Iterable[Path]API Referencefiles(root: str | Path, pattern: PathPattern, ...), see the docstrings for more details.files.sec(predicate: 'tuple[str, ...] -> bool') -> PathPatternfiles.full(predicate: 'str -> bool') -> PathPatternfiles.path(predicate: 'Path -> bool') -> PathPatternfiles.name(predicate: 'str -> bool') -> PathPatternForPathPatternobjects, logical operators are supported:p1 & p2:p1andp2must be satisfied.p1 | p2:p1orp2must be satisfied.~p:pmust not be satisfied.p1 - p2:p1must be satisfied, butp2must not be satisfied.ContributingFeature enhancement, bug fixes, and documentation improvements are welcome, community input is highly valued.LICENSEThis project is licensed under the MIT License - see theLICENSEfile for details
Package: ogma
OgmaAccording to legend, he is the inventor of Ogham, the runic language in which Irish Gaelic was first written.Ogmais a database access code generator for Java. It will take your database schema definition written in a Python-based DSL and generate (with jOOQ, among others) the necessary Java code to perform typed queries on that database.It can also generate the necessary DDL to create the database structure according to spec.Ogmahas been written for MySQL and MariaDB, but could be made to work with other engines that are both supported by SQLAlchemy and jOOQ.How to installJust run the usual for a Python package:pipinstallogmaThen you can runogma.Code generation and other toolsOgmaobviously generates code, but it can also do other things. The tool is organized with subcommands.GenerationThegeneratesubcommand is used to generate Java code from the model file. The model file is a Python with some restrictions and additions:There is an implicit import of everything frommodelutilsNo imports are allowedFor DevelopersStructuremodelutilscontains all the code that is imported into the database model files and that internally deals with model operations.commandscontains the entry points for the tool's subcommandstemplatescontainsmustachetemplates for jOOQ's configuration and additional generated Java code
Package: ogmios
ogmios-pythonOgmiosis a lightweight bridge interface for cardano-node. It offers a WebSockets API that enables local clients to speak Ouroboros’ mini-protocols via JSON/RPC.ogmios-pythonis an Ogmios client written in Python designed for ease of use.Table of ContentsInstallationQuickstartLicenseInstallationInstall cardano-node and Ogmios server as describedhere. (Docker installation is recommended.)Install ogmios-python fromPyPIusing pip:pip install ogmiosQuickstartTo see how easy it is to build on Cardano with ogmios-python, let's use the library to view new blocks as they are added to the blockchain:importogmioswithogmios.Client()asclient:# Set chain pointer to origin_,tip,_=client.find_intersection.execute([ogmios.Origin()])# Now set chain pointer to tip_,_,_=client.find_intersection.execute([tip.to_point()])# Tail blockchain as new blocks come in beyond the current tipwhileTrue:direction,tip,point,_=client.next_block.execute()ifdirection==ogmios.Direction.forward:print(f"New block:{point}")For more examples, see the documentation and example scripts in the repo.DocumentationComplete client documentation is available onRead the Docs.Licenseogmios-pythonis distributed under the terms of theGPL-3.0-or-laterlicense.
Package: ogn-client
python-ogn-clientA python3 module for theOpen Glider Network.
It can be used to connect to the OGN-APRS-Servers and to parse APRS-/OGN-Messages.A full featured gateway with build-in database is provided byogn-python.Installationpython-ogn-client is available at PyPI. So for installation simply use pip:pip install ogn-clientExample UsageParse APRS/OGN packet.fromogn.parserimportparsefromdatetimeimportdatetimebeacon=parse("FLRDDDEAD>APRS,qAS,EDER:/114500h5029.86N/00956.98E'342/049/A=005524 id0ADDDEAD -454fpm -1.1rot 8.8dB 0e +51.2kHz gps4x5",reference_timestamp=datetime(2015,7,31,12,34,56))Connect to OGN and display all incoming beacons.fromogn.clientimportAprsClientfromogn.parserimportparse,ParseErrordefprocess_beacon(raw_message):try:beacon=parse(raw_message)print('Received{aprs_type}:{raw_message}'.format(**beacon))exceptParseErrorase:print('Error,{}'.format(e.message))exceptNotImplementedErrorase:print('{}:{}'.format(e,raw_message))client=AprsClient(aprs_user='N0CALL')client.connect()try:client.run(callback=process_beacon,autoreconnect=True)exceptKeyboardInterrupt:print('\nStop ogn gateway')client.disconnect()Connect to telnet console and display all decoded beacons.fromogn.clientimportTelnetClientfromogn.parser.telnet_parserimportparsedefprocess_beacon(raw_message):beacon=parse(raw_message)ifbeacon:print(beacon)client=TelnetClient()client.connect()try:client.run(callback=process_beacon)exceptKeyboardInterrupt:print('\nStop ogn gateway')client.disconnect()LicenseLicensed under theAGPLv3.
Package: ognom
Documentation:  #TODOOgnom is object-to-document mapper formongodb. Currently ognom usespymongoas default backend,
but you can easily implement your own backend based on another driver (for exampleasyncio-mongo) if needed,
as serialization and storage logic in ognom are separated.Supports python2.7+, python3.3+, PyPy.Documentation:  #TODOInstallpipinstallognomTeststoxFeaturesVanilla python, no dependencies;From version 1.0 exposes full pymongo API(!);Easy to write your own backend with your own API.Quickstartfromognom.baseimportConnectionManager,Document,Collectionfromognom.fieldsimportStringField,IntFieldConnectionManager.connect({'main':{# ognom use aliases for databases to make it possible to use multiple db's per project'name':'birzha_main','args':['127.0.0.1:27017'],'kwargs':{'socketTimeoutMS':60000}},})classFoo(Document):objects=Collection(db_name='main'collection_name='my_foos'# collection name (by default 'foos')indexes=[{'index':[('bar',1),('baz',-1)],'background':True}])bar=StringField(required=True,default='baaar')baz=IntField(choices=[10,20,30,40,50])foo1=Foo.objects.create({'bar':'lalala'})assertFoo.objects.get({'bar':'lalala'}).id==foo1.idfoo2=Foo(bar='lololo',baz=10)assertfoo2.idisNonefoo2.save()assertfoo2.idisnotNonefoo2.remove()foos=Foo.objects.find({'bar':'lalala'})# not list but CursorWrapper!assertlen(list(foos))==1ContributorsLev Orekhov@lorehovMichael Elovskikh@wronglinkSardnej@sardnej
Package: ogo
📦 setup.py (for humans)This repo exists to providean example setup.pyfile, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices forsetup.py, as well as some
commented–out nice–to–haves.For example, thissetup.pyprovides a$ python setup.py uploadcommand, which creates auniversal wheel(andsdist) and uploads
your package toPyPiusingTwine, without the need for an annoyingsetup.cfgfile. It also creates/uploads a new git tag, automatically.In short,setup.pyfiles can be daunting to approach, when first
starting out — even Guido has been heard saying, "everyone cargo cults
thems". It's true — so, I want this repo to be the best place to
copy–paste from :)Check out the example!Installationcdyour_project# Download the setup.py file:#  download with wgetwgethttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py-Osetup.py#  download with curlcurl-Ohttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.pyTo DoTests via$ setup.py test(if it's concise).Pull requests are encouraged!More ResourcesWhat is setup.py?on Stack OverflowOfficial Python Packaging User GuideThe Hitchhiker's Guide to PackagingCookiecutter template for a Python packageLicenseThis is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.
Package: ogp
OpenGraph is a module of python for parsing the Open Graph Protocol, you can read more about the specification athttp://ogp.me/Installationpip install ogpFeaturesUse it as a python dictInput and parsing from a specific urlInput and parsung from html previous extractedHTML outputUsageFrom an URL>>> import ogp
>>> video = ogp.OpenGraph(url="http://www.youtube.com/watch?v=q3ixBmDzylQ")
>>> video.is_valid()
True
>>> for x,y in video.items.items():
...     print "%-15s => %s" % (x, y)
...
site_name       => YouTube
description     => Eric Clapton and Paul McCartney perform George Harrison's "While My Guitar Gently Weeps" at the...
title           => While My Guitar Gently Weeps
url             => http://www.youtube.com/watch?v=q3ixBmDzylQ
image           => http://i2.ytimg.com/vi/q3ixBmDzylQ/default.jpg
video:type      => application/x-shockwave-flash
video:height    => 224
video           => http://www.youtube.com/v/q3ixBmDzylQ?version=3&autohide=1
video:width     => 398
type            => videoFrom HTML>>> HTML = """
... <html xmlns:og="http://ogp.me/ns#">
... <head>
... <title>The Rock (1996)</title>
... <meta property="og:title" content="The Rock" />
... <meta property="og:type" content="movie" />
... <meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />
... <meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />
... </head>
... </html>
... """
>>> movie = ogp.OpenGraph() # or you can instantiate as follows: opengraph.OpenGraph(html=HTML)
>>> movie.parser(HTML)
>>> video.is_valid()
True
Package: ogpparser
ogpparserOpen Graph Protocolのタグを取得インストール方法pip install ogpparser使用方法fromogpparserimportogpparserresult=ogpparser('https://github.com/reeve0930/ogpparser')出力{"image":"https://avatars1.githubusercontent.com/u/38152917?s=400&v=4","site_name":"GitHub","type":"object","title":"reeve0930/ogpparser","url":"https://github.com/reeve0930/ogpparser","description":"Open Graph Protocolのタグを取得. Contribute to reeve0930/ogpparser development by creating an account on GitHub."}
Package: ogPypeline
ogPypelineA python package for the oil and gas industry. The initial release is focused on 64 useful unit conversions and over 100 common formulas across multiple disciplines.
Developed by Tim Clarke (c) 2021InstallationYou can install ogPypeline fromPyPI:pip install ogPypelineDocumentationDocs are available atReadTheDocsReporting IssuesTo report bugs, errors or make suggestions for improvements, click on the issues tab at the top of the repo ongithuband create a new case.LicenseCopyright 2021 Timothy ClarkePermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: ogr
One Git library to RuleLibrary for one API for many git forges. (e.g. GitHub, GitLab, Pagure).Currently supported git forges:GitHubGitLabPagureTo start using ogr:SeeDocumentation of Index of Sub-modules, Functions & ClassesFor examples of how to useogrseeJupyter examples.GitHubThis snippet shows how to obtain all releases for certain GitHub project using ogr.fromogr.services.githubimportGithubServiceservice=GithubService(token="your_token")ogr_project=service.get_project(repo="ogr",namespace="packit-service")ogr_releases=ogr_project.get_releases()forreleaseinogr_releases:print(release.tag_name)This will output:0.7.0
0.6.0
0.5.0
0.4.0
0.3.1
0.3.0
0.2.0
0.1.0
0.0.3
0.0.2
0.0.1You can use the same API for other forges, you just need to replaceGithubServicewithPagureService.Supported functionalityFor more info on functionality thatis notsupported in all services the same way
seecompatibility tables.InstallationOn Fedora:$ dnf install python3-ogrYou can also use ourpackit-releasesCopr repository(contains also released versions ofOGR):$ dnf copr enable packit/packit-releases
$ dnf install python3-ogrOr from PyPI:$ pip3 install --user ogrYou can also install OGR from themainbranch, if you are brave enough:You can use ourpackit-devCopr repository(contains the latest development version ofogr):$ dnf copr enable packit/packit-dev
$ dnf install python3-ogrOr$ pip3 install --user git+https://github.com/packit/ogr.gitRequirementsMakefilepodmanansible-benderTestsMake sure to install prerequisite packages before firstmake check,make build, ormake check-in-container. See CONTRIBUTING.md for
details.Contribution notesProperty should not connect to network.Contribution guidelinesFor more info about contributing to our project seeour contribution guide.Deprecation policyFor more info about deprecation policy seeDeprecation policy
Package: ogr2wkt
ogr2wktConvert Fiona-supported OGR data sources to pipe-delimited WKT format.Why?ogr2ogr's csv driver does not support pipe delimiters. If you want to use it to create a text file with WKT geometry
which also contains attributes, you're out of luck unless you want a TAB-delimited file (which, why would you?)InstallationThis tool depends on Fiona, which in turn depends on GDAL. Fiona, when installed using a wheel, will
automatically include its dependencies.pipinstallogr2wktUsageogr2wktINPUT_FILEOUTPUT_FILE
Package: ogre-python
SummaryOGRE(Object-Oriented Graphics Rendering Engine) is a
scene-oriented, flexible 3D engine written in C++ designed to make it
easier and more intuitive for developers to produce games and demos
utilising 3D hardware. The class library abstracts all the details of
using the underlying system libraries like Direct3D and OpenGL and
provides an interface based on world objects and other intuitive
classes.BuildStatusLinux, OSX, Android, iOSMSVCIndex Of ContentsWhat's New?A summary of the new and altered features in this release.Building the core OGRE librariesIf you're using the full source release, this will help you build it. If you're using a precompiled SDK then most of the work has already been done for you, and you should use the sample projects to see how to compile your own code against OGRE.The OGRE ManualA high-level guide to the major parts of the engine and script reference.API ReferenceThe full OGRE API documentation, as generated from the (heavily!) commented source.The OGRE TutorialsA gold mine of tutorials, tips and code snippets which will help you get up to speed with the engine.Try itOnline Emscripten DemoLinux Snap PackageAndroid App on F-DroidFeaturesFor an exhaustive list, see thefeatures pageand try our Sample Browser. For a quick overview see belowIntegrated Bump and Offset MappingIntegrated shadowsPhysically Based ShadingParticle EffectsHW & SW skeletal animationMulti-layer TerrainAutomatic Rendertarget pipelining (Compositors)Volume Rendering with CSG & Triplanar TexturingDear ImGuiBullet PhysicsIntegrationWho is using it?Open SourceStunt Rally - 3D Racing Game with Track EditorRigs of Rods - Soft Body Physics SimulatorGazebo - Robot simulationOpenCV OVIS visualization moduleROS 3D visualization toolSurgical Image ToolkitClosed SourceHobTorchlight IIBattlezone 98 ReduxContributingWe welcome all contributions to OGRE, be that new
plugins, bugfixes, extensions, tutorials, documentation, example
applications, artwork or pretty much anything else! If you would like
to contribute to the development of OGRE, please create apull request.Getting SupportPlease use ourcommunity support forumsif you need help or
think you may have found a bug.LicensingPlease see thefull license documentationfor details.
Package: ogrkit
A suite of command-line utilities implementing basic geometric operations. (Difference, Intersection, etc.)This project is a cousin ofcsvkit.Note: This is only a proof-of-concept to see if this idea makes sense.InstallationIt’s easy!pip install ogrkitUsageTo try the difference utility:ogrdifference INPUT_SHAPEFILE OUTPUT_SHAPEFILE [MASK_SHAPEFILES...]Note: this currently only works with shapefiles, but could be extended to work with any format supported byOGR.AuthorsChristopher Groskopf (@onyxfish)LicenseMIT
Package: ogr-tiller
ogr_tillerServe vector tiles from local spatial data in geopackage formatInstallationInstallationpip3 install ogr_tillerfor updating to latest releasepip install ogr_tiller -UUsageogr_tiller --cache_folder ./cache/ --data_folder ./data/ogr_tiller --cache_folder ./cache/ --data_folder ./data/ --port 8000
Package: ogr_utils
ogr_utils is a small wrapper around the GDAL/ogr module. Basically it
is an abstraction layer that adds some convience to reading, writing
and manipulating geographic data formats.
It provides three modules: geometry, research and copy_helper.Important!Obviously GDAL is required. As installation can be troublesome it is not including as a requirement in this distribution. Please install manually.Example one. Save a layer based on a query to a new shapefile:#!/usr/bin/env python

from ogr_utils.copy_helper import CopyHelper
c = CopyHelper()
f = '/home/.../border_segs.shp'
shp =ogr.Open(f,0)
lyr = shp.GetLayer()
lyr.GetFeatureCount()
>>> 13411
c.lyr_2_shp(lyr,f,'line')
lyr_sel = shp.ExecuteSQL("select * from 'border_segs' where 'FID' < 100 ")
lyr_sel.GetFeatureCount()
>>> 100
c.lyr_2_shp(lyr_sel,f,'line')Example two. Save a set of geo objects to a shapefile (or any other file format supported by ogr):#!/usr/bin/env python

from ogr_utils.geometry import Geometry
g = Geometry( [(xy),], [(fieldname_1, type),(fieldname_2, type),], [(value_field_1,...),(value_field_2,...)] )
f = '/home/.../outfile.shp'
g.make_points(f)Example three. Get the geomtry of an evelope by it’s lower left and upper right corner:#!/usr/bin/env python

from ogr_utils.research import Research
prof = Research()
xy1 = (4.84692,52.3706)
xy2 = (4.84397,52.36611)
bb = prof.get_bounding_box( [xy1,xy2] )
Package: ogs
OpenGeoSys 6OpenGeoSys(OGS) is a scientific open source project for the development of
numerical methods for the simulation of thermo-hydro-mechanical-chemical
(THMC) processes in porous and fractured media. OGS is implemented in C++, it
is object-oriented with an focus on the numerical solution of coupled multi-field
problems (multi-physics). Parallel versions of OGS are available relying on
both MPI and OpenMP concepts. Application areas of OGS are currently CO2
sequestration, geothermal energy, water resources management, hydrology and
waste deposition. OGS is comprised of the THMC-simulator (simply referred to asOGS) and a visualization tool (Data Explorer). OGS is developed by theOpenGeoSys Community.Software developmentGood starting point for users as well as for developers is thedocumentationCheck your code against ourstyleguideHave a look at thesource code documentation for the current master-branch buildorfor the latest releaseLicenseOpenGeoSys is distributed under the Modified BSD License. See theLICENSE.txtfor the license text.
Package: ogsapi
OGS Python LibrarySummaryAn API wrapper written in python for the Online-Go Server's (OGS) REST API and Realtime (SocketIO) APINOTEWhile the project is mostly functional, this is still a work in progress, and is not yet ready for production use.DocumentationThe documentation is built automatically using mkdocs and mkdocstrings.Read the documentation here for more info:https://ogs-python.dakotamarshall.net/InstallPip Packagepython3-mpipinstallogsapiManualInstalling the specific versions inrequirements.txtisREQUIRED, the OGS API does not support newer versions, and these versions of socketio and engineio are tested to be compatible with each other.pip3install-rrequirements.txtIf you install the wrong version by accident, youmustuninstall and re-install.pip3uninstallpython-engineiopython-socketio
pip3install-rrequirements.txtUsagefromogsapi.clientimportOGSClientogs=OGSClient('your_client_id','your_client_secret','your_username','your_password')This will authenticate you to OGS using your API credentials, and connect you to the Realtime API Socket. You can now call the usable functions.Implemented API FunctionsNOTEAll usernames are case sensitiveLook at thedocumentationto see what methods are available underOGSClientandOGSSocket/OGSGameSee thechecklistfor a rough list of what is left to be implemented
Package: ogstools
is a:Python library for streamlined usage ofOpenGeoSysthat aims to enableOpenGeoSysusers to harness the full potential of Python's extensive ecosystem.set of interconnected modules for pre- and postprocessing of simulations withOpenGeoSys,valuable resource that includes documentation, Jupyter notebooks, and workflows for guidance and reference.OverviewWebsite:https://www.opengeosys.orgDocumentation:https://ogs.ogs.xyz/tools/ogstoolsSource code:https://gitlab.opengeosys.org/ogs/tools/ogstoolsContributing:https://ogs.ogs.xyz/tools/ogstools/development/index.htmlBug reports:https://discourse.opengeosys.orgInstallationInstall the latest version of ogstools:pipinstallogstoolsFor further details see theUser Guide.Getting startedFor first steps, please take a look at ourexamples.ContributionPlease report bugs onDiscourseor fork the repository on ourGitLaband create a merge request. We also welcome contributions in the form of merge requests and are here to assist in ensuring that the code passes all quality checks. We recommend starting with theDeveloper Guideas your initial point of reference.You may also contribute bydonatingyour existing code snippets.MotivationTo gain a deeper insight into the rationale behind the development of this Python library, find a comprehensive motivation section availablehere.Related projectsogsogs6pyVTUInterfaceLicenseogstoolsis distributed under the Modified BSD License. See theLICENSE-file for the license text.