Saravanan666/pypi-org huggingface dataset:
Package: oops_datedir_repo
Copyright (c) 2011, 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).This is a component of the python-oops project:https://launchpad.net/python-oops. An OOPS report is a report
about something going wrong in a piece of software… thus, an ‘oops’ :)This package provides disk storage, management, and a serialisation format for
OOPSes stored in the repository. Programs or services that are generating OOPS
reports need this package or other similar ones, if they want to persist the
reports.DependenciesPython 2.6+The oops package (https://launchpad.net/python-oopsor ‘oops’ on pypi).Testing Dependenciesfixtures (http://pypi.python.org/pypi/fixtures)subunit (http://pypi.python.org/pypi/python-subunit) (optional)testtools (http://pypi.python.org/pypi/testtools)Usageoops_datedir_repo is an extension package for the oops package.The DateDirRepo class provides an OOPS publisher (DateDirRepo.publish)
which will write OOPSes into the repository.Retrieving OOPSes can be done by using the low level serializer_rfc822
functions : an OOPS report can be written to a disk file via the
serializer_rfc822.write() function, and read via the matching read() function.Typical usage:>>> config = oops.Config()
>>> with fixtures.TempDir() as tempdir:
...    repo = oops_datedir_repo.DateDirRepo('/tmp/demo')
...    config.publishers.append(repo.publish)
...    ids = config.publish({'oops': '!!!'})For more information see the oops package documentation or the api docs.InstallationEither run setup.py in an environment with all the dependencies available, or
add the working directory to your PYTHONPATH.DevelopmentUpstream development takes place athttps://launchpad.net/python-oops-datedir-repo.
To setup a working area for development, if the dependencies are not
immediately available, you can use ./bootstrap.py to create bin/buildout, then
bin/py to get a python interpreter with the dependencies available.To run the tests use the runner of your choice, the test suite is
oops_datedir_repo.tests.test_suite.For instance:$ bin/py -m testtools.run oops_datedir_repo.tests.test_suiteIf you have testrepository you can run the tests with that:$ testr run
Package: oops_timeline
Copyright (c) 2010, 2011, 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/>.The oops_timeline package provides integration glue between timeline objects
(http://pypi.python.org/pypi/timeline) and the oops error reporting system
(http://pypi.python.org/pypi/oops).DependenciesPython 2.6+oops (http://pypi.python.org/pypi/oops)timeline (http://pypi.python.org/pypi/timeline)Testing Dependenciessubunit (http://pypi.python.org/pypi/python-subunit) (optional)testtools (http://pypi.python.org/pypi/testtools)Usageoops_timeline provides an oops on_create hook to extract timeline data from
oops_context[‘timeline’] and inject it into the oops report as primitive data.Setup your configuration:>>> from oops import Config
>>> config = Config()Note that you will probably want at least one publisher, or your reports will
be discarded.Add in the timneline hook to the config:>>> oops_timeline.install_hooks(config)This is a convenience function in case additional hooks are needed in future.For more information see pydoc oops_timeline.InstallationEither run setup.py in an environment with all the dependencies available, or
add the working directory to your PYTHONPATH.DevelopmentUpstream development takes place athttps://launchpad.net/python-oops-timeline.
To setup a working area for development, if the dependencies are not
immediately available, you can use ./bootstrap.py to create bin/buildout, then
bin/py to get a python interpreter with the dependencies available.To run the tests use the runner of your choice, the test suite is
oops.tests.test_suite.For instance:$ bin/py -m testtools.run oops_timeline.tests.test_suite
Package: oop-stpprofile
PyPi:https://pypi.org/project/oop_stpprofile/วิธีติดตั้งเปิด CMD / Terminalpipinstalloop_stpprofileวิธีใช้งานแพ็คเพจนี้เปิด IDLE ขึ้นมาแล้วพิมพ์…from oop_stpprofile.Python_oop import Profilemy = Profile(“Suntipap”) my.company = “ublgroup” my.hobby =
[“Running”,“Python Programming”,“Game”] print(my.name) my.show_email()
my.show_hobby() print(“————”)friend = Profile(“Sudchaya”) print(friend.name) friend.show_email()
my.show_myart()#help(my)
Package: oopwaiywaiy
This programing is only example for python OOP learningวิธีติดตั้ง เปิด CMD / Terminalpip install oopwaiywaiyวิธีใช้ [STEP 1]เปิด IDLE ขึ้นมาแล้วพิมพ์…from oopwaiywaiy.pythonOOP import Student,Tesla,SpecialStudent,Teacher
#Day0
print('---- Day0 ----')
allstudent = []
teacher1 = Teacher(fullname='Ada lovelace')
teacher2 = Teacher(fullname='Bill Gates')
print(teacher1.students)



#Day 1
print('---- Day1 ----')
st1 = Student('Albert','Einstein')
allstudent.append(st1)
teacher2.AddStudent(st1)
print(st1.fullname)


#Day2
print('---- Day2 ----')
st2 = Student('Steve','jobs')
allstudent.append(st2)
teacher2.AddStudent(st2)
print(st2.fullname)

#Day3
print('---- Day3 ----')
for i in range(3):
    st1.Coding()
st2.Coding()
st1.ShowExp()
st2.ShowExp()

#Day4
print('---- Day4 ----')
stp1 = SpecialStudent('Thomas','Edison','Hitler')
allstudent.append(stp1)
teacher1.AddStudent(stp1)
print(stp1.fullname)
print('May i give special 20 point?')
stp1.exp = 20
stp1.Coding()
stp1.ShowExp()

#Day5
print('---- Day5 ----')
print('How student back home with...')
print(allstudent)

for st in allstudent:
    print(' {} : Back home with {} '.format(st.name,st.vehicle))
    if isinstance(st,SpecialStudent):
        st.vehicle.SelfDriving(st)

#Day6
print('---- Day6 ----')

teacher1.CheckStudent()
teacher2.CheckStudent()

print('Total point 2 student ',st1+st2)
Package: oopzchool
Python OOP+วิธีสร้าง library เป็นของตัวเอง + Upload package ไปยัง
PyPI.org PyPI:https://pypi.org/project/unclechat/This program use for learn how to upload PyPi credit uncle engineer.ปล. เวอร์ชั่นนี้ยังไม่สมบูรณ์ (เขียนแบบรีบๆ 55)
ลุงเขียนขึ้นมาเพื่อประยุกต์นำ Python + Socket Library
สร้างเป็นโปรแกรมแชทตัวอย่าง สำหรับนักพัฒนาสามารถนำ Source Code
ไปพัฒนาต่อได้เต็มที่วิธีติดตั้งเปิด CMD / Terminalpipinstalloopzchoolวิธีใช้วิธีการใช้งานเปิด IDLE ขึ้นมาแล้วพิมพ์…```python from oopzchool.school import
Student,Tesla,SpecialStudent,Teacher #Day 0 print(“—-day 0—-”)
allstudent=[] teacher1 = Teacher(‘Ada lovelace’) teacher2 =
Teacher(‘Bill Gates’) print(teacher1.students)#Day 1 print(“—-day 1—-”) st1 = Student(‘Albert’,‘Einstein’)
allstudent.append(st1) teacher2.AddStudent(st1) print(st1.fullname)#Day 2 print(“—-day 2—-”) st2 = Student(‘Steve’,‘Jobs’)
allstudent.append(st2) teacher2.AddStudent(st2) print(st2.fullname)#Day 3 print(“—-day 3—-”) for i in range(3): st1.Coding() st2.Coding()
st1.ShowEXP() st2.ShowEXP()#Day 4 print(“—-day 4—-”)stp1 = SpecialStudent(‘Thomas’,‘Edison’,‘Hitler’)
allstudent.append(stp1) teacher1.AddStudent(stp1) print(stp1.fullname)
print(“Teasher give me 20 point”) stp1.exp = 20 stp1.Coding()
stp1.ShowEXP()#Day 5 print(“—-day 5—-”) print(“Hey student How do you go to your
home?”) print(allstudent) for st in allstudent: print(“I : {} back home
with {}”.format(st.name,st.vehicle)) #check ว่า object นี้เป็น class
อะไร if isinstance(st,SpecialStudent): st.vehicle.SelfDriving(st)#Day 6 print(“—-day 6—-”) teacher1.CheckStudent()
teacher2.CheckStudent() print(‘Sum exp’,st1+st2)หากต้องการสร้างห้องใหม่ - กด New Room - โปรแกรมจะสร้างห้องให้อัตโนมัติ
(จำเลขห้องไว้ส่งให้เพื่อน) - กด Enter Chatroom เพื่อเริ่มแชท[STEP 3] - ใช้งานได้เลยจ้าาา
หากมีการกดปิดโปรแกรมระบบจะแจ้งให้สมาชิกท่านอื่นทราบว่าผู้ใช้ได้ออกจากกลุ่มแล้วพัฒนาโดย: ลุงวิศวกร สอนคำนวณ FB:https://www.facebook.com/UncleEngineerYouTube:https://www.youtube.com/UncleEngineer
Package: ooq
ooqQuick access to code favorites.We all have our go-to utils and awesome tools.
Some of us are annoyed at having to type long dotpaths to the object we want to import.
Some of us probably forget where that particular object is in the first place.This is to mitigate that.Instead do this:fromooq.my_medleyimportthat_objectAlso have severalmy_medleysets of favorites, since what you'll need depends on the context.Word of advice: This tool is meant for the quick-and-dirty development contextDon't use this for production or any long-term code. It's meant for pulling things together quickly. Once the code matures, you should import "normally".UsageSee what modules are available to import>>>fromooqimportsource_module_names>>>source_module_names['tw','ca']See what that module is about (if the author cared to say)>>>fromooqimporttw>>>print(tw.__doc__)Amedleyofmymostfrequentlyusedtools.Import it (as a module object)fromooqimporttw# or from ooq import tw as my_own_nameInject the module's contents in your current namespace (if you're that type)fromooq.twimport*Inject everything there is in your namespace (but expect unpredictable name collisions)fromooqimport*
Package: oore
OORE (Object oriented regular expressions) is a python library that attempts
to provide an object oriented layer above therestandard library.The idea behind this project is to enable users to create and combine regular
expressions programmatically. Theremodule which is a more or less simple
wrapper over an underlying C library doesn’t provide any interface that truly
makes this possible, which means that especially complex regular expressions
need to be generated by concatenating strings.This means that dealing with such code is annoying, difficult, and error-prone.To give you an example, this is how you would create a regular expression that
matches aUnicode Language Identifier:from oore import r

digit = r(u'[0-9]')
alpha = r(u'[A-Za-z')
alphanum = r(u'[0-9A-Za-z]')
unicode_variant_subtag = alphanum[5, 8] | (digit + alphanum[3])
unicode_region_subtag = alpha[2] | digit[3]
unicode_script_subtag = alpha[4]
unicode_language_subtag = alpha[2, 8]
sep = r(u'[-_]')

unicode_language_id = r(u'root') | (
    unicode_language_subtag +
    (sep + unicode_script_subtag)[0, 1] +
    (sep + unicode_region_subtag)[0, 1] +
    (sep + unicode_variant_subtag)[0, ...]
)This can now be used like are.RegexObject, to get are.MatchObjectyou
simply use the.match()method:match = unicode_language_id.match('de-DE')
Package: ooregex
ooregexA simple, object oriented, regular expression generator.ooregexis a package aimed at providing a simple syntax for composing
regular expressions, without having to memorise their syntax.Itdoes notguarantee that the expressions generated are the most efficient.It is assumed that users have some understanding ofregular expressions, as there's nothing preventing invalid expressions from being generated.This project most likely still needs more testing, so I won't bump it to version 1.0 until I'm sure it's good enough.InstallationYou can install this package using pip with the commandpipinstallooregexUsageThe main purpose of this package is generating regular expressions to be used in other projects, for example, with the built-in re module.See the full documentationhere.Import the module with:importooregexAlternatively, import only the symbols that you need:fromooregeximport(...)Now let's build an expression for matching a price tag:importrefromooregeximport*pattern=Regex(Group(name="price",expression=Regex(DIGIT[1:],Optional(DOT+DIGIT[:]))),Group(name="currency",expression=AnyOf("$£€")),)# (?P<price>\d+(?:\.\d*)?)(?P<currency>[$£€])test_str="Sales! Everything for 9.99£!"price_tag=re.search(str(pattern),test_str)ifprice_tagisnotNone:price=price_tag.group("price")currency=price_tag.group("currency")print(price,currency)# 9.99 £Let's examine the pattern:We have 2 groups:a group named "price" consisting of:one or more digitsoptionally:a dotzero or more digitsa group named "currency" consisting of:any character from "$£€"Look how much clearer it is compared to the generated string:(?P<price>\d+(?:\.\d*)?)(?P<currency>[$£€])Report a bugIf you find a bug, you canopen an issueoremail me.LicenseThis package is available under theMIT license.
Package: ooresults
ooresultsooresults (open orienteering results) is a software to compute the results of orienteering events.
Here, “open” stands for “Open Source” (licensed under AGPL) on the one hand,
and for “Open Architecture” (extendable by plugins) on the other.
ooresults is able to read SPORTident cards.ooresults uses Python 3.8+ and is licensed under the GNU AFFERO GENERAL PUBLIC LICENSE, version 3.
It consists of two programs:ooresults-serverooresults-server is a web server for managing and storing data. It uses TCP ports 8080 and 8081.ooresults-readerooresults-reader reads the data of a SI-Card with the help of a connected SPORTident readout station
and sends the data to the ooresults-server.The operation takes place by means of a current web browser (Chrome, Firefox, Edge, …).ooresults was successfully used to compute the results of the SILVA O-Night 2023 in Munich.FeaturesMulti-user capableReading SPORTident cardsInstallation only necessary on the server and computers with connected SPORTident readout station,
other computers only need a current web browserSupports visiting controls in specific order or in no specific orderSupports score competitionsCalculation of a total result of several events possibleTransfer of competitor lists of an event from OrienteeringOnline.net via OE2003-CSV exportImport of competitor lists of an event in IOF 3.0 XML formatImport of course data in IOF 3.0 XML format (e.g. PurplePen)Export of results in IOF 3.0 XML formatCreation of result lists as PDF filesDocumentationThedocumentationcontains installation, a tutorial, a reference guide and configuration
(currently only available in german language).
Package: oorpc
oorpcAn Object-oriented Binary RPC FrameworkLibrary Usage0. ExamplePlease referexamplestart serverpoetryinstall
poetryrunpythonexample/server.pyrun client to testpoetryrunpythonexample/client.py接下来是详细步骤.1. Define service interface (.xidl)// greeter.xidlclassNameCard{StrnameNumageStrintro}classGreeter{NameCardexchangeNameCard(NameCardcard)voidsendFile(self,Streamfile)}2. Generate code from xidlxrpc-genpythongreeter.xidlwill got filegreeter.py# greeter.pyclassGreeter接口定义classPrGreeter代理classSrGreeter服务3. 实现服务继承并实现SrGreeterclassGreeterService(SrGreeter):asyncdefexchangeNameCard(self,card:NameCard)->NameCard:print('Got name card:')print('\tname:',card.name)print('\tage:',card.age)print('\tintro:',card.intro)returnNameCard('GG',100,'I am the Greeter Service')asyncdefsendFile(self,file:xfmt.Stream)->None:save_dir='__temp/'ifnotos.path.exists(save_dir):os.mkdir(save_dir)s=FileWriterStream(file,save_dir+file.name)self.channel.registerStream(s)继承并实现默认服务PeerService的查找服务接口classMyPeerService(PeerService):asyncdefgetService(self,name:str)->IInterface:ifname==Greeter.__name__:returnGreeterService(self.channel)raiseValueError("service not found!")4. 启动服务asyncdefstart_server():config=Config()peer=MyPeerService(config)conn=WSConnection()# use websocketasyncwithconn.start(peer,'greeter')as(ip,port):print("Server:%s://%s:%d"%(conn.protocol,ip,port))awaitasyncio.Future()# wait foreverasyncio.run(start_server())示例发布了一个名为greeter的websocket服务, 该服务可在局域网内自动发现5. 调用服务接口asyncdeftest_client():config=Config()conn=WSConnection()# use websocketasyncwithconn.connect('greeter',config)aspeer:# find serviceobj=awaitpeer.getService(Greeter.__name__)greeter=PrGreeter(obj)# normal rpc callcard=awaitgreeter.exchangeNameCard(NameCard('Client',50,'I am the test client!'))print('Got reply:')print('\tname:',card.name)print('\tage:',card.age)print('\tintro:',card.intro)# Send filefile='example/client.py'print("Ready to send file",file)file=FileReaderStream(file)awaitgreeter.sendFile(file)# call sendFileawaitpeer.channel.sendStream(file)# send file streamasyncio.run(test_client())查找并连接名为greeter的websocket 服务6. 加密握手协议config中传入handshake即可配置握手协议. 协议实现HandShakeProtocalconfig=Config(handshake=HandShakeV1())握手和加密方式可自定义7. 使用其他的连接协议目前支持使用websocket(WSConnection)和tcp连接协议(TCPConnection), 如果想要自定义协议, 请实现Connection类conn=MyCustomConnection()# use custom connection protocal8. 局域网发现默认打开局域网发现功能, 如果想要关闭, 则在启动服务时传入参数discoverable=Falseasyncwithconn.start(peer,name,discoverable=False)as(ip,port):...
Package: oort-cloud
[![Upload Python Package to Pypi](https://github.com/arcsecond-io/oort/actions/workflows/pythonpublish.yml/badge.svg)](https://github.com/arcsecond-io/oort/actions/workflows/pythonpublish.yml) [![Run Tests and Linting](https://github.com/arcsecond-io/oort/actions/workflows/pythonpackage.yml/badge.svg)](https://github.com/arcsecond-io/oort/actions/workflows/pythonpackage.yml) [![Deploy Docs](https://github.com/arcsecond-io/oort/actions/workflows/docsdeploy.yml/badge.svg)](https://github.com/arcsecond-io/oort/actions/workflows/docsdeploy.yml) [![Downloads](http://pepy.tech/badge/oort-cloud)](http://pepy.tech/project/oort-cloud)# Oort-Cloud for ArcsecondOort-Cloud is the open-source super-easy-to-use tool for automatically and
continuously uploading to [Arcsecond.io](https://www.arcsecond.io) files
that are inside a folder.[Arcsecond.io](https://www.arcsecond.io) is a comprehensive cloud platform
for astronomical observations, for individual astronomers, collaborations and
observatories.## UsageUse pip (see [this page](https://pip.pypa.io/en/stable/installing/) on how to install pip, if you haven’t done so):`bash $ pip installoort-cloud`Install for the user only (non-root):`bash $ pip installoort-cloud--user`Upgrade oort-cloud:`bash $ pip installoort-cloud--upgrade`Almost no-step-3 usage (the first one is to login to Arcsecond.io if not yet done):`bash oort login oort restart oort watch [OPTIONS] folder1 folder2 ... `See [detailed documentation](https://arcsecond-io.github.io/oort/) for a complete
description of all options and capabilities, with screenshots.
Package: oos
oosA basic framework for object-oriented sports analysisObject-Oriented Sports!This package aims to build a very basic framework to perform sports analysis in a more object-oriented fashionWhile data is frequently better suited for a Pandas DataFrame, An object-oriented framework allows for a more natural way to link together the nested structure of sporting events from the players to the plays to the games to the seasons.This framework is built to be extensible by giving a simple way to transistion lists of objects to DataFrames and visa-versa.Installpip install oosorconda install oosor better yetmamba install oosHow to useFill me in please! Don't forget code examples:1+12
Package: oosheet
oosheet is a module developing OpenOffice.org Spreadsheet automated routines using Python.Documentation is available athttp://oosheet.readthedocs.io/or else, you can build it from source like this:$ easy_install Sphinx
$ cd docs
$ make htmlthen open _build/html/index.html in your web browser.To run tests, make sure you don’t have an instance of OO.org running, and then:$ python oosheet/tests/run_tests.pyYou’re supposed to be using a Debian-based GNU/Linux distribution, other environments were not tested, but should work in any GNU/Linux environment.Tests assume you have your OpenOffice.org in English - USA default language.
Package: oot
Order of the Template (OOT)In the sacred halls of Dev, the Order of the Template (OOT) stands as a bastion of structure and order amidst the chaos. The order, founded by the ancients, carries the mission of maintaining harmony between variables and templates, ensuring every template adheres to its rightful structure, and bringing light to the shadowy corners of Jinja and YAML.The Order of the Template provides a noble toolkit for Python developers, aiding them in their quests to parse YAML files and Jinja templates, resolve environment variables, and validate schemas.The Code of the OrderA Noble QuestThe Templars are trained not only in the ancient art of parsing Jinja templates but also in the mastery of environments, skillfully resolving environment variables. They are the keepers of schemas, using their wisdom to ensure that data structures adhere to their rightful schemas.Consider a quest where a Templar must decode an ancient manuscript, a YAML file filled with Jinja templates and environment variables:# manuscript.yamlTemplar:{{TEMPLAR_NAME|default('Unknown Templar')}}HallOfHonor:${HALL_OF_HONOR:"Hall of the Wicked"}The Templar starts his task. He replaces theTEMPLAR_NAMEvariable with the name of a famous Templar. He then resolves theHALL_OF_HONORenvironment variable, revealing the name of the sacred hall. Once the manuscript has been decoded, he validates it, ensuring it adheres to the ancient schema:fromootimportparse_filefile_path="manuscript.yaml"variables={"TEMPLAR_NAME":"Jacques de Molay"}os.environ["HALL_OF_HONOR"]="Hall of the Brave"# Environmental variables will be automatically substituted# The Templar decodes the manuscriptmanuscript=parse_file(file_path,context=variables)# The manuscript is decoded:assertmanuscript=={"Templar":"Jacques de Molay","HallOfHonor":"Hall of the Brave"}# The Templar validates the manuscript against the ancient schemaschema_path="schema.json"manuscript=parse_file(file_path,context=variables,validation_schema=schema_path)In the above example,schema.jsonmight be a JSON schema file that defines the structure of the decoded manuscript:{"type":"object","properties":{"Templar":{"type":"string"},"HallOfHonor":{"type":"string"}}}Joining the OrderThe Order welcomes all who seek order in their templates and harmony in their variables. To install the Order's toolkit, simple run:pipinstallootMay the Order guide you in your quests.Closing WordsOOT was born out of the re-occuring necessity to parse Jinja templates and resolve environment variables across multiple projects.To separate concerns, enhance productivity and spare myself the need to setup code and tests within each project, I encapsulated the functionality.OOT's primary objective is to painlessly handle the resolution of environmental variables and/or templating in your YAML files.I came up with the name and theme. the README is a glorious work ofChatGPT.
Package: ootools
Open Office Tools is a set of program that allows you to easly connect to
OpenOffice via Python Uno module. It provides interface to starting Open office
for you, stoping it, and connecting. Other conversion tools like ods2csv, or
xls2csv are being included as soon as you send me a link to them.Installing ootoolsYou install ootools via you system package manger or via easy_install:easy_install ootoolsStarting OpenOfficeStart openoffice via this set of commands:import ootools
oor=ootools.OORunner()
oor.start()Connecting to OpenOfficeTo connect to open office you just issue a connect statement:import ootools
oor=ootools.OORunner()
oor.start()
desktop=oor.connect()
#Do something with the "Desktop" aka OpenOffice main document module.Stopping OpenOfficeYou stop OpenOffice via a stop statement:oor.stop()ToolsWe are waiting for people to send us patches or links to tools like ods2csv,
xls2csv, etc…For the latest changes see thereadme file.