Saravanan666/pypi-org huggingface dataset:
Package: oogeso
Offshore Oil and Gas Energy System Operational Optimisation Model (oogeso)Python module for modelling and analysing the energy system of offshore oil and gas fields, with renewable energy and storage integration.Part of theLow Emission Centre(SP5).Getting startedInstall latest Oogeso release from PyPi:pip install oogesoin order to use the plotting functionality you will need to install plotting libraries:pip install matplotlib plotly seabornUser guide and examplesThe online user guide  gives more information about how to
specify input data and run a simulation case.User guideLocal installationPrerequisite:PoetryPre-commitCBC solverClone or download the code and install it as a python package. I.e. navigate to the folder with the MANIFEST.in file and type:Install dependenciesgit clone git@github.com:oogeso/oogeso.gitcd oogesopoetry install --no-root--no-root to not install the package itself, only the dependencies.poetry shellpoetry run pytest testsLocal development in DockerAlternatively you can run and develop the code using docker and the Dockerfile in the root folder.GitHub Actions Pipelines4 pipelines are defined.Build: Building and testing on multiple OS and python versions. Triggered on any push to GitHub.CBC-optimizer CI: Build and test oogeso with the CBC-solver and spesific cbc-tests.Release: Create release based on tags starting on v*.Publish: Publish the package to PyPi when a release is marked as published.ContributeYou are welcome to contribute to the improvement of the code.Use Issues to describe and track needed improvements and bug fixesUse branches for development and pull requests to merge into mainUsePre-commit hooksContactHarald G SvendsenSINTEF Energy Research
Package: oogg
OOGGThis tools aim to be a helper to open files at the GitHub or GitLab page without
going and try to search it in their UI.I made this because I was switching throught a lot of files daily and sometimes
I wanted to see them on GitHub because of the jump to code feature.This tool is mostly useless.UsageThis is a simple tool, all you have to do in order to use it is simply go to
your local repository folder and ran it. For example, let's see it in action
using this own repository.gitclonegit@github.com:r0x0d/oogg.gitcdoogg
ooggLICENSE#2
Hooray!Wehavesuccessfullyopenedyourfileinyourpreferedbrowser.# Resulting URL in your prefered browser: https://github.com/r0x0d/oogg/blob/test-pipe/LICENSE#L2NoteWindows and MacOS are not currently supported. If you would like to see this
tool in different systems, feel free to fork it and open a PR.
Package: oogli
oogliOogli is BeautifulObject Oriented Graphics Library Interface written in PythonMotivation:I was dissatisfied with difficulty in producing easy to read and
understand OpenGL code. This small library helps eliminate some of the
boilerplate inherent within OpenGL’s API. Oogli greatly simplifies the
interface while still providing access to the underlying GLFW3 and
OpenGL API.License:This package is released as Apache 2.0 license.However, at your option, you may apply any OSI approved free software
license you choose provided that you adhere to the free software license
chosen and additionally follow these criteria:list the author’s name of this software as a contributor to your
final productprovide credit to your end user of your product or software without
your end user asking for where you obtained your softwarenotify the author of this software that you are using this softwareIf you believe there can be some benefit in providing your changes
upstream, you’ll submit a change request. While this criteria is
completely optional, please consider not being a dick.Installation:Oogli was designed with GLFW-CFFI in mind and uses the API provided by
GLFW-CFFI. In addition, Oogli uses numpy.Installing via pipInstall viapip install oogli.Installing GLFW-CFFI via pipInstall viapip installglfw-cffi.Installing Numpy via pipInstall viapip install numpy.Installing GLFW3GLFW3 is available for several different platforms:Ubuntu/Debian:sudoapt-getinstall-ylibglfw3-devFedora/Red Hat:sudo yum install-ylibglfw3-devMac OS X with Homebrew:brew install glfw3Windows: There is an installer available64-bit
Windowsor32-bit
WindowsGLFW3 is relatively new, so some older installations of Linux may not
havelibglfwdirectly available. You may check out thetravis.ymlfile within our github repo for more information on setup on older
systems.Usage:Sample Usage:This is the required code to produce a shaded triangle using oogli:import oogli

