Saravanan666/pypi-org huggingface dataset:
Package: other-access
other_accessother_accessis more flexible implementation ofos.access().Whileos.access()checks access for current user only,other_access/oaccesscan check access for other users/groups. In other words,other_accesswill return same result, no matter which user runs it (Supposing current user canos.stat()that file).For example, root user can useother_access.oaccess(path, os.R_OK, 'www-data')to ensure files are readable by www-data user.Limitationother_access does not supports filesystem ACL.Installpip3 install other-accessUsageother_access(path, mode, uid, gids=None)- main function. similar toos.access(), but checks for other user (uid) and list of groups (gids). User and group id's are integer (not names).oaccess(path, mode, user, groups)- wrapper for other_access which takes names for user/groups, converts it to numerical uid/gids and calls other_access(). IfgroupsisNone, oaccess will use all groups for this user. (specify only main group or empty list to override this)ExamplesLets use /etc/shadow for example:-rw-r----- 1 root shadow 1841 Jun  2 04:07 /etc/shadowimportosfromother_accessimportoaccess# user root can read and writeassertoaccess('/etc/shadow',os.R_OK|os.W_OK,'root')==True# group shadow can readassertoaccess('/etc/shadow',os.R_OK,'nobody',['shadow'])==True# Other can check existence of file, but cannot readassertoaccess('/etc/shadow',os.F_OK,'nobody')==Trueassertoaccess('/etc/shadow',os.R_OK,'nobody')==False
Package: other-python
other pythonเครื่องมือเล็กๆน้อยๆที่จะทำให้ชีวิตสะดวกขึึ้นวิธีใช้importother_pythonasotpyprint(otpy.change(1,9))# possible output -8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8print(otpy.middle(0,10))# possible output 5
Package: otherstuf
Attribute-accesible collections inspired bystuf. Implementschainstufandcounterstuf: versions ofChainMapandCounterthat expose their keys as
attributes.The ultimate goal of this module is to have these functions available in thestufmodule, and this sidecar to be retired.UsageUse these just like you wouldChainMapandCounter, except that
you get attribute-style access as well.Forchainstuf:from otherstuf import chainstuf

d1 = dict(this=1, that=2)
d2 = dict(roger=99, that=100)

# test simple attribute equivalence
c = chainstuf(d1, d2)

assert c.this == 1
assert c.roger == 99

c.roger = 'wilco'
assert c.roger
print "roger", c.roger

d1.update(feeling='fancypants!')
print "i'm feeling", c.feeling     # passed through, since d2 lacks 'feeling'Given recent versions (e.g. beyond 0.9.10) ofstuf, one could simply usefrom stuf import chainstuf. This portion of theotherstufsidecar is now superfluous.Forcounterstuf:from otherstuf import counterstuf

c = counterstuf()
c.update("this and this is this but that isn't this".split())
c.total = sum(c.values())

print "everything:", c.total
print "'this' mentioned", c.this, "times"
print "'bozo' mentioned", c.bozo, "times"
print cNotesVersion 1.1.0 initates automated test coverage metrics. Test coverage
started at 88%. Cleanups got coverage to 100%.Hooah!Automated multi-version testing managed withpytest,pytest-cov,coverageandtox.
Packaging linting withpyroma.Successfully packaged for, and
tested against, all late-model versions of Python: 2.6, 2.7, 3.2, 3.3,
3.4, and 3.5 pre-release (3.5.0b3) as well as PyPy 2.6.0 (based on
2.7.9) and PyPy3 2.4.0 (based on 3.2.5). Test line coverage 100%.As of 1.0.0, updated to use semantic versioning and
the Apache Software License.Recent builds ofstufhave left Python 2.6 out in
the cold. This package requiresstuf==0.9.14for 2.6–the
last version to successfully install there. Newer Python
releases will getstuf>=0.9.16. I’ve submitted
a patch for 2.6 installability to carry forward; we’ll
have to see where that goes.The author,Jonathan Euniceor@jeunice on Twitterwelcomes your comments and suggestions.InstallationTo install or upgrade to the latest version:pip install -U otherstufToeasy_installunder a specific Python version (3.3 in this example):python3.3 -m easy_install --upgrade otherstuf(You may need to prefix these withsudoto authorize
installation. In environments without super-user privileges, you may want to
usepip’s--useroption, to install only for a single user, rather
than system-wide.)
Package: othertools
Other Tools for PythonTo Publish$ python setup.py sdist
$ twine upload dist/othertools-X.X.X.tar.gzInstallation$ pip install othertools

