Saravanan666/pypi-org huggingface dataset:
Package: py3dtiles
Py3dtilesPy3dtiles is a CLI tool and a library writing with Python for creating and manipulating3D Tiles.FeaturesTileset manipulationRead tileset lazily (to avoid useless memory consumption)Write tilesets with their tile contentsBrowse the tile structure, access to the properties and tile content with the ability to modify themRead and write pnts and b3dm with the batch table supportTiling toolsAll tiling tools areavailable with the API and the CLIConvert data into 3d tiles (tileset.json + pnts/b3dm files). The supported file formats are:las/lazxyzplywkbMerge 3D Tiles tilesets into one tilesetRead pnts and b3dm files and print a summary of their contentsInstallationWith pipTo install Py3dtiles with pip (recommended method)pipinstallpy3dtilesFor installing specific format dependencies (las/laz, ply, postgis, install from source…), please read the installation section in thedocumentation.With dockerAt the moment we only publish on gitlab registry.dockerrun-it--rm\--mounttype=bind,source="$(pwd)",target=/app/data/\--volume/etc/passwd:/etc/passwd:ro--volume/etc/group:/etc/group:ro--user$(id-u):$(id-g)\registry.gitlab.com/py3dtiles/py3dtiles:<version>\convert<file>NOTE:the–mountoption is necessary for docker to read your source data and to write the result. The way it is written in this example only allows you to read source files in the current folder or in a subfolderThis line–volume /etc/passwd:/etc/passwd:ro –volume /etc/group:/etc/group:ro –user $(id -u):$(id -g)is only necessary if your uid is different from 1000.API basic example>>>frompathlibimportPath>>>>>>frompy3dtiles.tileset.tilesetimportTileSet>>>>>>tileset=TileSet.from_file(Path("tests/fixtures/tiles/tileset.json"))>>>all_tiles=(tileset.root_tile,*tileset.root_tile.get_all_children())>>>fortileinall_tiles:...ifnottile.has_content():...continue...tile_content=tile.get_or_fetch_content(tileset.root_uri)...print(f"The tile{tile.content_uri}has a content of{type(tile_content)}type")...print(f"with this bounding volume:{tile.bounding_volume.to_dict()}")Thetiler.pntshasacontentof<class'py3dtiles.tileset.content.pnts.Pnts'> typewiththisboundingvolume:{'box':[0.390625,0.3125,0.0,0.390625,0.0,0.0,0.0,0.3125,0.0,0.0,0.0,0.0]}Thetiler1.pntshasa...Result exampleThe data visualized on this website is generated with theconvertandmergeCLI command of Py3dtiles:https://giro3d.org/examples/lidar_hd.htmlThe library used on this site isgiro3dbut there are other 3dtiles viewers.DocumentationThe CLI and API documentation with examples are available here:main:https://py3dtiles.org/mainlast stable:https://py3dtiles.org/RoadmapThe objectives are:to support the standard at version 1.1 (mainly gltf as content)to convert more file formatsto have a better tiler for geometriesContributingWe welcome new contributions. This may be fixing an issue or adding a feature, but also:reporting an issuereviewing a MRimproving the documentation or creating a tutorialtalking about this project to othershelp others on the [chat room](https://matrix.to/#/#py3dtiles:matrix.org)We have written acontributing guideto help you for your first contribution.LicensePy3dtiles is distributed under the Apache 2 Licence.
Package: py3estoolbox
Python3 ToolboxA utility set for :
1 - Filesystem
2 - Time
3 - Print
4 - AWS
5 - Elasticsearch
6 - Image
7 - NetworkFor install :pip install py3toolboxFor upgrade:pip install py3toolbox --upgrade -vvv  --no-cache-dirFor PyPi upload:python setup.py sdist upload -r pypi
Package: py3exiv2
A Python 3 binding to the library exiv2.python3-exiv2 is a Python 3 binding to exiv2, the C++ library for manipulation of EXIF, IPTC and XMP image metadata. It is a python 3 module that allows your scripts to read and write metadata (EXIF, IPTC, XMP, thumbnails) embedded in image files (JPEG, TIFF, …).It is designed as a high-level interface to the functionalities offered by libexiv2. Using python’s built-in data types and standard modules, it provides easy manipulation of image metadata.python3-exiv2 is distributed under the GPL version 3 license.The main content of the code was initially written by Olivier Tilloy for Python 2 under the name pyexiv2.py3exiv2 depends on the following libraries:python (≥ 3.2)boost.python3 (http://www.boost.org/libs/python/doc/index.html)exiv2 (http://www.exiv2.org/)Build depends:python-all-dev (≥ 3.2)libexiv2-dev (≥ 0.20)libboost-python-dev (≥ 1.48)g++
Package: py3-gfwlist2privoxy
UsageGenerate action file for privoxy from gfwlist, inspired by clowwindy’sgfwlist2pacand modified from it.pip install gfwlist2privoxy

usage: main.py [-h] [-i GFWLIST] -f ACTION -p PROXY -t TYPE [--user-rule USER_RULE]

detail arguments:
  -h, --help                    show this help message and exit

  -i GFWLIST, --input GFWLIST   local path or remote url of gfwlist, ignore to use default address

  -f ACTION, --file ACTION      path to the output action file

  -p PROXY, --proxy PROXY       the proxy in the action file, for example, "127.0.0.1:1080"

  -t TYPE, --type TYPE          the proxy type in the action file, should be one of the followings,
                                "http socks4 socks4a socks5 socks5t"

  --user-rule USER_RULE         user rule file, which will be appended to gfwlist

Please set https proxy in your system if you ignore the argument GFWLIST.Example Action FileAn example of generated action file ishere.
Package: py3gpp
SummaryThis python package aims to replace the Matlab 5G Toolbox in Python. The call syntax of functions is the same as in matlab where possible. There are some differences, because matlab allows to continuously index a multidimensional array in one axis. In python this is not possible, therefore the result of functions like nrPBCHIndices() is also multidimensional here to make it compatible with Python.Installation'python3 -m pip install py3gpp'
or
clone this repo and then do 'python3 -m pip install -e .'Getting startedrun 'examples/test_py3gpp.ipynb'The example data is ideal data generated with Matlab, but the code has been tested with real data that has CFO, SFO and noise.DocumentationSee Matlab documentation of equivalent functionCoding GuidelineFormattingScreen width 120spaces on each side of math operators like +-*/TestingEach function must have a hard-coded test that can run on CIEach function should have a Matlab test that can run on a machine with Matlab licenseHard-coded test cases should cover the most common argument combinationsMatlab tests should cover more argument combinations than the hard-coded testsFunction interfaceFunctions should return numpy arrays if the return value is an arrayFunctions should accept numpy arrays and python lists if an input value is an arrayConfig objects should have a getter and setter method and declare the internal variable with underscore at the beginningInput arguments should be checked and a 'ValueError' or 'TypeError' should be raised if an argument is not correct
Package: py3grok
py3grokA Python library to parse strings and extract information from structured or unstructured data. This library is based onpygrok.Why?Parsing and matching patterns from a string.Relieving from complex regular expressions.Extracting information from structured/unstructured data.Installationpipinstallpy3grokGetting StartedWhen using this library, you will want to first create an instance ofGrokEnvironment.
That will load the default and custom grok pattern files. Whenever you want to create a new
pattern, you can runGrokEnvironment.create(pattern)which returns an instance ofGrok,
where you can simply runGrok.match(text).For flexibility, you can also modify aGrokinstance'spatternproperty as well if needed.Code Examplefrompy3grokimportGrokEnvironmentgrok_env=GrokEnvironment()pattern='%{WORD:name} is %{WORD:gender}, %{NUMBER:age} years old and weighs %{NUMBER:weight} kilograms.'# Regex flags can be used, like: grok_env.create(pattern, flags=re.IGNORECASE)grok=grok_env.create(pattern)text='Gary is male, 25 years old and weighs 68.5 kilograms.'print(grok.match(text))# {'gender': 'male', 'age': '25', 'name': 'Gary', 'weight': '68.5'}Numbers can be converted from string tointorfloatif you use%{pattern:name:type}syntax, such as%{NUMBER:age:int}See all available patternshere!Additional NotesThe pythonremodule does not support regular expression syntax atomic grouping(?>), so pygrok requiresregexto be installed.Grok is a simple software that allows you to easily parse strings, logs and other files. With grok, you can turn unstructured log and event data into structured data.I recommend you to have a look atlogstash filter grok, it explains how Grok works.Pattern files come fromlogstash filter grok's pattern files.
Package: py3helpers
General python functions and classes which could be used across multiple projects.Free software: BSD 3-Clause LicenseInstallationpip install py3helpersYou can also install the in-development version with:pip install https://github.com/adbailey4/py3helpers/archive/master.zipYou to allow access to seq_tools, you need to install with:pip install py3helpers[seq_tools]Or you can install from source with:git clone https://github.com/adbailey4/python_utils
cd python_utils
pip install -e.[seq_tools]
python setup.py testDocumentationhttps://py3helpers.readthedocs.io/DevelopmentTo run the all tests run:toxChangelog0.4.0 (2020-02-27)First release on PyPI.
Package: py3html
py3htmlA very simple tool to generate html with python code.ProjectTablerAuthorÖzcan YarımdünyaDocumentationhttps://ozcanyarimdunya.github.io/py3htmlSource codehttps://github.com/ozcanyarimdunya/py3htmlpy3htmlis a library that you can generate html by using same tree-structure python code.InstallationOnlypython3.9+required, no extra dependencies.pipinstallpy3htmlUsageBasic usageimportpy3htmlasphcode=ph.p("Hello, World")code.htmlOutput<p>Hello, World</p>You can add more elements with attributes.importpy3htmlasphcode=ph.div(ph.h1("Welcome",style="color: red"),ph.a("Click here!",href="example.com"),ph.p("Login ",ph.small("to")," continue!",),class_="container")code.htmlOutput<divclass="container"><h1style="color: red">Welcome</h1><ahref="example.com">Click here!</a><p>Login<small>to</small>continue!</p></div>TestThis project usingpytest.maketestDocumentationLive previewmakeserve-docsBuildingbuild-docsLICENSEMIT License

Copyright (c) 2023 yarimdunya.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: py3-infobip
Infobip Python3 clientDescriptionA simple python3 client forinfobip serviceInfobip is a client communication service with aREST api, sadly they do not have an python3 client and my attemp to use the 2to3 library to transform theinfobip python2 clientfailed.This is why a simple python3 client that could consume the infobip API functionalities was neededDependenciesPython3.7+Installationpip install py3-infobipGetting StartedIf you want to send a text sms to your clients all you need is a list of phone numbers and the message you want to send.from py3_infobip import (
    SmsClient,
    SmsTextSimpleBody
)

message = SmsTextSimpleBody()
message \
    .set_to([
        '<phone_number>'
    ]) \
    .set_text('some text')

infobip_client = SmsClient(
    url='<infobip_url>',
    api_key='<infobip_apikey>'
)
response = infobip_client.send_sms_text_simple(message)
print(response.json())
Package: py3k-bcrypt
py3k-bcrypt is an implementation the OpenBSD Blowfish password hashing
algorithm, as described in “A Future-Adaptable Password Scheme” by
Niels Provos and David Mazieres.This system hashes passwords using a version of Bruce Schneier’s
Blowfish block cipher with modifications designed to raise the cost
of off-line password cracking. The computation cost of the algorithm
is parametised, so it can be increased as computers get faster.
Package: py3-libldap
libldap module - a wrapper for OpenLDAP library - version 1.3DescriptionThis module is a Python3 wrapper for the OpenLDAP library. Module defines
only one exception: `LDAPError'. This exception is accompagnied
with a string value which is generally the error message generated by
OpenLDAP library.See OpenLDAP library documentation (http://www.openldap.org) for more details.Basic InstallationTo build libldap:You need to have OpenLDAP library and file `/usr/include/ldap.h'
installed on your systemYou need to have SASL library and file `/usr/include/sasl/sasl.h'`cd' to the toplevel directory of the package and run the command:$ python3 setup.py buildTo (re)make html documentation, run (you needsphinx' tool for Python3, see http://sphinx-doc.org andsphinx_py3doc_enhanced_theme' module):$ python3 setup.py build_sphinx --source-dir sphinx/source --build-dir docand you will find the documentation generated in subdirectory doc/html.As `root', type:$ python3 setup.py installOptionally, you can type:$ python3 setup.py cleanto save disk space.DocumentationOn line documentation can be found at:http://libldap.readthedocs.ioLicense informationlibldap is free software. See the file COPYING for copying conditions.NoteThis module has been tested on Linux and FreeBSD.AuthorYves Legrandgerard
email:ylg@irif.fr
Package: py3mailer
AboutA simple and convenient way to send emails ✉️ in python 🐍Installationpipinstallpy3mailerUsage guideImporting the modulefrompymailerimportEmailService,build_messageBuild an email messageSimpleEmailMessagemessage=build_message(fr_addr='john@company.com',# Senderto_addrs=['peter@abc.com'],# List of recipientscc_addrs=['emma@abc.com'],# List of secondary recipentssubject='Subject of Email',content="Plain text contents of the email")ExtendedEmailMessagewith html body and attachmentsmessage=build_message(fr_addr='john@company.com',# Senderto_addrs=['peter@abc.com'],# List of recipientscc_addrs=['emma@abc.com'],# List of secondary recipentssubject='Subject of Email',content="Plain text contents of the email",htmlcontent="<h1>Fancy</h1> html content of the email",attachments=['absolute path to the attachment'])InstantiateEmailSeviceand send themessageservice=EmailService(host='smtp.gmail.com',port=587,user='john@company.com',password='This is super secret')service.sendmail(message)Additional notes:While creatingEmailServiceits optional to specify thepassword. If thepasswordis not specified it is assumed that the smtp email server does not require authentication.
Package: py3make
Bring basicMakefilesupport to any system with Python.Simply install withpip install py3makethen executepy3makein a directory containing aMakefile.py3makeworks on any platform (Linux, Windows, Mac, FreeBSD, Solaris/SunOS).py3makedoes not require any library to run, just a vanilla Python
interpreter will do.The goal is not to reproduce a whole implementation ofGNU make, but only a very fast and succinct
commands runner. This is often used to ease running tests and deployments locally, before uploading to
a continuous integration/continuous deployment system such as GitHub Workflows.Do not be fooled by the lack of updates: this module is very stable and is very frequently (daily) used
in most ofmy Python projects.This repository is a “fork” by the original author to regain full editing permissions stolen by a co-author,
to update this package with full freedom.Table of contentsInstallationLatest PyPI stable releaseLatest development release on GitHubChangelogUsageKnown IssuesDocumentationContributionsLICENCEAuthorsInstallationLatest PyPI stable releasepipinstallpy3makeLatest development release on GitHubPull and install in the current directory:pipinstall-egit+https://github.com/lrq3000/py3make.gitChangelogThe list of all changes is available either on GitHub’s Releases:or on crawlers such asallmychanges.com.UsageSimply install then executepy3make-pto list commands andpy3make <command>to use a command, in a directory containing aMakefile.Known IssuesFor compatibility, ensure:Every alias is preceded by @[+]make (eg: @make alias)A maximum of one @make alias or command per lineSample makefile compatible withpy3make:PY=python-mpy_compile.PHONY:alltestinstallcompileall:@+maketest@makeinstalltest:nosetestinstall:pythonsetup.py\installcompile:$(PY)test.pycircle:# of lifecircleempty:# this is a commentIf you get a “Permission Denied” error, please check if maybe your antivirus may be preventing the launch of compiled python scripts, if the Scripts subdirectory is in the PATH, orother issues with the Python install.Documentationpy3make--helpContributionsAll source code is hosted onGitHub.
Contributions are welcome.See theCONTRIBUTEfile for more information.LICENCEOpen Source (OSI approved):AuthorsThe main developers, ranked by surviving lines of code
(git fame -wMC), are:Stephen Karl Larroque (lrq3000, core logic & maintenance Py3)Casper da Costa-Luis (casperdcl, modularization & self-referential aliases & ironing out edge cases & documentation)We are grateful for all!
Package: py3minepi
Minecraft: Pi Editionis awesome.However it uses Python 2. We’re moving it to Python 3 (without any official
approval) and offering it for download here.We hope this makes people’s lives easier.Project PrioritiesMake it work on Python 3Keep compatibility with the original releaseMake the API cleaner and more PythonicMake the internals cleaner and more PythonicLinksRaspberry PiMinecraft PiMinecraft Pi Usage pageOriginal API referenceMartin O’Hanlon GitHub(useful test projects)
Package: py3mschap
py3mschapFirst of all I hereby acknowledge this is not my original work. This repo
is based on work ofjamiesun.net@gmail.com, original repo ishttps://github.com/talkincode/pymschap.Why I decided to fork it and rename itI needed python3 pip packagerepo is left without much of care, where I need my own code base with possibility to extend itI have quite bad experience with pr->fix->pip cycle flowWhat you can expect hereIf everything is running ok, probably some more from radius related mechanisms implemented
in my simple radiustesting mini-serverraok.
This module will be used there and via pip3 maintained for further improvements.Original example provided by Jamiedef verify_radius_request(ms_chap_response,authenticator_challenge,username,userpwd,secret,authenticator):
    import six
    from pymschap import mschap, mppe
    result = {}
    if len(ms_chap_response)!=50:
        raise Exception("Invalid MSCHAPV2-Response attribute length")
    # if isinstance(userpwd, six.text_type):
    #     userpwd = userpwd.strip().encode('utf-8')

    nt_response = ms_chap_response[26:50]
    peer_challenge = ms_chap_response[2:18]
    nt_resp = mschap.generate_nt_response_mschap2(
        authenticator_challenge,
        peer_challenge,
        username,
        userpwd,
    )
    if nt_resp == nt_response:
        auth_resp = mschap.generate_authenticator_response(
            userpwd,
            nt_response,
            peer_challenge,
            authenticator_challenge,
            username
        )
        result['MS-CHAP2-Success'] = auth_resp
        result['MS-MPPE-Encryption-Policy'] = '\x00\x00\x00\x01'
        result['MS-MPPE-Encryption-Type'] = '\x00\x00\x00\x06'
        mppeSendKey, mppeRecvKey = mppe.mppe_chap2_gen_keys(userpwd, nt_response)
        send_key, recv_key = mppe.gen_radius_encrypt_keys(
            mppeSendKey,
            mppeRecvKey,
            secret,
            authenticator)
        result['MS-MPPE-Send-Key'] = send_key
        result['MS-MPPE-Recv-Key'] = recv_key
    else:
        result['Reply-Message'] = "E=691 R=1 C=%s V=3 M=<password error>" % ('\0' * 32)

    return result
Package: py3names
Lists names defined in a python3 file. Pretty simple yeah.usage$ py3names nuclear_launch.py
os
sys
warhead
detonate
trajectory
firepoweror$ cat nuclear_launch.py | py3names
os
sys
warhead
detonate
trajectory
firepowerso what?It parses the code using theastmodule and the traverses the
resulting syntax tree for name definitions.Currently detectable:global and function scope defined variablesclasses and object attributesfunction and function argumentsfor loop iteration variable nameswhat’s the pointI mainly needed this for the vimCodeInColorplugin
Package: py3nj
py3njA small python library to calcluate wigner's 3j-, 6j- and 9j- symbols.py3njis designed to be compatible with numpy's np.ndarray and
its calculation is vectorized automatically.Basic UsageThe basic interfaces arepy3nj.wigner3j,py3nj.wigner6j,py3nj.wigner9j, andpy3nj.clebsch_gordan.>>># Calculate (0/2, 1/2, 1/2,...#           (0/2, 1/2,-1/2)...# Note that all the arguments should be doubled...py3nj.wigner3j(0,1,1,...0,1,-1)0.7071067811865476>>># vectorization is supported...py3nj.wigner3j([0,2],[1,0],[1,0],...[0,0],[1,0],[-1,0])array([0.70710678,0.])>>># 6J symbol>>>py3nj.wigner6j([2,1],[1,2],[1,1],...[1,2],[2,1],[0,0])array([0.40824829,0.40824829])>>># 9J symbol>>>py3nj.wigner9j([2,2],[4,4],[2,2],...[2,4],[2,6],[2,2],...[2,2],[2,4],[2,2])array([0.05555556,0.03651484])>>>ClebschGordanhcoefficient>>>py3nj.clebsch_gordan(2,2,4,...2,0,2)0.7071067811865475>>># Vectorized calcluation of C.G. coef...py3nj.clebsch_gordan([2,1],[2,1],[4,0],...[2,-1],[0,1],[2,0])array([0.70710678,-0.70710678])Installpy3njcan be installed through eitherpipor github repository.  You'll
likely need to haveninjainstalled.Install by pippip install py3njInstall through githubgit clone https://github.com/fujiisoup/py3nj
cd py3nj
pip install .Acknowledgementpy3nj wrapsslatecfortran implementation.
Seehttp://www.netlib.org/slatec/for the details.LicenseCopyright 2018, py3nj DevelopersLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: py3njection
How to usefrompy3njectionimportinjectfromsome_packageimportClassToInjectclassDemo:@injectdef__init__(self,object_to_use:ClassToInject):self.dependency=object_to_usedemo=Demo()How does it work ?The decorator@injectlooks for any annotated method/function parameters (returnannotation excluded).It creates anewobject from the specified classif noobject is already provided.What if I want a singleton ?@singletonclassClassToInject:passThat’s it ! When@injectsees a class with this decorator, italwaysuses thesameinstance.How to installIt’s available on PyPI !pipinstallpy3injectionOr get it at :https://pypi.python.org/pypi/py3njectionWant to know more ?A more complete documentation is available here :http://py3njection.readthedocs.org/en/latest/Contact and ContributionFeel free to contribute in any way :help, bugs, issues, suggestions :https://github.com/Aigrefin/py3njection/issuestwitter account :https://twitter.com/Julien_Tellierand finally my mail address is in the setup.pySome NotesUnit tests come easy to set up (unless you have too many dependencies, but that would be a code smell, right ?). Just specify mock instances at your object creation. Examples will come later.This also means the injected object could also have some of its members injected too at their initialization !