Saravanan666/pypi-org huggingface dataset:
Package: python3-json-log-formatter
==================`Repository <https://bitbucket.org/bear_belly/json_log_formatter>`__Formats log output in JSON format. Shows all fields of a log record.Here is an example of the output.::...{"name": "somemodule.util","msg": "This is a log message","args": "()","levelname": "DEBUG","levelno": "10","pathname": "/path/to/pyfile.py","filename": "util.py","module": "util","exc_info": "None","exc_text": "None","stack_info": "None","lineno": "217","funcName": "do_something","created": "1520373828.7142632","msecs": "714.2632007598877","relativeCreated": "2531.79669380188","thread": "140244615616320","threadName": "MainThread","processName": "MainProcess","process": "11519"}{"name": "somemodule.util","msg": "This is an error message","args": "()","levelname": "ERROR","levelno": "10","pathname": "/path/to/otherfile.py","filename": "util.py","module": "util","exc_info": "None","exc_text": "None","stack_info": "None","lineno": "217","funcName": "do_something","created": "1520373218.7142632","msecs": "810.2632007598877","relativeCreated": "8531.79669380188","thread": "140244615616320","threadName": "MainThread","processName": "MainProcess","process": "11519"}...Installation------------Install as you would any other python package::::$ pip install json-log-formatterUsage-----To use the formatter, include it in logging config as you would otherformatters.The formatter takes one optional argument ``json_kwargs``. These arekeywords that are passed directly to```json.dumps()`` <https://docs.python.org/3/library/json.html#json.dumps>`__.YAML Example~~~~~~~~~~~~::logging:version: 1formatters:...json:class: json_log_formatter.JsonFormatterjson_kwargs:indent: 2...handlers:....json_console:class: logging.StreamHandlerformatter: json...loggers:...console:level: DEBUGhandler: json_console...root:...level: DEBUGhandlers: [json_console, ]...Dict example~~~~~~~~~~~~::'logging': {'version': 1,'formatters': {...'json': {'class': 'json_log_formatter.JsonFormatter','json_kwargs': {indent: 2...},...},...},'handlers': {....'json_console': {'class': 'logging.StreamHandler','formatter': 'json',},...},'loggers': {...'console': {'level': 'DEBUG','handler': 'json_console',},...},'root': {...'level': 'DEBUG','handlers': ['json_console', ]...},...}Home-page: UNKNOWNAuthor: Jordan HewittAuthor-email: jordan.h@startmail.comLicense: GPLv3Description: UNKNOWNKeywords: json log output format flannelPlatform: UNKNOWN
Package: python3-keyczar
Keyczar is an open source cryptographic toolkit designed to make it easier and safer for developers to use cryptography in their applications. Keyczar supports authentication and encryption with both symmetric and asymmetric keys. Some features of Keyczar include:A simple API
Key rotation and versioning
Safe default algorithms, modes, and key lengths
Automated generation of initialization vectors and ciphertext signatures
Java and Python implementations (C++ coming soon)
International support in Java (Python coming soon)
Keyczar was originally developed by members of the Google Security Team and is released under an Apache 2.0 license.
Package: python3-lzo-indexer
Python library for indexing block offsets within LZO compressed files.
The implementation is largely based on that of theHadoop Library.
Index files are used to allow Hadoop to split a single file compressed
with LZO into several chunks for parallel processing.Since LZO is a block based compression algorithm, we can split the file
along the lines of blocks and decompress each block on it’s own. The
index is a file containing byte offsets for each block in the original
LZO file.This library is python3 fork ofpython-lzo-indexer.ExampleThe python code below demonstrates how easy it is to index an LZO file.
This library also supports indexing a string, and a method to return the
individual block offsets should you need to create a file of your own
format.importlzo_indexerwithopen("my-file.lzo","r")asf,open("my-file.lzo.index","rw")asindex:lzo_indexer.index_lzo_file(f,index)Command-line UtilityThis library also includes a utility for indexing multiple lzo files,
using the python indexer. This is a much faster alternative to the
command line utility built into the hadoop-lzo library as it avoids the
JVM.$ lzo_indexer --help

