Saravanan666/pypi-org huggingface dataset:
Package: py2ts
py2tsCovert PythondataclassandEnumto TypeScript interface.Mapping of Scalar Typesassertpython_type_to_typescript(str)=="string"assertpython_type_to_typescript(int)=="number"assertpython_type_to_typescript(bool)=="boolean"assertpython_type_to_typescript(float)=="number"assertpython_type_to_typescript(datetime)=="string"assertpython_type_to_typescript(date)=="string"assertpython_type_to_typescript(Decimal)=="string"assertpython_type_to_typescript(dict)=="{}"assertpython_type_to_typescript(list)=="Array<any>"UsageCreate a schema with Pythondataclass:classEnumFruit(Enum):APPLE="APPLE"ORANGE="ORANGE"@dataclassclassNestedSchema:string_field:strnullable_datetime_field:Optional[datetime]recursively_nested_field:Optional["NestedSchema"]@dataclassclassComplexSchema:nullable_int_field:Optional[int]nullable_decimal_field:Optional[int]nullable_enum_field:Optional[EnumFruit]nullable_nested_field:Optional[NestedSchema]nested_list_field:List[NestedSchema]blocks=[]forpath,nodeinschemas2typescript([ComplexSchema]).items():blocks.append(node.to_typescript())print("\n".join(blocks))The output is:exportenumEnumFruit{APPLE='APPLE',ORANGE='ORANGE'}exportinterfaceNestedSchema{string_field:string;nullable_datetime_field:string|null;recursively_nested_field:NestedSchema|null;}exportinterfaceComplexSchema{nullable_int_field:number|null;nullable_decimal_field:number|null;nullable_enum_field:EnumFruit|null;nullable_nested_field:NestedSchema|null;nested_list_field:Array<NestedSchema>;}Generate service registryDependency:ripgrepGenerate boilerplate service registry code.Usagepython-mpy2ts.generate_service_registry > service_registery.pyHow it worksThe command assumes that any classes namedXXXServiceshould be included in the service registry.
For example:classTestService:passwill generate the following code:# Generated code. DO NOT EDIT!fromdataclassesimportdataclassfromtests.test_generate_service_registrimportTestService@dataclassclassServiceRegistry:test_service:TestService=TestService()service_registry=ServiceRegistry()
Package: py2venv
Provides a simple “shortcut” from virtualenv to venv on python 2.Pretty much everything I do is in python3, where I use venv for every single project I work on.Occasionally I need my CI to also test / build / deploy to python2 as well.
As is stands, I generally end up with annoyingly complex startups scripts in ci that has to check which version
is being being run and then either usepython -m venv .venvon 3 orpython -m pip install virtualenv; python -m virtualenv .venvfor 2.It would be much better if I could just usepython -m venv .venveverywhere, but venv has not been backported. This package is a pretty decent workaround.py2venv can be pre-installed on any python. On python3 it does nothing. On python 2 it ensures virtualenv has been installed and provides a ‘venv’ module entrypoint:python -m pip install py2venv
python -m venv .venv
Package: py2vision
A package to do stereo vision using object detectionpy2vision will allow you to determine the
homogeneous coordinates of a detected object with a neural network, in conjunction with stereo algorithms that allow you to find the disparity maps, to finally apply segmentation within each detection window and it is these segmented pixels that are used to find the real position of the object in 3D space.
These segmented pixels are used to find the actual position of the object in 3D space.InstallationOpen a console and write this:pip install py2visionNote: If you already have the opencv package installed, you have to uninstall it with pip uninstall opencv-python and install opencv-contrib-python version 4.6.0.66.Application areasRoboticsComputer VisionWeb apps with Object detectionSurveillanceIf you want to learn how to use it I recommend see inside tutorials folder because it have some tools and notebooks that can help you to understand how it's works.Or you can see our documentation website here:https://corvus96.github.io/PyTwoVision/html/index.html
Package: py2vtk
Py2VTKPy2VTK is a low dependency module for exporting VTK files using Python for visualization/analysis in softwares like Paraview, VisIt or Mayavi.AcknowledgmentsPy2vtk borrows heavily fromPyEVTKandUVW.Current statePy2vtk is still in development. Current and future features are listed below in no particular order:Current and planned featuresSetting up github actions powered CIFinalization of a first "release" to make available via Pypi and Spack. (Pypi completed, Spack on hold until further notice).Recreation of PyEvtk's APIParallel API using mpi4py.Support of Dask Arrays (Not started yet).Add documentation using docstrings andsphinx.InstallationThis package is hosted in Pypi and can be installed with pip. There is currently 3 installation modes:Standard install (does not feature the MPI-enabled API)python-mpipinstallpy2vtkMPI Installpython-mpipinstallpy2vtk[mpi]Test install, needed to run the unit tests locallypython-mpipinstallpy2vtk[tests]Running testsTo run the unit tests locally, use the following commandspy.test-mserial# Serial testspythonmpi_tester.py.-mparallel# Parallel tests
Package: py2win
py2winUtility to create a stand-alone distribution of a Python program, either a console or GUI program.py2winusesPython embedded distributionandpipto create the stand-alone distribution.
Dependencies are therefore installed as they would be with a full Python distribution.InstallationYou need:Python >= 3.6Microsoft Visual Studio, compatible with your current Python installationThen simply run:pipinstallpy2winHow to useAs a command insetup.pyDefine at least one entry point in yoursetup.py.setup(...entry_points={'gui_scripts':['sample-gui=sample.gui:main'],'console_scripts':['sample-console=sample.console:main'],},...)Run thebdist_windowscommandpythonsetup.py--command-packagespy2winbdist_windowsAs a separate script to create an embedded distributionIn a separate Python script (e.g. arelease.pyfile in the root directory), you can define the embed process using theEmbedPythonclass and call therunmethod.frompy2win.embedimportEmbedPythonembed=EmbedPython('sample','1.2.0')embed.add_wheel(filepath_to_wheel_of_your_project)embed.add_requirement('PyQt5')embed.add_script(module='project.gui',method='main',executable_name='project-gui',console=False)embed.run(destination_directory)Release notes0.4.0Fix issue with distribution zip where zip content included extra foldersFix issue where compilation files/folders were not removed0.3.0Remove deprecation warning with distutils0.2.0Add support for arguments in console script (PR#1)Usepathlibfor pathsUsepytestfor testsUseblackfor formatting0.1.0First releaseContributors@trollfredLicenseThe library is provided under the MIT license.Copyright (c) 2017 - , Philippe Pinard
Package: py2winapp
py2winappMake runnable apps from your python scripts!DescriptionHow it worksThis script performs the following actions:Copies your source files to the build folderDownloads Python interpreter to the build folderInstallspipInstalls your project's requirementsMakes an executable startup file wich runs your main scriptYou'll get a portable Windows application!Requirements and limitationsPython 3.9+Tested on Windows 10 onlyNow onlyx64architecture is supported.InstallationWithpip:pipinstallpy2winappWithpoetry:poetryadd--groupbuildpy2winappUsageIn project's root createbuild.py:# build.pyimportpy2winappdefmake_build():py2winapp.build(python_version="3.11.3",input_source_dir="directory-where-your-source-files-are",main_file="main.py",# your app's entry pointshow_console=True,# or False if your app is GUI only)if__name__=='__main__':make_build()Run command:pythonbuild.pyYou can find build and distribution inbuildanddistfolders now.PoetryAdd topyproject.toml:[tool.poetry.scripts]build="build:make_build"Now you can run building with:poetryrunbuildSeedocumentationfor more.LicenseMITCreditsinspired byClimenteA/pyvanused code fromsilvandeleemput/gen-exe
Package: py2xml
Installation$pipinstallpy2xmlUsageimportpy2xml# typing attributes@py2xml.to_elementdefnote(id:int):...messages=py2xml.Element("messages")to=py2xml.Element("to")from0=py2xml.Element("from")heading=py2xml.Element("heading")body=py2xml.Element("body")print(messages[note(id=501)[to["Tove"],from0["Jani"],heading["Reminder"],body["Don't forget me this weekend!"]],note(id=502)[to["Jani"],from0["Tove"],heading["Re: Reminder"],body["I will not"]]])<messages><note id=”501”><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don’t forget me this weekend!</body></note><note id=”502”><to>Jani</to><from>Tove</from><heading>Re: Reminder</heading><body>I will not</body></note></messages>to xml ElementTreeElement.to_xml()generate codeimportpy2xmlprint(py2xml.util.generate_code('''<messages>
<note id="501">
    <to>Tove</to>
    <from>Jani</from>
    <heading>Reminder</heading>
    <body>Don't forget me this weekend!</body>
</note>
<note id="502">
    <to>Jani</to>
    <from>Tove</from>
    <heading>Re: Reminder</heading>
    <body>I will not</body>
</note>
</messages>'''))messages=py2xml.Element("messages")note=py2xml.Element("note")to=py2xml.Element("to")from0=py2xml.Element("from")heading=py2xml.Element("heading")body=py2xml.Element("body")messages[note(id="501")[to["Tove"],from0["Jani"],heading["Reminder"],body["Don't forget me this weekend!"]],note(id="502")[to["Jani"],from0["Tove"],heading["Re: Reminder"],body["I will not"]]]
Package: py30303-disc
SummaryAn async python library to perform UDP network discovery.Protocols SupportedThere are 3 protocols supported by this library:30303 - Simple and basicwiznet - Wiznet devices, does not fully decode the packet (yet)ecowitt - Ecowitt weather stationsNotes on the 30303 ProtocolWhen you perform a 303030 discovery, any device that responds will report 3 things.IP AddressHostnameThe hostname will be from the perspective of the device, not DNS.  Often devices will have hardcoded hostnames, like a Balboa Spa WiFi will report as BWGSPA.MAC AddressIn the form XX-XX-XX-XX-XX-XXHow to Usepip install py30303_discSee the example in src/py30303_disc/d30303_discover.pyThe parse function has a few modes:parse(data, addr)Simply decode the message, and return the tupleparse(data, addr, hostname=”blah”)Only return the tuple if the hostname matchesparse(data, addr, mac_prefix=”XX-XX-XX”)Only return the tuple if the mac address matches the prefix given.  Prefix
can be of arbitrary size.parse(data, addr, hostname=”blah”, mac_prefix=”blah”)Match both the hostname and the mac_prefix.For the send_discovery() function, there are 4 modes.  Default mode is “basic_30303”.send_discovery(“basic_30303”)Sends “Discovery: Who is out there?”send_discovery(“simple_30303”)Sends “D”send_discovery(“wiznet”)Sends “FIND” (requires reply port bound to 5001)send_discovery(“ecowitt”)Sends an ecowitt CMD_BROADCAST, requires reply port bound to 59387Issues and DiscussionsAs usual in any GitHub based project, raise an issue if you find any bug or room for improvement (certainly there are many), or open a discussion (new feature!!) if you want to discuss or talk :-)Versionv0.3.0Changelogv0.3.0 (2021-11-27)v0.2.0 (2021-11-14)Add run_d30303_discovery class to simplify usagev0.1.5 (2021-11-14)v0.1.4 (2021-11-14)v0.1.3 (2021-11-14)First release on PyPI.v0.1.2 (2021-11-13)v0.1.1 (2021-11-13)v0.1.0 (2021-11-13)
Package: py3270
Intropy3270 is a Python interface to x3270, an IBM 3270 terminal emulator.
It provides an API to a x3270 or s3270 subprocess.ExampleThe x3270 executables need to be on your PATH!A brief example of usage:frompy3270importEmulator# use x3270 so you can see what is going onem=Emulator(visible=True)# or not (uses s3270)em=Emulator()em.connect('3270host.example.com')em.fill_field(17,23,'mylogin',8)em.fill_field(18,23,'mypass',8)em.send_enter()# if your host unlocks the keyboard before truly being ready you can use:em.wait_for_field()# maybe look for a status messageifnotem.string_found(1,2,'login succesful'):abort()# do something useful# disconnect from host and kill subprocessem.terminate()DocumentationNone, sorry. Read the code, its pretty simple & self-explanatory  :)More information on x3270/s3270 can be found at:http://x3270.bgp.nu/http://x3270.bgp.nu/x3270-man.htmlhttp://x3270.bgp.nu/s3270-man.htmlhttp://x3270.bgp.nu/x3270-script.htmlQuestions & CommentsPlease submit a issue or visit:http://groups.google.com/group/blazelibsCurrent StatusThe interface seems sound, but the Emulator class has only basic functionality.
There are more x3270 commands that the Emulator could have methods for. That
being said, I believe most x3270 functionality can be supported at a lower-level
by the use of Emulator.exec_command().py3270 is installable viapipwithpip install py3270oreasy_installwitheasy_install py3270.Change Log0.3.5 released 2018-10-23Added explicit licenseReorganizing project structureFix exception handling in socketsFix exception in terminate command (wc3270)Code styling and minor fixes0.3.4 released 2017-07-24Fix BrokenPipeError issue WRT Python 2.70.3.3 released 2016-01-21continued fix to broken version import (include version in manifest)0.3.2 released 2016-01-21fix broken version import in setup.py (broken in 0.3.0 and 0.3.1)0.3.1 released 2016-01-21fix testing support for Python 3fix Windows support for Python 3move to github, related updates to vcs-specific files0.3.0 released 2015-07-29Support Python 30.2.0 released 2014-03-28Add Windows support, but not tested thoroughly.Consider Windows supportExperimental.use x3270 executables from PATH instead of requiring ExamBase to be subclassedfix buffering problems when writing to x3270 subprocess0.1.5 released 2013-06-17changed default timeout to 30 secondsadded send_pf7(), send_pf8()0.1.4 released 2012-03-17added is_connected() method0.1.3 released 2011-12-06had messed up a previous upload to pypi releasing a fixed 0.1.1 as 0.1.2, soneed to go to next version number0.1.2 released 2011-12-06fix data parsing on Windows0.1.1 released 2011-12-05renamed Emulator to EmulatorBase to make it clearer that a subclass is neededadjusted readme0.1.0 released 2011-12-01initial release
Package: py365
py365What is it?Python Library for App Development over MS Graph365The concept is simple - look at the API docs and "copy" same structure.While not very "pythonic" (I would guess - what does it mean anyway?),it is easy to follow and go along:
Just open theofficial API referenceWhat is it good for?If you are using any of MS services you are getting to the point that automating things via code is the best way to unleash it true massive power.While you can use .net core and other services, scripting with python is still very convenient if all you need is just small or serveless scripts.Target Python - 3.6Since this is the version used by Azure serverless engines.How to use it?$pipinstallpy365# Graph365 is the main access point to the MS Graph# rsc is the graph resources we use to feed the graph APIfrompy365importGraph365,rsc#Connect to the tenantg365=Graph365(appId=config['app_id'],appSecret=config['app_secret'],tenantId=config['tenant_id'])# Create new user# API doc: https://docs.microsoft.com/en-us/graph/api/user-post-users?view=graph-rest-1.0user=rsc.User(displayName="Steve J",userPrincipalName="steve.j@consotco.com")g365.users.createUser(newUser=user)API implementedCreate User (Partially)Get User (Partially)Update user (Partially)Send emailGuest InviteWhat is next? (ATM)Modify online excelGet Planner tasksAdd unit testings
Package: py37nashiki
play_py37_packagePython3.7 で packageを作ってみる手順。
またその手順によって作成された、package。initpython3 -m venv venv
. venv/bin/activate
(venv) $ pip install -U pipplay local(venv) $ pip install -e .
(venv) $ pip list
(venv) $ python
>>> import py37nashiki
>>> py37nashiki.main()
This is pynashiki配布作成 (ソースコード形式)(venv) $ python setup.py sdist
(venv) $ ls dist
py37nashiki-1.0.0.tar.gz配布物作成 (wheel)(venv) $ pip install wheel==0.33.6
(venv) $ python setup.py bdist_wheel
(venv) $ ls dist
py37nashiki-1.0.0-py3-none-any.whl  py37nashiki-1.0.0.tar.gz配布 (test)(venv) $ pip install twine==2.0.0
(venv) $ twine upload -r testpypi dist/*
(venv) $ pip install -i https://test.pypi.org/simple/ py37nashiki配布 (本番)(venv) $ deactive
python3 -m venv newenv
. newenv/bin/activate
(newenv) $ pip install -U pip
(newenv) $ pip install wheel==0.33.6
(newenv) $ python setup.py sdist 
(newenv) $ python setup.py bdist_wheel
(newenv) $ ls dist 
(newenv) $ pip install twine==2.0.0 
(newenv) $ twine upload -r pypi dist/*
(newenv) $ pip install py37nashiki後片付け$ deactivate
$ rm -rf venv
$ rm -rf newenvLicenseMIT
Package: py3a2
Rust implementation for sending APNs push notificationsUsageimportpy3a2# Returns integer as request status code# * 200 Success# * 400 Bad request# * 403 There was an error with the certificate or with the provider authentication token# * 405 The request used a bad `:method` value. Only `POST` requests are supported.# * 410 The device token is no longer active for the topic.# * 413 The notification payload was too large.# * 429 The server received too many requests for the same device token.# * 500 Internal server error.# * 503 The server is shutting down and unavailable.py3a2.send_notification(cert_file# Binary p12 filepassword,# Password for the p12 filedevice_token,# Device tokentitle,# Title of the messagemessage,# Body of messageis_sandbox,# Is sandbox environmenttopic,# Topicbadge,# Badgecustom_id,# APNS-IDuser_id)# Custom data - user id
Package: py3adf
py3adfpy3adfis a port of David Boddie'sADF2INFADFS image reading tool and its
supportingADFSliblibrary module. The original versions can be found,
alongside many other nice things, in theAcorn-Format-Toolsrepository.The primary goal of this fork is to provide a version ofADF2INFthat runs on
Python 3.Additional goals include:Minor enhancements forADF2INF.pippackaging, with support for runningpy3adf.pyeasily on Windows.Tasteful use of new language features.Increased type safety with type hints and explicit casts (where essential).Automated acceptance tests.Installingpip install py3adfRunningThe pip package installspy3adf.pyas a runnable script, so just:py3adf.pyAuthorsDavid Boddiedavid@boddie.org.ukToby McLaughlintoby@jarpy.netLicensepy3adf is licensed under the GNU General Public License version 3 or later:This program is free software: you can redistribute it and/or modify
it under the terms of the GNU 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 General Public License for more details.You should have received a copy of the GNU General Public License
along with this program.  If not, seehttp://www.gnu.org/licenses/.
Package: py3-aeneas
py3-aeneasis a fork ofaeneasthat supports python3.6+.Version: 1.0.0Date: 2020-05-03License: the GNU Affero General Public License Version 3 (AGPL v3)Contact:akki.kr94@gmail.comAcknowledgmentsMany thanks toNicola Montecchio, who suggested using MFCCs and DTW,
and co-developed the first experimental code for aligning audio and
text.Paolo Bertasi, who developed the APIs and Web application for
ReadBeyond Sync, helped shaping the structure of this package for its
asynchronous usage.Chris Hubbardprepared the files for packaging aeneas as a
Debian/Ubuntu.deb.Daniel Bairprepared thebrewformula for installingaeneasand its dependencies on Mac OS X.Daniel Bair,Chris Hubbard, andRichard Margettspackaged
the installers for Mac OS X and Windows.Firat Ozdemircontributed thefinetuneasHTML/JS code for fine
tuning sync maps in the browser.Willem van der Waltcontributed the code snippet to output a sync
map in TextGrid format.Chris Vaughncontributed the MacOS TTS wrapper.All the mightyGitHub
contributors,
and the members of theGoogle
Group.
Package: py3-application
This package is a collection of modules that are useful when building python
applications. Their purpose is to eliminate the need to divert resources into
implementing the small tasks that every application needs to do in order to
run successfully and focus instead on the application logic itself.The modules that the application package provides are:process       - UNIX process and signal management.python        - python utility classes and functions.configuration - a simple interface to handle configuration files.log           - an extensible system logger for console and syslog.debug         - memory troubleshooting and execution timing.system        - interaction with the underlying operating system.notification  - an application wide notification system.version       - manage version numbers for applications and packages.
Package: py3-base92
py3base92一个python3实现的base92编码python库A python library to create base92 encoded strings in python3.正式版本的版本号开始于1.1.0，至于为什么从1.1.0开始，考虑到python2的实现版本为1.0.3，并且已停更，然后之前又发布了一个临时py3的版本1.0.3-1，想区别于py2的版本号又不想从0版本开始，就即兴定下了第一个版本号为1.1.0Readme_EN历史版本时间线版本: 1.0.3-1更新到python3之后发现base92模块不能用了，看到原作者thenoviceoof的base92的包最后更新也是7年前了，因此在其基础代码上做base92 python3的兼容版本
包作为临时使用，并未准备用做项目，所以未发到PyPi ，同时构建的setup也未做详细描述和介绍。pypi中搜索了下，我没有发布，但是发现其他人把这个版本发布上去了，python3base92 1.0.3.post1!!!注意: 该版本(pypi上的这个版本)不受该仓库维护和管理，可能存在潜在安全问题及Bug，为防止误导，不再提供该版本使用说明版本: 1.1.0第一个正式发布到PyPi的版本，后续仅在该版本基础上更新。该版本已完善支持bytes，并修复了上个版本中遗留的一些bug移除冗余方法：encode()base92_encode()decode()base92_decode()版本: 1.1.1一些优化用法安装pip install py3-base92或$ENV:PYTHONPATH='src';python .\src\setup.py install(Windows Powershell)PYTHONPATH=src python .\src\setup.py install(Linux)importpy3base92print(py3base92.b92encode("你好".encode()))# sIb@Vyq8print(py3base92.b92decode("sIb@Vyq8").decode())# 你好print(py3base92.b92encode("hello world".encode()))# Fc_$aOTdKnsM*kprint(py3base92.b92decode("Fc_$aOTdKnsM*k").decode())# hello world测试用例Windows Powershell$ENV:PYTHONPATH='src';python .\tests\test_base92.pyLinuxPYTHONPATH=src python .\tests\test_base92.py文档文档(Document)
Package: py3-bencode
Python 3 bencoding libraryPython 3 bytearray bencoding library.Encode all data intobyte. Useful for networking.Example>>>frombencodeimportbencode,bdecode>>>foo=bencode({"foo":[0,-1,2,"3",{"4":5}],"bar":{"baz":1}})>>>print(foo)b'd3:bard3:bazi1ee3:fooli0ei-1ei2e1:3d1:4i5eeee'>>>bar=bdecode(foo)>>>print(bar){b'bar':{b'baz':1},b'foo':[0,-1,2,b'3',{b'4':5}]}decoderforbdecodeOptional argument inbdecodefunction, provide decode bytes to another types. It can be helpful for decode dict key into strings.decoderis a callback function with arguments:field_type,valuefield_typestr, possible values:"key","value";valuebytes.>>>defcustom_decoder(field_type,value):...iffield_type=="key":...returnstr(value,"ascii")...eliffield_type=="value":...returnstr(value,"utf-8")...else:...raiseException("'field_type' can pass only 'key' and 'value' values")...>>>bar=bdecode(foo,decoder=custom_decoder)>>>print(bar){'bar':{'baz':1},'foo':[0,-1,2,'3',{'4':5}]}
Package: py3bitlist
An bits array implement in pure python.
No dependency.
Support python3+.Package Installation and UsageThe package is available on PyPI ( calledpy3bitlist):pip install py3bitlistThe library can be imported in the usual way:import bitlistAPIsBitList(length)Return a BitList object with length bits.Bitlist(bytes)Return a BitList object which is constructed by bytes.BitList.get_bytes_length()Return the number of bytes that consist the Bitlist.BitList.get_length()Return the number of bits that consist the Bitlist.BitList.set_bit(position, num)Set the bit in position to num.BitList.get_bit(position)Get the bit in position.