v_shader = '''
    #version 410
    in vec2 vertices;
    void main () {
        gl_Position = vec4(vertices, 0.0, 1.0);
    }
'''

f_shader = '''
    #version 410
    out vec4 frag_color;
    void main () {
        frag_colour = vec4(0.3, 1.0, 0.3, 1.0);
    }
'''

# Create a program from the shaders
#  Note: This will auto request an OpenGL context of 4.1
program = oogli.Program(v_shader, f_shader)

# Vertices for a 2D Triangle
triangle = [(0.0, 0.5), (-0.5, 0.5), (-0.5, -0.5)]

with oogli.Window('Oogli', 640, 480) as win:
    # Main Loop
    while win.should_run()
        # Render triangle
        program.draw(vertices=triangle)More complex examples can be found within the examples folder on the
github repo.Contributions:Contributions are welcome. When opening a PR, please keep the following
guidelines in mind:Before implementing, please open an issue for discussion.Make sure you have tests for the new logic.Make sure your code passesflake8Add yourself to contributors atREADME.mdand/or your
contributions.ContributorsBrian Bruggeman- Originator
Package: oogway
oogwayoogwayis a simple, yet secure Bitcoin utility library for Python.>>>fromoogwayimportKey>>>>>>key=Key(mnemonic_strength=256,passphrase="bitcoin")>>>>>>key.mnemonic'hungry believe click napkin aerobic make skirt early vibrant suffer trumpet pupil prize ecology bleak citizen absent chief feed skin vast enter this female'>>>>>>key.wif# wif private key'5JnkYopgMsFQtsUkZ3WkmacsBGk3JouYpUNpudHDp6VW3QyyJEr'>>>>>>key.address("Bech32")# Bech32 (segwit) address'bc1qt8felv4tn8a4kzjqle4r5scerwda9pmmaza95xyp22wtnccxhz7snrumvq'>>>>>>key.pubkey("unc")# uncompressed public key'041d5e3b36948035f6cee1d349e02fa3c8cb2f07c1aa3692abfe2699e7693423162a184b8bf58aec320368ddb58ff16705f3ecfed23f8cc080b1225a0e90a74c6c'The library allows you to easily generate Bitcoin keypairs or create, sign and broadcast transactions. It can also do other things such as validate addresses (cryptographically) or safely convert and operate between bitcoin units. oogway also supports multisig.oogway also has a built-in CLI to simplify some tasks:$oogwayvalidate3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy1BWJVUqZKbs6nXbsrh0boyjckqdoKIk5wa[VALID | P2SH] 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2[INVALID] 1BWJVUqZKbs6nXbsrh0boyjckqdoKIk5waInstallation$pipinstalloogwayDocumentationRead the library documentation at6conf.com.The documentation is automatically updated after each commit to the master branch. Every pull request adding or modifying features must contain a documentation update (Markdown).Docs are generated usingVuePress. To run the docs locally, do:$cddocs/$npminstall$npmrundocs:devContributeAdd yourself toauthorsand make a pull request on a new branch. Update the documentation if necessary.Notesoogway is one of many Python Bitcoin libraries. It was heavily inspired byofek/bit. oogway tries to focus on security while remaining simple and accessible.
Package: ooi
# ooi: OpenStack OCCI Interface[![PyPI](https://img.shields.io/pypi/v/ooi.svg)]()ooi is an implementation the Open Grid Forum’s
[Open Cloud Computing Interface (OCCI)](http://www.occi-wg.org)
for [OpenStack](http://www.openstack.org).Currently, it implements the version 1.2 (OCCI 1.2) of the standard.The documentation for OOI is available athttp://ooi.readthedocs.org/en/latestIn the unfortunate event that bugs are discovered, they should
be reported to the bug tracker available at:http://bugs.launchpad.net/ooiDevelopers wishing to work on the ooi project should always base their work on
the latest ooi code, available from the master GIT repository at:https://git.openstack.org/cgit/openstack/ooi
Package: ooipy
OOIPYOOIPY is a python toolbox designed to aid in scientific analysis of Ocean Observatories Initiative (OOI) data. Some data (such as broadband hydrophone data) is not available through the OOI API (M2M). This package is designed to help with the acquiring of datasets from the OOI Raw Data Server. Additionally, tools to analyze the data, such as spectrogram and power spectral density plotting are also provided.For information on usage and complete documentation, go toOOIPY Documentation
Package: ook
Author:Zero PiraeusContact:z@etiol.netookis a simple library to assist with monkeypatching Python methods and
functions on a per-Python-version basis. It provides one decorator,patch,
which conditionally patches callables depending on which version of Python is
running.ExampleAdding thecompress()function to Python 2.6’sitertoolsmodule:import itertools
from ook import patch

# http://docs.python.org/2.7/library/itertools.html#itertools.compress

@patch(itertools, 2.6)
def compress(data, selectors):
    # compress('ABCDEF', [1,0,1,0,1,1]) --> A C E F
    return (d for d, s in itertools.izip(data, selectors) if s)Usagepatchaccepts an arbitrary number of version arguments, in a variety of
formats:@patch(some.module.or.class, 2.7, "2.6.8", (3, 2, 5), 3)
def method_or_function(signature):
    """Do something."""
    pass… as well asminandmaxkeyword arguments:@patch(some.module.or.class, min="2.6.5", max=2.7)
def method_or_function(signature):
    """Do something."""
    pass… which can be combined:@patch(some.module.or.class, "3.3.5", max=3.3)
def method_or_function(signature):
    """Do something."""
    passNote: If you specify both keyword and non-keyword version arguments, the
patch will only take effect if both the explicitly specified versions and the
implied version ranges are satisfied.With no arguments other than the module or class to be patched,patchapplies the patch regardless of Python version:@patch(some.module.or.class)
def method_or_function(signature):
    """Do something, no matter what."""
    passInstallationThis should do the trick:pip install ookCredits / Copyrightookwas (cough) “inspired” by Guido van Rossum’smonkeypatchrecipe.
Thanks, Guido :-)It’s released under the GNU General Public License (version 3 or later), a copy
of which is included with this distribution in the fileCOPYING.
Package: oold
ooldLinked data class python package for object oriented linked data (OOLD). This package aims to implemment this functionality independent from theosw-pythonpackage.ConceptIllustrative example how the object orient linked data (OOLD) package provides an abstract knowledge graph (KG) interface. First (line 3) primary schemas (Foo) and their dependencies (Bar, Baz) are loaded from the KG and transformed into python dataclasses. Instantiation of foo is handled by loading the respective JSON(-LD) document from the KG and utilizing the type relation to the corresponding schema and dataclass (line 5). Because bar is not a dependent subobject of foo it is loaded on-demand on first access of the corresponding class attribute of foo (foo.bar in line 7), while id as dependent literal is loaded immediately in the same operation. In line 9 baz is constructed by an existing controller class subclassing Foo and finally stored as a new entity in the KG in line 11.Devgit clone https://github.com/OpenSemanticWorld/oold-python
pip install -e .[dev]NoteThis project has been set up using PyScaffold 4.5. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: ooldap
Using the python-ldap library: http://www.python-ldap.org/Provides the foundation for manipulating ldaptaking a highly object oriented approach.Use the provided object types, override them, or create your own.Add the three following environmental variables:- LDAP_CONNECTION_URI- LDAP_CONNECTION_DN- LDAP_CONNECTION_PASSWORDHere is an example:```pythonimport osos.environ['LDAP_CONNECTION_URI'] = 'example.com'os.environ['LDAP_CONNECTION_DN'] = 'CN=<username>,OU=People,DC=EXAMPLE,DC=COM'os.environ['LDAP_CONNECTION_PASSWORD'] = '<password>'from ooldap.foundation import LDAPObjectldapobject = LDAPObject('CN=johndoe,OU=People,DC=EXAMPLE,DC=COM')ldapobject.dataldapobject.descriptionldapobject.get_attribute('mail')```
Package: oom
Out OfManaMemoryProvides a function that keeps an eye on your RAM and stops executing of the process if you are running out of memory.InstallationTo install oom enter this in your terminal.pipinstalloomUsageExample 1: The simplestfromoomimportexit_on_out_of_ramone_gigabyte=1<<30exit_on_out_of_ram(one_gigabyte)# explode your RAMextremely_big_number=1<<9999999_=[iforiinrange(extremely_big_number)]Example 2: Fullfromoomimportexit_on_out_of_ramone_gigabyte=1<<30exit_on_out_of_ram(terminate_on=one_gigabyte,warn_on=2*one_gigabyte,sleep_time=1,notify_about_using=True)# explode your RAMextremely_big_number=1<<9999999_=[iforiinrange(extremely_big_number)]Example 3: Script wrapperpython3-moom-t1024examples/for_example_3.py
Package: oomclient
OomStore Client (Python)This library provides an easy-to-use async python client forOomStore, a
lightweight and fast feature store powered by go.It's built on top ofoomstore client in rustviapyo3, the rust bindings for python.InstallThis package requires Python 3.7+. MacOS and Linux are supported.pip3installoomclientExampleimportasynciofromoomclientimportClientasyncdefmain():client=awaitClient.with_embedded_oomagent()features=["account.state","transaction_stats.transaction_count_7d"]result=awaitclient.online_get("48",features)print(result)asyncio.run(main())More examples can be found in theexamplesdirectory.DevelopmentInstall maturinpip3installmaturinInit venvpython-mvenv.envsource.env/bin/activateBuild and installmaturindevelopThen you can enter into the python interpreter or run the example scripts to test the library.There are also somecargo-maketasks defined inMakefile.toml.
They can be executed bycargo make <job name>.LicenseApache-2.0
Package: oomf
Obvious Open Mining Format (OOMF)The Open Mining Format (OMF) is an attempt at standardizing the way mining (and more general geoscience data) is serialized and managed.
Goals shared ont heOMF read the docs page:The goal of Open Mining Format is to standardize data formats across the mining community and promote collaborationThe goal of the API library is to provide a well-documented, object-based interface for serializing OMF filesOMF is based around thepropertiesproject developed by Seequent, and naturally Seequent is one of the biggest supporters of OMF.This is a fantastic idea. Sharing data, geologic models, variograms etc across commercial software platforms and open source tools can be challenging. The OMF library Python API does not lack functionality but it is simply diffcult to use. OOMF is an attempt to provide a wrapper to the OMF API and making this format a bit more approachable.If you find yourself using this little tool please feel free to log any issues, contribute etc.To install:pip install oomfA short blog post with a few example:here
Package: oommfc
oommfcMarijan Beg1,2,Martin Lang2,Ryan A. Pepper3,Thomas Kluyver4,Samuel Holt2,5,Swapneel Amit Pathak2,6, andHans Fangohr2,6,71Department of Earth Science and Engineering, Imperial College London, London SW7 2AZ, UK2Faculty of Engineering and Physical Sciences, University of Southampton, Southampton SO17 1BJ, UK3Research Software Group, University of Birmingham, Birmingham B15 2TT, UK4European XFEL GmbH, Holzkoppel 4, 22869 Schenefeld, Germany5Department of Physics, University of Warwick, Coventry CV4 7AL, UK6Max Planck Institute for the Structure and Dynamics of Matter, Luruper Chaussee 149, 22761 Hamburg, Germany7Center for Free-Electron Laser Science, Luruper Chaussee 149, 22761 Hamburg, GermanyDescriptionBadgeTestsLintingReleasesCoverageDocumentationYouTubeBinderPlatformsDownloadsLicenseDOIAboutoommfcis a Python package, integrated with Jupyter, providing:An Object Oriented MicroMagnetic FrameworkOOMMFcalculator for computational magnetism models defined withmicromagneticmodel.It is available on Windows, MacOS, and Linux. It requires Python 3.8+.DocumentationAPIs and tutorials are available in the documentation. To access the documentation, use the badge in the table above.Installation, testing, and upgradeWe recommend installation usingcondapackage manager. Instructions can be found in thedocumentation.BinderThis package can be used in the cloud via Binder. To access Binder, use the badge in the table above.YouTubeYouTube video tutorials are available on theUbermag channel.SupportIf you require support, have questions, want to report a bug, or want to suggest an improvement, please raise an issue inubermag/helprepository.ContributionsAll contributions are welcome, however small they are. If you would like to contribute, please fork the repository and create a pull request. If you are not sure how to contribute, please contact us by raising an issue inubermag/helprepository, and we are going to help you get started and assist you on the way.Contributors:Mark VousdenSergii MamedovRebecca CareyMarc-Antonio BisottiVanessa NehrujiLicenseLicensed under the BSD 3-Clause "New" or "Revised" License. For details, please refer to theLICENSEfile.How to citeM. Beg, M. Lang, and H. Fangohr. Ubermag: Towards more effective micromagnetic workflows.IEEE Transactions on Magnetics58, 7300205(2022).M. Beg, R. A. Pepper, and H. Fangohr. User interfaces for computational science: A domain specific language for OOMMF embedded in Python.AIP Advances7, 56025(2017).Marijan Beg, Martin Lang, Ryan A. Pepper, Thomas Kluyver, Samuel Holt, Swapneel Amit Pathak, and Hans Fangohr. oommfc: OOMMF calculator. DOI:10.5281/zenodo.3539461(2023).AcknowledgementsOpenDreamKit– Horizon 2020 European Research Infrastructure project (676541)EPSRC Programme Grant onSkyrmionics(EP/N032128/1)
Package: oomnitza-rule-checker
Package contains reusable logic to check Oomnitza begin criteria for objects.Thecheck_ruleshandler used to check that the given document corresponds
to the given rules, e.g. matches them.given_result=check_rules({"rules":[],"groupOp":"and","groups":[{"groupOp":"and","rules":[{"op":"cn","data":"CC1UH","field":"ASSETS.serial_number",}],"groups":[],},],},document={"equipment_id":"ad2c2ab54adb481c8436d6238838813a","assigned_to":"2e84e8e99431411a84f2339bd02cacb0","serial_number":"C02CC1UHMD6T1","model":"MacBookPro16,1",},changed_values=None,object_type="dontcare",)assertgiven_result,"serial number matches"Thecheck_rule_by_ophandler used to check that the given values satisfy
the specified operator, e.g. equal, begins_with, less_or_equal, etc.assertcheck_rule_by_op(Op.LESS_OR_EQUAL,"1","2")assertcheck_rule_by_op(Op.HAS_BEEN_CHANGED,"before","after")assertnotcheck_rule_by_op(Op.ENDS_WITH,"aaa","b")DevelopmentInstall package with or without test dependencies.python3-mvenv.venvsource.venv/bin/activatepipinstalloomnitza_rule_checkerpipinstall-e'.[tests]'Feel free to write additional tests to cover the new changes and run test
suite.pytestDistributionBuild and upload the package to the PyPi repository.pythonsetup.pysdistregisterupload
Package: oomnitza-ssrf-protection
Oomnitza SSRF ProtectionPackage contains reusable logic to apply Oomnitza SSRF protection.OverviewThe SSRF Protector library is a Python library designed to protect
against Server-Side Request Forgery (SSRF) attacks.
SecuritySSRFProtection class provides a check_url method that allows you to validate URLs
and ensure they do not point to sensitive or internal resources.InstallationYou can install the SSRF Protector library using pip:pip install oomnitza-ssrf-protectionUsageTo use the SSRF Protector library, follow the steps below:Import the AsyncSecuritySSRFProtection class from the library and
call the check_url method with the URL you want to validate:url="https://example.com"result=awaitAsyncSecuritySSRFProtection().check_url(url)It's also possible to use SyncSecuritySSRFProtection as synchronous versionurl="https://example.com"result=SyncSecuritySSRFProtection().check_url(url)It's also possible to pass whitelist of URLsurl_to_check="https://example.com"allowed_urls=["http://127.0.0.1","http://169.254.1.194"]result=awaitAsyncSecuritySSRFProtection(allowed_urls=allowed_urls).check_url(url_to_check)The check_url method will raise SSRFProtectionError if the URL is potentially
dangerous (e.g., pointing to internal resources).DevelopmentInstall package with or without test dependencies.python3-mvenv.venvsource.venv/bin/activate
pipinstalloomnitza-ssrf-protection
pipinstall-e'.[tests]'Feel free to write additional tests to cover the new changes and run test
suite.DistributionBuild and upload the package to the PyPi repository.Upload package to testpypipython3-mbuild
python3-mtwineupload--repositorytestpypidist/*Upload package to pypipython3-mbuild
python3-mtwineuploaddist/*
Package: oom-notifier
oom-notifieroom-notifier is a program and a library used to track oom scores for Linux.Descriptionoom-notifier gets the oom score of each process by getting the/proc/<PID>/oom_scorevalue. As a program, it tracks
the oom scores of each process (by default) every 5 seconds and the threshold is set to 1000. If you want to change these
values, refer to the configuration header below.But what is anoom_score?Anoom_scoreis basically a score assigned to a process by the Linux kernel which is the likelihood that a process will
be terminated in case a computer is out of memory. If a process oom score is high, it means it will be one of the first processes to be killed in case
of low memory resources. If a process oom score is low, it means it will be the least likely to be killed in case of low memory
resources.Getting StartedDependenciesAny Linux-based distributionPython>=3.6pipInstallingInstalloom-notifierusing pip.$pipinstalloom-notifierUsageAs a library:importoom_notifieroom=oom_notifier.OOM()# to get all pids and oom scores of each process, use this:all_oom_scores=oom.info# this is a dictionary# to get the maximum oom score of all processes, use this:max_oom_score=oom.max# this is also a dictionaryAs a program:$oom-notifier# launches oom-notifier in the backgroundConfigurationIn~/.config/oom-notifier/config.ini:[Main]; this sets the threshold to where oom-notifier will trigger a notification if it passes this valuethreshold=<NUMBER_HERE>; this sets the time where oom-notifier will wait to refresh the oom-scoreswait_time=<NUMBER_HERE>Helpoom-notifieronly displays in the command lineThis usually means that the dbus can't contact the notification service (as, internally,dbus-pythonraises an exception incase of failure).
AFAIK, most of the time the reason this happens is because the notification service isn't installed.In XFCE:Check ifxfce4-notifydis running in the background.$pscax|grepxfce4-notifydif there's no output, it means xfce4-notifyd isn't running and means it isn't started or isn't installed. If it isn't installed,
you can install using your distribution's package manager.LicenseThis project is licensed under theGNU GPLv3License - see theLICENSEfile for details
Package: oompa
OompaOompa is a tool to build Docker images with an easy to read configuration.
It uses Dhall configuration language and Ansible Galaxy roles to build and configure containers.InstallationThe latest stable versionis available on PyPI. Either addoompato yourrequirements.txtfile or install with pip:pip install oompaUse OompaUse docs to come soon.Get InvolvedContributing instructions to come soon.Release InfoOompa is still in Alpha / development. Bugs are being worked out, new features are being added, and APIs are rapidly changing.LicenseMIT License