Usage: lzo_indexer [OPTIONS] <files to index>

  Tool for indexing LZO compressed files

Options:
  -t, --threads INTEGER  Processing threads count
  -e, --extension TEXT   Index file extension
  -f, --force            Force re-creation of an index even if it exists
  -h, --help             Show this message and exit.ContributionsI welcome any contributions, though I request that any pull requests
come with test coverage.
Package: python3-mal
Build StatusTravispython3-malProvides programmatic access to MyAnimeList data.
This is a fork of python-mal. It uses lxml instead of beautifulsoup, and it's working with python 3.
There are automatic travis and teamcity builds on every last sunday of the month to ensure that the package is working fine with the current version of MAL.Dependenciespython 3.* (tested with 3.7 and 3.8)pytzrequestslxmlnose (only if you want to run tests, though!)cssselectInstallationAfter cloning the repository, navigate to the directory and runpython setup.py install.Getting StartedThemyanimelist.session.Sessionclass handles requests to MAL, so you'll want to create one first:from myanimelist.session import Session
s = Session()Then if you want to fetch an anime, say, Cowboy Bebop:bebop = s.anime(1)
print bebopObjects in python-mal are lazy-loading: they won't go out and fetch MAL info until you first-request it. So here, if you want to retrieve, say, the things related to Cowboy Bebop:for how_related,items in bebop.related.iteritems():
  print how_related
  print "============="
  for item in items:
    print item
  print ""You'll note that there's a pause while Cowboy Bebop's information is fetched from MAL.DocumentationTo find out more about whatpython-malis capable of,visit the docs here.TestingTesting requiresnose. To run the tests that come with python-mal:Navigate to the python-mal directoryCreate a textfile namedcredentials.txtand put your MAL username and password in it, separated by a comma, or set environment variables namedMAL_USERNAMEandMAL_PASSWORDwith the appropriate values.Runnosetests.Make sure you don't spam the tests too quickly! One of the tests involves POSTing invalid credentials to MAL, so you're likely to be IP-banned if you do this too much in too short a span of time.Differences from the original repoInstead of beautiful soup this module uses lxmlThere are scheduled tests every sunday.I've removed some of the functionalities: popular tags parsing and favourite parsing on user profiles because they were unstable.Change log0.2.7 - Adapted MAL changes: characters and staff on datasheets have absolute urls. Staff table has been changed to multiple table elements.0.2.6 - added broadcast time parsing for currently aired anime shows and added some minor fixes.0.2.5 - added promotion video parsing on anime datasheets0.2.4 - Adapted to the new MAL ssl enforcement0.2.3.1 - upgraded to requests 2.110.2.3.0 - performance improvements in xpath queries.0.2.2 - adapted to new SEO url rule changes and DOM changes on MAL.0.2.1 - replaced beautifulsoup with lxml.
