Saravanan666/pypi-org huggingface dataset:
Package: oom-reap-me-first
# What is this?If you have something you are working on that may accidentally consume
all your RAM (read: are a data scientist), you probably want your process
OOM reaped before the other ones. What you absolutely do not want is
something like process that may fail in a bad state getting reaped instead.If you install this package with,`bash pip install oom_reap_me_first `then do,`python import oom_reap_me_first.auto_enable # noqa # pylint:disable=unused-import`at the top of your, say, Jupyter notebook, the importing processesoom_score_adjwill be set to1000, which means it will (probably?)
get reaped first.This works particularly well if you [disable swap](https://graspingtech.com/disable-swap-ubuntu/), so you don’t end up
in the dreaded situation of your REPL taking all the RAM then hitting
disk so hard that you can’t eveni-iit.# What else should I know?Theoom_score_adjthat controls what gets preferentially gets killed
can be configured automatically forsystemdservices. If you have something
that youreallydon’t want to get killed, you should put,` oom score-1000`in the service unit definition. Alternatively, if you are not using python
you can use thechoom(change-OOM) command`bash choom-pPID-nnumber `See the [man page](https://man7.org/linux/man-pages/man1/choom.1.html) here.However, I am lazy and my solution suits me better.
Package: ooniprobe
OONI, the Open Observatory of Network Interference, is a global observation
network which aims is to collect high quality data using open methodologies,
using Free and Open Source Software (FL/OSS) to share observations and data
about the various types, methods, and amounts of network tampering in the
world.Read this before running ooniprobe!Running ooniprobe is a potentially risky activity. This greatly depends on the
jurisdiction in which you are in and which test you are running. It is
technically possible for a person observing your internet connection to be
aware of the fact that you are running ooniprobe. This means that if running
network measurement tests is something considered to be illegal in your country
then you could be spotted.Furthermore, ooniprobe takes no precautions to protect the install target machine
from forensics analysis. If the fact that you have installed or used ooni
probe is a liability for you, please be aware of this risk.Setup ooniprobeTo install ooniprobe you will need the following dependencies:pythonpython-devpython-setuptoolsbuild-essentiallibdumbnet1python-dumbnetpython-libpcaptorlibgeoip-devlibpcap0.8-devlibssl-devlibffi-devlibdumbnet-devOn debian based systems this can generally be done by running:sudoapt-getinstall-ybuild-essentiallibdumbnet-devlibpcap-devlibgeoip-devlibffi-devpython-devpython-pipWhen you got them run:sudopipinstallooniprobeUsing ooniprobeIt is recommended that you start the ooniprobe-agent system daemon that will
expose a localhost only Web UI and automatically run tests for you.This can be done with:ooniprobe-agentstartThen connect to the local web interface onhttp://127.0.0.1:8842/Have fun!
Package: ooo-dev-odh
OooDev CLI HelpOOO Development Tools(OooDev) is a framework for working with the LibeOffice API in Python.This package provides a command line interface (CLI) for OooDev.UsageSearch for a phrase in the CLI help. The search will display matches.
Entering a number to that match followed by enter will open the help link in you default browser.$odhhlp-s"Write.Append"Chooseanoption(default1):[0],Cancel(orpressqfollowedbyenter)[1],ooodev.office.write.Write.append-method-py[2],ooodev.office.write.Write.append_date_time-method-py[3],ooodev.office.write.Write.append_line-method-py[4],ooodev.office.write.Write.append_para-method-pyThis project is templated frompython-sphinx-cli-help. See thewiki searchfor extended searching options.
Package: oooenv
OOOENVThis project is strictly for LibreOffice python projects that need to set UNO environment.A project asOOO Development Toolswould use this projectSee also:LibreOffice Virtual Environment GuidesOOO Development Tools - Develop DocsLibreOffice Python Script Modern Code Editor ExamplesInstallationoooenvPyPIpipinstalloooenvUsageView command optionsoooenv-hLinux/MacIn Linux and Mac all that is needed to run a project that requires LibreOffice UNO
is to link the UNO files into virtual environment.To add UNO links to virtual environment run command:oooenvcmd-link-aTo remove UNO links from virtual environment run command:oooenvcmd-link-rWindowsWindows python projects cannot use linking to UNO Files.In Windows the virtual environment configuration file is manipulated.The Follow command toggles between original configuration and UNO environment configuration.oooenvenv-tTo update the configuration to match the installed version of LibreOffice's python.This command should not be run untiloooenv env -thas be run at least once.oooenvupdate--updateIf virtual environment is managed by Poetry then it will be necessary to toggle into original config before runningpoetry update.When updates are done just run command again to toggle back to UNO environment configuration.Environment VariablesSpecial environment variables can be set. These are completely optional.
This can be useful for docker containers.OOOENV_LO_UNO_PATHThe path whereuno.pyis located.OOOENV_LO_PROGRAM_PATHThe path to LibreOffice such asC:\Program Files\LibreOffice\programor/usr/lib/libreoffice/program.OOOENV_LO_PROGRAM_PATHThe path to LibreOffice installed directory, such asC:\Program Files\LibreOfficeor/usr/lib/libreoffice.OOOENV_LO_PY_EXEThe path to LibreOffice Python. On Windows this is usuallyC:\Program Files\LibreOffice\program\python.exeand Linux is usually the virtual environment's python.OOOENV_VIRTUAL_ENVThe path containing the virtual environment for your project. Usually this isvenvor.venv.`OOOENV_SITE_PACKAGESThe site packages directory of the virtual environment for your project.
Package: ooo-macro-exchange
Routines and CLI to facilitate injection/extraction of OpenOffice.org macros.Works by connecting to a live instance of OOo.It does not appear to be possible to use such a system to access Python macros
in an OpenOffice document.  This module only deals with Basic macros.There has also been some effort made to “Pythonify” the uno interface,
for example, by adding sequence and mapping proxy classes
for some of the uno container interfaces.DependenciesYou will need to have the py-uno bridge set up.On Debian-ish systems like Ubuntu and Linux Mint,
this can generally be installed via$ sudo aptitude install python-unoInstallationInstallation can be done viaPyPI,
or by fetching and installing the source code from thegithub repo.EnvironmentTheunoPython module will normally be imported without problems
on systems which have thepython-unomodule properly installed.If theunoPython module cannot be imported,ooo-macro-exchangewill try to add it to the path.If the environment variablePY_UNO_PATHis defined,ooo-macro-exchangewill add it to the python path.This can also be accomplished by settingPYTHONPATH.IfPY_UNO_PATHis unset,ooo-macro-exchangewill try the path/usr/lib/openoffice/basis3.2/program/.UsageBasic functions arepull: output a module’s code or save it to a filepush: replace a module’s code with lines from a file or stdininvoke: run a macro.Theoomaxscript provides command-line access to these actions.  E.G.:$ oomax pull 'Document 1' Standard.Module1
sub Main()
    ' Content of main macro
end sub

sub AnotherMacro()
    ' Content of some other macro
end subNote thatoomax pushwill not save the document
unless the-soption is passed.
Instead, it will mark both the document and its libraries as modified.
This will cause the “Save” icon on the main document toolbar to activate.Additional options can be discovered by runningoomax-h.pull,push, andinvokeare also available as methods
of the classoomax.Exchange.Relationship to other modulesThe structure of the code is pretty similar
to that used byopenoffice-python.
There are vague plans to integrate this module’s functionality with it.The code in this module was originally derived from thisforum post.Licenseooo-macro-exchangeis licensed under theFreeBSD License.
See the file COPYING for details.
Package: oopdb
OOPDBOOPDB - OOP wrapper for work with database. For now it's based on sqlite3 python lib.Supported database featuresData typesInteger (DataTypes.INTEGER) - simple type for storing integer numbersText (DataTypes.TEXT) - simple type for storing text/strings with a maximum length of 65'535 bytesRows stylingDictionary - result on fetch will be list of dictionaries with keys equals to column names that was used in queryTuple - result on fetch will be list of tuples with value order equals to column names order that was used in queryExpressionEqual - checks that value in table with given column name matches some given valueGreater than - checks that value in table with given column name bigger than some given valueLess than - checks that value in table with given column name less than some given valueGreater than or equal - checks that value in table with given column name bigger than some given value or equalLess than or equal - checks that value in table with given column name less than some given value or equalNot equal - checks that value in table with given column name doesn't match some given valueLike - checks that value in table with given column name matches some given patternBetween - checks that value in table with given column name matches some given intervalIn - checks that value in table with given column name consists in the given list of valuesOr - boolean operation that concatenates some other two expressionsAnd - boolean operation that concatenates some other two expressionsNot - negates some expressionColumn configurationsColumn config - base abstraction for describing column configuration using following informationNameNullabilityType - type from DataTypesPrimary key - abstraction based on column config abstraction using following additional informationAutoincrementForeign key - abstraction based on column config abstraction using following additional informationReference table nameReference column nameCommandsCreate table - creates table with the given name and list of column configurationsSelect - select data from the given table and list of given column names in the tableDistinct - optional configuration for select command to retrieve unique valuesTable names - get all table names that are exist in databaseColumn names - get all column names that are exist in the table with the given table nameInsert into - append row values to the table with the given name and list of column namesSelect count - select row count from the table with the given nameDistinct - optional configuration for select count command to retrieve count of the unique column valuesInner join - merges two tables with the given table names and column namesOrder by - sort result by the given lists of column names and orders for each columnUpdate - updates the table with the given name by the given lists of column names and new values for that columnsWhere - adds some condition based on Expression abstraction to the database queriesDelete - deletes rows using conditionsLast row id - returns the latest row's id that was inserted to the given table
Package: oop-event-bus
IntroThis package implements an event bus based on the Mediator pattern.
It is a powerful tool to avoid coupling and make components work together
without any knowledge about each other (loose coupling). It helps:to avoid unneeded dependencies;to make testing easier;to extend the functionality by adding (not changing) the units;to reduce the tech debt.Installationpip install oop-event-busUsageCreate an event class with all the details you needclassUserSignedIn(Event):def__init__(self,email:Email):self.email=emailCreate and register event listenersclassLogSignedInUsersListener(TypedEventListener[UserSignedIn]):asyncdef__call__(self,event:UserSignedIn):...event_bus=EventBus()event_bus.listen(LogSignedInUsersListener())Dispatch an eventawaitevent_bus.dispatch(UserSignedIn(user.email))Why?Lets imagine the following code:classSomethingService:def__init__(self,logger:Logger,mailer:Mailer,marketing:MarketingService):self.logger=loggerself.mailer=mailerself.marketing=marketingasyncdefdo_something(self):self._real()self._business()self._logic()#side effectsself.logger.info("We did something")awaitself.mailer.send_email("Welcome email")#unrelated code that should be executed when we do somethingawaitself.marketing.increase_marketing_counter()We have SRP breaks, and a number of side effects unrelated to the business problem. This code is hard to test, it
couplesSomethingServicewith the concrete implementations of logging, mailing and marketing services.Withoop-event-busyou can move all side effects and unrelated code out.
Also, you will make it possible to extend functionality later without changing the code of this method.fromoop_busimportEvent,EventBusclassWeDidSomething(Event):...classSomethingService:def__init__(self,event_bus:EventBus):self.event_bus=event_busasyncdefdo_something(self):real()business()logic()awaitself.event_bus.dispatch(WeDidSomething())You can see that every piece of non-related code was replaced with the singleevent_buscall here.
Package: oopmultilang
OOPMultilangA Python package that supports multi-language conversion of the object-oriented paradigm.💿ObtainmentThe source code is currently hosted on Github at:https://github.com/leoweyr/Python-OOPMultilangBinary installers for the latest released version are available at thePython Package Index (PyPI).# PyPIpipinstalloopmultilang🔗DependenciesEasierfile - An easier-to-use Python package that object-oriented encapsulates Python traditional built-in file operations⚖️LicenseMIT📗DocumentationThe documentation is hosted on Github repository:https://github.com/leoweyr/Python-OOPMultilang/blob/main/doc
Package: oopnet
OOPNETOOPNET (Object-Oriented Pipe Network Analyzer) is a Python package for modelling and simulating hydraulic water distribution system models based on the modelling software EPANET.Main functionalities:Reading EPANET input files (.inp)Modifying model components, settings, controls and rulesSimulating models using EPANET with results as pandas data objectsPlotting models using matplotlibA detailed documentation is available underhttps://oopnet.readthedocs.io.Warning!Be warned, that OOPNET is still changing a lot. Until it's marked as 1.0.0, you should assume that it is unstable and act accordingly. We are trying to avoid breaking changes but they can and will occur!InstallationOOPNET uses features only available in the newer Python version, which is why Python >= 3.9 is needed along with
several Python package dependencies.OOPNET is available on PyPI and can be easily installed together with its dependencies usingpip:pipinstalloopnetAlternatively, you can install OOPNET from its repository:pipinstallgit+https://github.com/oopnet/oopnet.gitDependenciesOOPNET requires the following Python packages:networkxnumpypandasxarraymatplotlibbokehOn Linux and macOS, EPANET has to be installed as well and has to be added to thepathenvironment variable. Windows users don't have to have EPANET installed.Basic UsageTo use OOPNET, you first have to import it in your script:importoopnetasonIn OOPNET, everything is about theNetwork. If you want to start with a new, empty Network, type the following:network=on.Network()If you want to read an existing EPANET model, you canreadit as an input-file:filename="network.inp"network=on.Network.read(filename)To simulate the model, you can use the Network`srunmethod:report=network.run()If you want to create a basic Network plot, you can use itsplotmethod:network.plot()LicenseOOPNET is available under aMIT License.ContributingIf you want to contribute, please check out ourCode of Conductand ourContribution Guide. Looking forward to your pull request or issue!CitingIf you publish work based on OOPNET, we appreciate a citation of the following reference:Steffelbauer, D., Fuchs-Hanusch, D., 2015. OOPNET: an object-oriented EPANET in Python. Procedia Eng. 119, 710e718.https://doi.org/10.1016/j.proeng.2015.08.924.
Package: oops-all-itertools
Python’smore-itertoolsis a fantastic compliment toitertoolsbut it’s
inconvenient to have to constantly look up which itertool is in which library.
Oops All Itertools heaps them together into a loose pile in a single namespace.Inspired bymore-itertools issue 681Code:https://github.com/lonnen/oops-all-itertoolsIssues:https://github.com/lonnen/oops-all-itertools/issuesReleases:https://pypi.org/project/oops_all_itertools/#historyLicense:MIT; See LICENSEInstallTo get started, install the library withpip:$pipinstalloops-all-itertoolsUsage>>>fromoops_all_itertoolsimportchain,chunked>>>list(chain.from_iterable(chunked(range(6),3)))[0,1,2,3,4,5]For the full list of functions, see theitertools API documentationand themore-itertools API documentation.
Package: oops_celery
Integration so that failed celery tasks trigger Oopses.Depedenciespython-oops
celeryTo run the tests you also need:python-testtoolsUseIn your celery worker process run:from oops_celery import setup_oops_reportersetup_oops_reporter(config)whereconfigis theoops.Configobject you wish to use.Running TestsInstalltestrepositoryandpython-subunitand runtestr init
testr runor just runpython -m testtools.run oops_celery.tests.test_suiteCopyright (c) 2012, Canonical LtdThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, version 3 only.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.You should have received a copy of the GNU Lesser General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
GNU Lesser General Public License version 3 (see the file LICENSE).
Package: oopschool
Python OOP+ วิธีสร้าง Library เป็นของตัวเอง+ อัพโหลด Package ไปยัง
PyPI.orgโปรแกรมนี้ลุงใช้สำหรับสอนการเขียนโปรแกรมแบบ OOP
สามารถดูตัวอย่างคลิปวิดีโอที่สอนได้ใน:https://youtu.be/1egtTXUJ3-4วิธีติดตั้งเปิด CMD / Terminalpipinstalloopschoolวิธีใช้งานแพ็คเพจนี้เปิด IDLE ขึ้นมาแล้วพิมพ์…fromoopschoolimportStudent,Tesla,SpecialStudent,Teacherallstudent=[]teacher1=Teacher('Ada Lovelace')teacher2=Teacher('Bill Gates')print(teacher1.students)# Day 1print('-----Day 1----')st1=Student('Albert','Einstein')allstudent.append(st1)#สมัครเสร็จเก็บไว้ในลิสต์นักเรียนทันทีteacher2.AddStudent(st1)print(st1.fullname)# Day 2print('-----Day 2----')st2=Student('Steve','Jobs')allstudent.append(st2)teacher2.AddStudent(st2)print(st2.fullname)# Day 3print('-----Day 3----')foriinrange(3):st1.Coding()st2.Coding()st1.ShowEXP()st2.ShowEXP()# Day 4print('-----Day 4----')stp1=SpecialStudent('Thomas','Edison','Hitler')allstudent.append(stp1)teacher1.AddStudent(stp1)print(stp1.fullname)print('คุณครูครับ ขอคะแนนฟรีสัก 20 คะแนนได้ไหม')stp1.exp=20# แก้ไขค่าในคลาสได้stp1.Coding()stp1.ShowEXP()# Day 5print('-----Day 5----')print('นักเรียนกลับบ้านยังไงจ๊ะ?')print(allstudent)forstinallstudent:print('ผม:{}กลับบ้านด้วย{}ครับ'.format(st.name,st.vehicle))ifisinstance(st,SpecialStudent):st.vehicle.SelfDriving(st)# Day 6print('-----Day 6----')teacher1.CheckStudent()teacher2.CheckStudent()print('รวมพลังของนักเรียน 2 คน ',st1+st2)พัฒนาโดย: ลุงวิศวกร สอนคำนวณ FB:https://www.facebook.com/UncleEngineerYouTube:https://www.youtube.com/UncleEngineer
Package: oopschool1235
This Program is for my class about OOPDownloadOpen CMD / TerminalpipinstallOOP_school1235How to usefromoopschoolimport*allstudent=[]teacher1=Teacher('Ada')teacher2=Teacher('Bill Gates')print(teacher1.students)# Day 1print('--- Day 1 ---')st1=Student('PonAek','JanOCha')allstudent.append(st1)# Register Finished then Save to List! Immediatelyprint(st1.fullname)teacher2.AddStudent(st1)# Day 2print('--- Day 2 ---')st2=Student('steve','Jobs')allstudent.append(st2)print(st2.fullname)teacher2.AddStudent(st2)# Day 3print('--- Day 3 ---')foriinrange(3):st1.Coding()st2.Coding()st1.ShowExp()st2.ShowExp()# Day 4print('--- Day 4 ---')stp1=SpecialStudent('Def','Editor','Pychoom')allstudent.append(stp1)print(stp1.fullname)print('Teacher, Can I take free some 20 exp')stp1.exp=20# Can edit values in Classstp1.Coding()stp1.ShowExp()teacher1.AddStudent(stp1)# Day 5print('--- Day 5 ---')print('Student How can you back to home?')print(allstudent)forstinallstudent:print(f'Me,{st.name}Back to home by{st.vehicle}.')ifisinstance(st,SpecialStudent):st.vehicle.SelfDriving(st)# Day 6print('--- Day 6 ---')teacher1.CheckStudent()teacher2.CheckStudent()print('All Scores of Two Studet',st1+st2)Develop By Ryu
Package: oops-datedir2amqp
Copyright (c) 2011, Canonical LtdThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.The oops_datedir2amqp package provides a script that will retransmit OOPS
reports (http://pypi.python.org/pypi/oops) stored in a datedir repo over amqp,
cleaning up the repo as it goes.DependenciesPython 2.6+oops_datedir_repooops_amqpTesting Dependenciesrabbitfixture (http://pypi.python.org/pypi/rabbitfixture)testresources (http://pypi.python.org/pypi/testresources)testtools (http://pypi.python.org/pypi/testtools)UsageInstall the package in a virtualenv (or similar):$ virtualenv oops-datedir2amqp
$ oops-datedir2amqp/bin/pip install oops-datedir2amqpRun the script:$ oops-datedir2amqp/bin/datedir2amqp \
  --host XX --username XX --password XX --vhost XX --exchange XX --repo XXNote that the repo should be the same path you are supplying to your
DateDirRepo in whatever process is creating OOPSes.A common use for this setup is as a fallback: in your application report to
AMQP directly, with a DateDirRepo configured as fallback, then use datedir2amqp
to pickup and respool any OOPS reports that were generated while your AMQP
server is unavailable.DevelopmentUpstream development takes place athttps://launchpad.net/python-oops-datedir2amqp.To run the tests, usetox.