# other useful commands
$ pip show othertools | findstr "Version"
$ pip install othertools --upgradeUsagefromothertools.pathimportchdir_by_anchorchdir_by_anchor("environment.yaml","src/.+")#---fromothertools.pathimportpath_add_by_anchorpath_add_by_anchor("environment.yaml","src/.+")ExamplesExample 1Before:.
├── documents
└── projects
    └── python
        └── hello-world
            ├── environment.yaml
            └── src ### CURRENT DIRECTORY] ###
                └── root.package
                    └── main.pychdir_by_anchor("environment.yaml","src/.+")After:.
├── documents
└── projects
    └── python
        └── hello-world
            ├── environment.yaml
            └── src
                └── root.package ### CURRENT DIRECTORY] ###
                    └── main.pyExample 2Before:.
├── documents
└── projects
    └── python
        └── hello-world ### CURRENT DIRECTORY] ###
            ├── environment.yaml
            └── src
                └── root.package
                    └── main.pychdir_by_anchor("environment.yaml","src/.+")After:.
├── documents
└── projects
    └── python
        └── hello-world
            ├── environment.yaml
            └── src
                └── root.package ### CURRENT DIRECTORY] ###
                    └── main.py
Package: otherworlds
OtherworldsA simple name generator for non-sensitive things. Mixes Klingon and real Exoplanets and star designations.generator use casesusernamesnames for teams/places/campaigns in your favorite MMORPGsubdomainsemphemeral service namesInstallationInstall this package using the usual suspects (e.g., Pypi)pip install otherworldsHow to use the generatorThis command generates names using real stars and exoplanets:pipx otherworldsTo mix in some Klingon, use the '--klingon' flag:pipx otherworlds --klingonYou can supply your own seed using the--seedargument:pipx otherworlds --klingon --seed 42By default,otherworldsreturns a single name. You can specify hoe=w many names it shoud return:pipx otherworlds --klingon --num 5You can view the full help with this command:pipx otherworlds --helpLicenseThis codebase is licensed under the GPLv3+ and therefore the use, inclusion, modification, and distribution of this software is governed by the GPL.If you are planning to use otherworlds in a commercial product and wish to opt-out of the obligations of the GPL, please reach out tolicense@civichacker.com.
Package: otii-tcp-client
# Python client for Otii TCP-serverThe otii_tcp_client is a Python package for controlling the [Otii Automation Toolbox](https://www.qoitech.com/automation-toolbox/).New functionality in client v1.0.7 requiring [Otii software v3.1.0 or later](https://www.qoitech.com/download):Addedotii_control.pyscript for [user management](https://www.qoitech.com/docs/user-manual/automation-toolbox/user-management)New functionality in client v1.0.6 requiring [Otii software v3.1.0 or later](https://www.qoitech.com/download):User management API (otii.login,otii.logout,otii.get_licenses,otii.reserve_licenseandotii.return_license)arc.get_channel_sampleratecommand for Arc and Ace devicesarc.set_channel_sampleratecommand for Ace devicesNew functionality in client v1.0.5:get_devicescan now accept an optionaldevice_filterNew functionality in client v1.0.5 requiring [Otii software v3.0.0 or later](https://www.qoitech.com/download):Statistics API (get_channel_info`and `get_channel_statistics)firmware_upgradecommand for Arc and Ace devicesNew functionality in client v1.0.4 requiring [Otii software v2.8.4 or later](https://www.qoitech.com/download):New optionaltimeoutparameter added tootii.get_devices, that specifies the time in seconds to wait for an avaliable deviceImproved handling of TCP requestsAddedarc.get_maincommandNew functionality in client v1.0.3 requiring [Otii software v2.7.2 or later](https://www.qoitech.com/download):Recordingobject now exposes the start time asstart_timeNew functionality in client v1.0.2 requiring [Otii software v2.7.1 or later](https://www.qoitech.com/download):arc.[gs]et_src_cur_limit_enabledcommandsarc.[gs]et_4wirecommandsarc.enable_battery_profiling,arc.set_battery_profileandarc.wait_for_battery_datacommands
Package: otio-aaf-adapter
OpenTimelineIO Advanced Authoring Format (AAF) AdapterOverviewThis project is aOpenTimelineIOadapter for reading and writing Advanced Authoring Format (AAF) files.
This adapter was originally included with OpenTimelineIO as a contrib adapter. It is in the process of being separated into this project to improve maintainability and reduced the dependencies of both projects.Feature MatrixFeatureReadWriteSingle Track of Clips✔✔Multiple Video Tracks✔✔Audio Tracks & Clips✔✔Gap/Filler✔✔Markers✔✔Nesting✔✔Transitions✔✔Audio/Video Effects✖✖Linear Speed Effects✔✖Fancy Speed Effects✖✖Color Decision List✖✖Image Sequence Reference✖✖RequirementsOpenTimelineIOpyaaf2LicensingThis repository is licensed under theApache License, Version 2.0.Testing for Development# In the root folder of the repopipinstall-e.# Test adapterotioconvert-isome_timeline.aaf-osome_timeline.extIf you are using a version of OpentimelineIO that still has the AAF contrib adapter you may need to add the path ofplugin_manifest.jsonto yourOTIO_PLUGIN_MANIFEST_PATHenvironment variable.This should override the contrib version.ContributionsIf you have any suggested changes to the otio-aaf-adapter,
please provide them viapull requestorcreate an issueas appropriate.All contributions to this repository must align with the contributionguidelinesof the OpenTimelineIO project.
Package: otio-ale-adapter
OpenTimelineIO ALE AdapterThealeadapter is part of OpenTimelineIO's contrib adapter plugins.Adapter Feature MatrixThe following features of OTIO are supported by thealeadapter:FeatureSupportSingle Track of Clips✔Multiple Video Tracks✔Audio Tracks & Clips✔Gap/Filler✖Markers✖Nesting✔Transitions✖Audio/Video Effects✖Linear Speed Effects✖Fancy Speed Effects✖Color Decision ListN/AImage Sequence Reference✖LicenseOpenTimelineIO and the "ale" adapter are open source software.
Please see theLICENSEfor details.Nothing in the license file or this project grants any right to use Pixar or
any other contributor’s trade names, trademarks, service marks, or product names.ContributionsIf you want to contribute to the project,
please see:https://opentimelineio.readthedocs.io/en/latest/tutorials/contributing.htmlContactFor more information, please visithttp://opentimeline.io/orhttps://github.com/AcademySoftwareFoundation/OpenTimelineIOor join our discussion forum:https://lists.aswf.io/g/otio-discussion
Package: otio-burnins-adapter
OpenTimelineIO Burnins AdapterTheburninsadapter is part of OpenTimelineIO's contrib adapter plugins.
Uses FFmpeg to burn text overlays into video media.LicenseOpenTimelineIO and the "burnins" adapter are open source software.
Please see theLICENSEfor details.Nothing in the license file or this project grants any right to use Pixar or
any other contributor’s trade names, trademarks, service marks, or product names.ContributionsIf you want to contribute to the project,
please see:https://opentimelineio.readthedocs.io/en/latest/tutorials/contributing.htmlContactFor more information, please visithttp://opentimeline.io/orhttps://github.com/AcademySoftwareFoundation/OpenTimelineIOor join our discussion forum:https://lists.aswf.io/g/otio-discussion
Package: otio-cdl-adapter
OpenTimelineIO - CDL Export AdapterThis simple adapter allows users to export a collection of .cdl files
from an OTIO instance.One .cdl file is exported for each clip in the OTIO instance
(supports both Timeline and SerializableCollection OTIO schemas).The ColorCorrection Node ID within the .cdl will use the
CMX_3600 reel name/Tape of the clip, while the file itself will be named
using the timeline event/clip name.Please note, you must provide directory (not a file) as the output parameter.Due to this, you must also manually provide the adapter_name as a named
parameter as there is no file extension for otio to automatically select it.Usageotio.adapters.write_to_file(timeline, 'path/to/output/directory', adapter_name='cdl')More on OpenTimelineIOSee here for more info on OpentimelineIOOpenTimelineIO docsOpentimelineIO repoOpentimelineIO Plugin Template repoLintingLinting is handled withflake8
Package: otio-fcp-adapter
OpenTimelineIO FCP XML AdapterThefcp_xmladapter is part of OpenTimelineIO's core adapter plugins.It provides reading and writing of Final Cut Pro 7 formatted XML files.
For more information on the FCP XML format please check the links in thereferencesectionAdapter Feature MatrixThe following features of OTIO are supported by thefcp_xmladapter:FeatureSupportSingle Track of Clips✔Multiple Video Tracks✔Audio Tracks & Clips✔Gap/Filler✔Markers✔Nesting✔Transitions✖Audio/Video Effects✖Linear Speed Effects✖Fancy Speed Effects✖Color Decision List✖Image Sequence Reference✖FCP7 XML ReferencesReferenceLicenseOpenTimelineIO and the "fcp_xml" adapter are open source software.
Please see theLICENSEfor details.Nothing in the license file or this project grants any right to use Pixar or
any other contributor’s trade names, trademarks, service marks, or product names.ContributionsIf you want to contribute to the project,
please see:https://opentimelineio.readthedocs.io/en/latest/tutorials/contributing.htmlContactFor more information, please visithttp://opentimeline.io/orhttps://github.com/AcademySoftwareFoundation/OpenTimelineIOor join our discussion forum:https://lists.aswf.io/g/otio-discussion
Package: otio-fcpx-xml-adapter
OpenTimelineIO FCP X XML AdapterThefcpx_xmladapter is part of OpenTimelineIO's contrib adapter plugins.
It provides reading and writing of Final Cut Pro X formatted XML files.
For more information on the FCP X XML format please check the links in thereferencesectionAdapter Feature MatrixThe following features of OTIO are supported by thefcpx_xmladapter:FeatureSupportSingle Track of Clips✔Multiple Video Tracks✔Audio Tracks & Clips✔Gap/Filler✔Markers✔Nesting✔Transitions✖Audio/Video Effects✖Linear Speed Effects✖Fancy Speed Effects✖Color Decision List✖Image Sequence Reference✖FCPX XML ReferencesReferenceLicenseOpenTimelineIO and the "fcpx xml" adapter are open source software.
Please see theLICENSEfor details.Nothing in the license file or this project grants any right to use Pixar or
any other contributor’s trade names, trademarks, service marks, or product names.ContributionsIf you want to contribute to the project,
please see:https://opentimelineio.readthedocs.io/en/latest/tutorials/contributing.htmlContactFor more information, please visithttp://opentimeline.io/orhttps://github.com/AcademySoftwareFoundation/OpenTimelineIOor join our discussion forum:https://lists.aswf.io/g/otio-discussion
Package: otio-hls-playlist-adapter
OpenTimelineIO HLS Playlist AdapterThehls_playlistadapter is part of OpenTimelineIO's contrib adapter plugins.
This adapter supports authoring of HLS playlists within OpenTimelineIO by using clips to represent media fragments.LicenseOpenTimelineIO and the "hls playlist" adapter are open source software.
Please see theLICENSEfor details.Nothing in the license file or this project grants any right to use Pixar or
any other contributor’s trade names, trademarks, service marks, or product names.ContributionsIf you want to contribute to the project,
please see:https://opentimelineio.readthedocs.io/en/latest/tutorials/contributing.htmlContactFor more information, please visithttp://opentimeline.io/orhttps://github.com/AcademySoftwareFoundation/OpenTimelineIOor join our discussion forum:https://lists.aswf.io/g/otio-discussion
Package: otio-maya-sequencer-adapter
OpenTimelineIO Maya Sequencer AdapterThemaya_sequenceradapter is part of OpenTimelineIO's contrib adapter plugins.
Set the ${OTIO_MAYA_PYTHON_BIN} environment variable to point the location ofmayapywithin the maya installation.LicenseOpenTimelineIO and the "maya sequencer" adapter are open source software.
Please see theLICENSEfor details.Nothing in the license file or this project grants any right to use Pixar or
any other contributor’s trade names, trademarks, service marks, or product names.ContributionsIf you want to contribute to the project,
please see:https://opentimelineio.readthedocs.io/en/latest/tutorials/contributing.htmlContactFor more information, please visithttp://opentimeline.io/orhttps://github.com/AcademySoftwareFoundation/OpenTimelineIOor join our discussion forum:https://lists.aswf.io/g/otio-discussion
Package: otio-mlt-adapter
MLT XML Adapter for OpenTimelineIOWhen installed, the plugin adds itself to the available adapters inOpenTimelineIOThe MLT XML adapter produces mlt flavoredxmlfiles used in conjunction withmeltto preview or render timelines.The adapter is a write-only adapter and can only produce.mltfiles,
not parse them. For parsing dialects of the mlt format please check out one
of the other adapters listedhere.For more information on MLT please visit:www.mltframework.orgInstallationThe easiest way to install the adapter is with pip directly from PyPi# Installpipinstallotio-mlt-adapter# Check if plugin installed correctlyotiopluginfomlt_xmlIf you choose to download the source code and place the package in an alternative
location, make sure you append the full path to theplugin_manifest.jsonfile
to theOTIO_PLUGIN_MANIFEST_PATHenvironment variable.Usage in command line tools# Straight conversion from otio -> mltotioconvert-isource_timeline.otio-odestination_timeline.mlt# Pass adapter argumentsotioconvert-isource_timeline.otio-odestination_timeline.mlt-Acolorspace=709# Play timeline in meltmeltdestination_timeline.mltUsage in pythonimportopentimelineioasotio# Straight conversiontimeline=otio.adapters.read_from_file('source_timeline.otio')otio.adapters.write_to_file(timeline,'converted_timeline.mlt')# Conversion with adapter argumenttimeline=otio.adapters.read_from_file('source_timeline.otio')otio.adapters.write_to_file(timeline,'converted_timeline.mlt',colorspace=709)Supported OTIO FeaturesOTIO FeatureMLT AdapterSingle Track of ClipsW-OMultiple Video TracksW-OAudio Tracks & ClipsW-OGap/FillerW-OMarkers✖NestingW-OTransitionsW-OAudio/Video Effects✖Linear Speed EffectsW-OFancy Speed Effects✖Color Decision ListN/AImage Sequence ReferenceW-OKnown limitationsAudio handling is a bit limited. Clips in audio tracks that share the same
source as the video clip above will be ignored as MLT will include the audio
from the video track by default.Effects directly applied on Tracks or Stacks are currently not implementedFeedbackPlease submit bug reports etc. through githubissuesLicenseMLT XML adapter is released under theMIT License
Package: otio-svg-adapter
OpenTimelineIO SVG AdapterThesvgadapter is part of OpenTimelineIO's core adapter plugins.It renders a svg representation of an otio file.Points in calculations are y-up. Points in SVG are y-down.Adapter Feature MatrixThe following features of OTIO are supported by thesvgadapter:FeatureSupportSingle Track of Clips✔Multiple Video Tracks✔Audio Tracks & Clips✔Gap/Filler✔Markers✔Nesting✖Transitions✔Audio/Video EffectsN/ALinear Speed EffectsN/AFancy Speed EffectsN/AColor Decision ListN/AImage Sequence Reference✖LicenseOpenTimelineIO and the "svg" adapter are open source software.
Please see theLICENSEfor details.Nothing in the license file or this project grants any right to use Pixar or
any other contributor’s trade names, trademarks, service marks, or product names.ContributionsIf you want to contribute to the project,
please see:https://opentimelineio.readthedocs.io/en/latest/tutorials/contributing.htmlContactFor more information, please visithttp://opentimeline.io/orhttps://github.com/AcademySoftwareFoundation/OpenTimelineIOor join our discussion forum:https://lists.aswf.io/g/otio-discussion
Package: otio-xges-adapter
OpenTimelineIO GStreamer Editing Services XML Adapter.Thexgesadapter is part of OpenTimelineIO's contrib adapter plugins.Adapter Feature MatrixThe following features of OTIO are supported by thexgesadapter:FeatureSupportSingle Track of Clips✔Multiple Video Tracks✔Audio Tracks & Clips✔Gap/Filler✔Markers✔Nesting✔Transitions✔Audio/Video Effects✔Linear Speed Effects✖Fancy Speed Effects✖Color Decision List✖Image Sequence Reference✔LicenseOpenTimelineIO and the "xges" adapter are open source software.
Please see theLICENSEfor details.Nothing in the license file or this project grants any right to use Pixar or
any other contributor’s trade names, trademarks, service marks, or product names.ContributionsIf you want to contribute to the project,
please see:https://opentimelineio.readthedocs.io/en/latest/tutorials/contributing.htmlContactFor more information, please visithttp://opentimeline.io/orhttps://github.com/AcademySoftwareFoundation/OpenTimelineIOor join our discussion forum:https://lists.aswf.io/g/otio-discussion
Package: otkerneldesign
otkerneldesignThis Python module generates designs of experiments based on kernel methods such as Kernel Herding and Support Points with the classes:KernelHerdingKernelHerdingTensorizedGreedySupportPointsAdditionally, optimal weights for quadrature and validation designs are provided by the classes:BayesianQuadratureWeightingTestSetWeightingInstallation~$pipinstallotkerneldesignDocumentation & referencesPackage documentationUsage in Machine Learning model validationSupport pointsKernel herdingExample>>>importopenturnsasot>>>importotkerneldesignasotkd>>># Distribution definition>>>distribution=ot.ComposedDistribution([ot.Normal(0.5,0.1)]*2)>>>dimension=distribution.getDimension()>>># Kernel definition>>>ker_list=[ot.MaternModel([0.1],[1.0],2.5)]*dimension>>>kernel=ot.ProductCovarianceModel(ker_list)>>># Kernel herding design>>>kh=otkd.KernelHerding(kernel=kernel,distribution=distribution)>>>kh_design,kh_indices=kh.select_design(size=20)AuthorsElias FekhariJoseph Muré
Package: otl
otl 工具集安装方式pipinstallotl封装企业微信接口fromotl.wechat.wechat_apiimportWechatApiGLOBAL_WECHAR_CONFIG={'NAME':'xxx',#企业的id，在管理端->"我的企业" 可以看到'CORP_ID':'',#应用列表 可以配置多个应用'APP_LIST':{'warning_robot':{#报警机器人'APP_ID':'',#APPID'APP_SECRET':'',#APP密钥'switch':'on',#是否开启},}}if__name__=='__main__':we=WechatApi(GLOBAL_WECHAR_CONFIG)status,res=we.apps['warning_robot'].send(msg_type='text',to_users_list=['xxx'],msg_string='xxx')ifnotstatus:print(res)封装mysql方法fromotl.dbimportMysqlDbBaseclassDb1(MysqlDbBase):host='1.1.1.1'port=3306user='test_user'password='test_pwd'db='test_db'# 实例化db1=Db1()# 查询操作 -> 返回数据: listdb1.query("select ***")# 写入操作 -> 返回影响行数: intdb1.insert("insert into ***")# 更新操作 -> 返回影响行数: intdb1.update("update ***")# 删除操作 -> 返回影响行数: intdb1.delete("delete ***")发送邮件# -*- coding: utf-8 -*-fromotl.emailimportEmailApiCONFIG={# 组 支持多个组'team1':{'name':'',# 组名 即邮件主题'user':'',# 发件人'password':'',# 发件人密码'smtp':'',# smtp服务器'port':25,'to_list':['aaa@aa.com'],# 收件人列表'cc_list':[]# 抄送列表}}if__name__=='__main__':ea=EmailApi(CONFIG).team1# 组名# 添加文本ea.add_str('lalala')# 添加图片ea.add_image("/a/b/123.jpg")# 添加表格ea.add_table([['姓名','年龄','性别'],['aaa',25,'男'],['ccc',25,'男']])# 添加附件ea.add_attr("/a/b/wechat.tgz")status,res=ea.send_email()ifstatus:print('success')else:print('error:{}'.format(res))