Package: python3-markdown-extension-graphviz
Note: Forked to fix errors with latest version of Python-Markdown and migrate to
using Poetry.Markdown Inline Graphviz (for Python 3)This is just a continuation of the great job of Steffen Prince insprin/markdown-inline-graphviz,
in order to get it work with pip3. If you use python 2, please use the original extension instead.A Python Markdown extension that replaces inline Graphviz definitions with
inline SVGs or PNGs!Why render the graphs inline? No configuration! Works with any
Python-Markdown-based static site generator, suche originasMkDocs,Pelican, andNikolaout of the box without configuring an output
directory.Installation$ pip3 install markdown_inline_graphviz_extension --userUsageActivate themarkdown_inline_graphvizextension. For example, with Mkdocs, you add a
stanza to mkdocs.yml:markdown_extensions:-markdown_inline_graphvizTo use it in your Markdown doc, with SVG output:```graphviz dot attack_plan.svg
digraph G {
    rankdir=LR
    Earth [peripheries=2]
    Mars
    Earth -> Mars
}
```or with PNG:```graphviz dot attack_plan.png
digraph G {
    rankdir=LR
    Earth [peripheries=2]
    Mars
    Earth -> Mars
}
```Alternatively you can still using{%legacy notation but its not recommended.{% dot attack_plan.svg
    digraph G {
        rankdir=LR
        Earth [peripheries=2]
        Mars
        Earth -> Mars
    }
%}Supported graphviz commands: dot, neato, fdp, sfdp, twopi, circo.CreditsInspired byjawher/markdown-dot,
which renders the dot graph to a file instead of inline.Forked fromsprin/markdown-inline-graphvizLicenseMIT License
Package: python3-memcached
Python3 port for pure python memcached client library, ported and being
kept up to date byhttps://github.com/eguvenPlease report issues and submit code changes to the github repository at:https://github.com/eguven/python3-memcachedBelow is the original README content.This package was originally written by Evan Martin of Danga.
Sean Reifschneider of tummy.com, ltd. has taken over maintenance of it.This software is a 100% Python interface to the memcached memory cache
daemon.  It is the client side software which allows storing values in one
or more, possibly remote, memcached servers.  Search google for memcached
for more information.
Package: python3-mmhash
murmurhash is a fast hash function ::>>> import mmhash>>> print(mmhash.get_unsigned_hash("stdyun.com zsp007@gmail.com"))
11740402118952761905>>> print(mmhash.get_hash("stdyun.com zsp007@gmail.com"))
-6706341954756789711MurmurHash2http://murmurhash.googlepages.com/MurmurHash2, 64-bit versions, by Austin ApplebyModified bychangsheng@douban.comPorted to Python3 bygilles@gagniard.orgzsp windows,linux python lib
Package: python3-nbctl
python3-nbctl将ipynb文件转化为markdown文件/convert jupyter *.ipynb file to markdown filesGithub Actions forContainer ipynb to markdownHow to Use by Github Actions- name: convert jupyter *.ipynb file to markdown
        uses: x-actions/python3-nbctl@v1
        with:
          script: >
            find <path> -type f -name "*.ipynb" | grep -v ".ipynb_checkpoints" | xargs -I{} nbctl --input {} --force --debugDev and Testlocal run# install
pip3 install -r requirements.txt
python3 setup.py install

# or
pip3 install python3-nbctlhelpnbctl --help
Package: python3-openttd
python3-openttdis a pure-python client library for interfacing with theadmin server portofOpenTTD.RequirementsPython3.5+Basic usageSee the examples directory for examples :).DocumentationRun:make docs-htmlor:cd docs
make htmlto buildsphinx-baseddocumentation. View with your
favourite web browser fromdocs/sphinx-data/build/html/index.htmlor runmakedocs-view-html.
Package: python3-particle
python-particleA python wrapper around the Particle Cloud API (http://particle.io)Installation NotesInstallable directly via pip. However some systems might need to install requests[security] if they get the InsecurePlatformWarning. That hasn’t been included in the requirements by default because it may not be required on all platforms.Local configuration SupportAs of v0.2 local support is available to configure devices over serial.TestsTests coming soon. Except tests for this particular package are going to be highly localized. You will need to provide a valid, particle username, password and not to mention a proper device ID that can be used to test the claim and request features
Package: python3-ping
A pure python ping implementation using raw sockets.Note that ICMP messages can only be sent from processes running as root
(in Windows, you must run this script as ‘Administrator’).Original Version fromMatthew Dixon Cowlescopyleft 1989-2011 by the python-ping team, seeAUTHORSfor more details.license: GNU GPL v2, seeLICENSEfor more details.Usage~/python3-ping$ sudo ./ping.py google.com

PYTHON-PING google.com (209.85.148.99): 55 data bytes
64 bytes from google.com (209.85.148.99): icmp_seq=0 ttl=54 time=56.2 ms
64 bytes from google.com (209.85.148.99): icmp_seq=1 ttl=54 time=55.7 ms
64 bytes from google.com (209.85.148.99): icmp_seq=2 ttl=54 time=55.5 ms

----google.com PYTHON PING Statistics----
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip (ms)  min/avg/max = 55.468/55.795/56.232

~/python3-ping]# ./ping.py
usage: ping.py [-h] [-q] [-c COUNT] [-W TIMEOUT] [-s PACKET_SIZE] destination
ping.py: error: the following arguments are required: destinationTODOsrefactor ping.pyadd a “suprocess ping”, with output parserNew FeaturesCLI interface -> thanks for Yu-Jie Lin to add this feature with argparse moduleContributeFork this repoonGitHubandsend pull requests. Thank you.HistorySeeHISTORY.rst.LinksSourcecode at GitHubPython Package Index
Package: python3-pip-autoremove
pip3-autoremoveThis repository based onhttps://github.com/tresni/pip-autoremoveandhttps://github.com/invl/pip-autoremove. *Remove a package and its unused dependencies.Supports both Python2 and Python3.How to installHow to install pip3-autoremove for Python3:sudo pip3 install python3-pip-autoremoveHow to install pip3-autoremove for Python2:sudo pip install python3-pip-autoremoveUsagepip3-autoremove packages-to-uninstallTo remove the globally installed package, add "sudo" before the pip3-autoremove command.
Package: python3-pip-skeleton
python3-pip-skeleton-cliprovides the documentation
and a command line tool to enable the adoption ofpython3-pip-skeletoninto a new or existing Python project.PyPIpip installpython3-pip-skeletonSource codehttps://github.com/DiamondLightSource/python3-pip-skeleton-cliDocumentationhttps://DiamondLightSource.github.io/python3-pip-skeleton-cliReleaseshttps://github.com/DiamondLightSource/python3-pip-skeleton-cli/releasesThe relatedpython3-pip-skeletonrepository contains the source
code that can be merged into new or existing projects, and pulled from to
keep them up to date. It can also serve as a working example for those who
would prefer to cherry-pick.python3-pip-skeletonis inspired byjaraco/skeleton.
It provides a generic Python project structure
and allows developers to keep tools and techniques in sync between multiple
Python projects. It integrates the following tools:pip and setuptools_scm for version managementPre-commit with black, flake8 and isort for static analysisPytest for code and coverageSphinx for tutorials, how-to guides, explanations and reference documentationGitHub Actions for code and docs CI and deployment to PyPI and GitHub Pagestox -p: runs pre-commit, pytest, mypy and make docs
- which verifies all the things that CI doesIf you use VSCode, it will run black, flake8, isort and mypy on saveQuick startTo create a new project based on skeleton:python3-pip-skeleton new /path/to/be/created --org my_github_user_or_orgor to adopt skeleton into existing projects:python3-pip-skeleton existing /path/to/existing/repo --org my_github_user_or_orgSeehttps://DiamondLightSource.github.io/python3-pip-skeleton-clifor more detailed documentation.
Package: python-3pl-central
A Python wrapper for the 3PL Central REST APIUsageset up a.envfile in the root of the project:BASE_URL="https://secure-wms.com"AUTH_PATH="AuthServer/api/Token"CLIENT_ID="your-id"CLIENT_SECRET="your-secret"FACILITY_ID=99TPL_KEY="your-tpl-key"GRANT_TYPE="client_credentials"USER_LOGIN_ID="name-this-whatever-you-want"ROUTING_INFO_ACCOUNT_NUMBER="ups-account-number"Verify that you can access the api by runningpython3-mverify_credentialsThen, run the following get a list of methods you can try out, with a handy run-in-place CLI:python3-mexamplesWhich endpoint do you want to try?
1) cancel_test_order

2) create_test_item

3) create_test_order

4) get_carriers_list

5) get_order

Enter a number:LicenseMITSee LICENSE for more details
Package: python3ptbr
Python3ptbrpip install python3ptbrimportartempofunçãoprincipal():print("Olá Mundo!")imprimir("Hello World!")tempo.dormir(2)principal()Python3 library, write python codes in Portuguese.Descrição:Este software é uma ferramenta inovadora projetada para tornar a aprendizagem da programação em Python mais acessível e amigável para iniciantes que falam português. O "python3ptbr" permite que os programadores iniciantes utilizem a linguagem Python em sua língua materna, facilitando o processo de aprendizado e compreensão dos conceitos fundamentais da programação.Recursos Principais:Tradução de Comandos: O programa traduz automaticamente os comandos Python de inglês para português, tornando o código mais compreensível para aqueles que não estão familiarizados com o inglês.Aprendizado Progressivo: O software incentiva o aprendizado progressivo, permitindo que os usuários comecem a programar em português, mas também encorajando-os a aprender o Python em inglês à medida que avançam em sua jornada de programação.Compatibilidade Bilingue: Os usuários podem mesclar comandos em português e inglês em um único script, o que facilita a transição gradual para a versão original do Python em inglês.Como Usar:Baixe e instale o software em seu sistema.pip install python3ptbrEscreva um script com a extensão .pybr exemplo main.pybr e escreva o código em Portuguẽs ou em ingles exmplo:importartempotime.sleep(1)tempo.dormir(1)print("Olá Mundo!")imprimir("Hello World!")Agora é só rodar o script:python3ptbr main.pybrA saída ficará ficará normal como o python em ingles:Olá Mundo!
Hello World!À medida que você ganha experiência e confiança, comece a introduzir comandos em inglês em seus scripts.Use a documentação do Python em inglês para aprofundar seus conhecimentos e expandir sua proficiência na linguagem.Objetivo:O objetivo principal deste software é reduzir a barreira linguística para a aprendizagem da programação em Python, permitindo que mais pessoas tenham a oportunidade de desenvolver habilidades de programação. Ele serve como uma ponte para os falantes de português que desejam ingressar na comunidade global de programação, onde o inglês é amplamente utilizado. Este programa encoraja os usuários a evoluírem para o uso do Python em inglês à medida que se tornam programadores mais experientes.Requisitos do Sistema:Sistema operacional compatível com Python.Contribuições e Suporte:Este software é um projeto de código aberto, e as contribuições são bem-vindas. Se você tiver sugestões, correções de tradução ou recursos adicionais que gostaria de ver implementados, sinta-se à vontade para contribuir para o desenvolvimento do projeto.Para suporte ou dúvidas, entre em contato conosco emjuanbindez780@gmail.com.Avisos Legais:Este software é fornecido "no estado em que se encontra", sem garantias de qualquer tipo. Certifique-se de compreender que a tradução de comandos pode não ser perfeita e que, eventualmente, é importante aprender a programar em Python em inglês para alcançar a proficiência completa.
Package: python3-pytun
python3-pytunpython3-pytunis an update to thepytunmodule that enables installation when using Python3. The package name was
updated for pip installation as the original appears to be abandoned. It should be a drop-in replacement (still useimport pytun.)The patch was originally written by @famince and is availablehere.Originalpytunwas written by @gawen and is availablehere.OriginalREADME.mdcontinues below.pytunpytunis a Python module to manage tun/tap IP tunnel in the same way you would manipulate a file handler.For now, it is only compatible with Linux, probably Unix, maybe MacOsX, and in the future Windows.pytunis under the MIT license.How to useFirst of all, clone this repos or useeasy_installorpip.pip install pytun
easy_install pytunQuite easy. Use theopen()function.import pytun

tun = pytun.open()  # Open a TUN mode tunnelFor a TAP tunnel, add the"tap"argument.tun = pytun.open("tap")tunis the handler for the newly created tunnel and is manipulated like a file.To read/write, use the standard methodsrecv([size = 1500])andsend(buf)buf = tun.recv()
tun.send(buf)tun is alsoselect()compatible to make your network reactor asynchronous.import select

fds = select.select([tun, ...], [...], [...])Finally, you can close the tunnel using the methodclose().tun.close()The tunnel automatically closes when the object is not referenced anymore and the garbage collector destroys the handler.
Package: python3-redtube
Here we go! I’d like to present simple module to accessRedTube API. That API has a few
methods to access their video library with external clients (such as this small piece of code). Only read access is
provided at this moment.So, I’ll show you one small example, how to use this cool library:from redtube import RedClient

red = RedClient()
# Getting top of the top... I think so :)
collection = red.search()
# Search method provides list like object of type RedCollection with video entries of type RedVideo.
print type(collection)
# You can show you total videos for current search and current page
print collection.total, collection.page

# Let's search banana, it's good choice for this search engine
collection = red.search(query='banana', page=2)
# As you can see, we can access next page by page parameter
# Also you can access next page by calling next method from RedCollection instance
collection = red.next()

# You can access video entries by their internal ID
first = red.by_id('1')
# Or by some syntax sugar:
first = red[1]
print first # <RedVideo[1] "Heather taking it deep again">

# RedVideo entries has many useful information about video, ie:
print first.title, first.duration, first.url, first.player_url, first.embed
# As you can see, we can access video streaming url for this client or generate video embed code

# Also you can retrieve tag, category or star lists provided by RedTube
categories, tags, stars = red.categories, red.tags, red.stars
# This methods has internal cache, so you will do only one HTTP request for multi calls.That’s all, guys! Have a nice day!
Package: python3-resolver
Python3 - DNS ResolverThis is a simple script to resolve DNS A/AAAA records.It only uses builtin modules.Installpython3-mpipinstallpython3-resolverSee:PyPIUsageShellIf ran from the shell - use the following parameters:-n/--hostname=> The hostname/DNS-record to resolve-p/--protocol=> IP-Protocol to return (optional; one of '4/6/46')python3dns_resolver.py-h
>usage:DNSResolver[-h]-nHOSTNAME[-p{4,6,46}]>>ScripttoresolveA/AAAADNSrecords
>>options:
>-h,--helpshowthishelpmessageandexit>-nHOSTNAME,--hostnameHOSTNAME
>Thehostname/DNS-recordtoresolve
>-p{4,6,46},--protocol{4,6,46}>IP-Protocoltoreturnpython3dns_resolver.py-nsuperstes.eu
>['89.43.33.99','2a05:8280:f:42ea::3']python3dns_resolver.py-nsuperstes.eu-p4>['89.43.33.99']python3dns_resolver.py-nunsetdomain.com
>[]ProgrammaticallyYou can import the resolver from other python modules/scripts.Installed via PIPfromdns_resolverimportresolve,resolve_ipv4,resolve_ipv6resolve('superstes.eu')# list(['89.43.33.99', '2a05:8280:f:42ea::3'])resolve_ipv4('superstes.eu')# list(['89.43.33.99'])resolve_ipv6('superstes.eu')# list(['2a05:8280:f:42ea::3'])CopiedPer example if the scripts are saved in the same directory.ls.
>dns_resolver.py
>program.pyfromdns_resolverimportresolve,resolve_ipv4,resolve_ipv6resolve('superstes.eu')# list(['89.43.33.99', '2a05:8280:f:42ea::3'])resolve_ipv4('superstes.eu')# list(['89.43.33.99'])resolve_ipv6('superstes.eu')# list(['2a05:8280:f:42ea::3'])
Package: python3-seco-range
python3-seco-rangeRequirementsPython 3pysvnUsage$ python3
Python 3.6.8 (default, Aug  7 2019, 17:28:10) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 
>>> import seco.range
>>> 
>>> range_session = seco.range.Range(host='localhost')
>>> range_session.expand('%{mycluster}:STABLE')
['hostname1', 'hostname2']