Saravanan666/pypi-org huggingface dataset:
Package: ansi-styles
ansi-stylesANSI escape codesfor styling strings in the terminalA port of the Node.js packageansi-stylesto Python.Installpython3 -m pip install -U ansi-stylesUsagefromansi_stylesimportansiStylesasstylesprint(f'{styles.green.open}Hello world!{styles.green.close}')# Color conversion between 256/truecolor# NOTE: When converting from truecolor to 256 colors, the original color#       may be degraded to fit the new color palette. This means terminals#       that do not support 16 million colors will best-match the#       original color.print(f'{styles.color.ansi(styles.rgbToAnsi(199,20,250))}Hello World{styles.color.close}')print(f'{styles.color.ansi256(styles.rgbToAnsi256(199,20,250))}Hello World{styles.color.close}')print(f'{styles.color.ansi16m(*styles.hexToRgb("#abcdef"))}Hello World{styles.color.close}')LicenseMITContactA library byShawn Presser. If you found it useful, please considerjoining my patreon!My Twitter DMs are always open; you shouldsend me one! It's the best way to reach me, and I'm always happy to hear from you.Twitter:@theshawwnPatreon:https://www.patreon.com/shawwnHN:sillysaurusxWebsite:shawwn.com
Package: ansitagcolor
BugsThe normal terminal color libraries provide an easy way to
print text with colors and styles. _ansitagcolor_ provides a binding between a tag
(e.g. error, warn, info) and a givenstyle. Tags are registered at aterminstance and
text can be processed withterm.cprintor replace theprintwithterm.printr.Author:  Alexander Weigl
License: MIT
Date:    2014-03-14
Version: 0.2Getting StartedInstall with pip:pip install --user ansitagcolorRun in python:from __future__ import print_function
import ansitagcolor as ansi
t = ansi.term()
print = t.printr
t.register("error", style( foreground = ansi.Color16Table.White,
                           background = ansi.Color16Table.Red) )

print("{error Error Message!}")
Package: ansiterm
ansiterm Packageansiterm - change color and style (bold, reverse) of text on displayDESCRIPTIONThis manual page documentsansitermmodule, a Python module providing
functions for generating ANSI escape sequences to change the color and the
style (i.e., bold and reverse) of text displayed on the screen.A majority of terminal emulators support ANSI escape sequences.ansitermmodule provides handy functions for changing the color and the style.Please refer tohttps://en.wikipedia.org/wiki/ANSI_escape_codefor the
introduction of ANSI escape sequences.EXAMPLEfromansitermimportcolorforboldin(False,True):forreversein(False,True):fornamein['reset','bold','underline','reverse','gray','red','green','yellow','blue','magenta','cyan','white']:astr=color('text in{}with bold={}, reverse={}'.format(name,bold,reverse),name,bold=bold,reverse=reverse)print(astr)FUNCTIONSansitermmodule provides the following functions.color(astr, name='bold', bold=False, reverse=False)Embed ANSI escape sequences around string ASTR to change the text style to
NAME.  Make the text boldface and reversed video if BOLD or REVERSE is True,
respectively.The following functions are provided as short-cuts.  For instance, blue(astr)
and reest(astr) are equivalent to color(astr, 'blue') and color(astr, 'reset),
respectively.reset(astr, bold=False, reverse=False)bold(astr, bold=True, reverse=False)gray(astr, bold=False, reverse=False)red(astr, bold=False, reverse=False)green(astr, bold=False, reverse=False)yellow(astr, bold=False, reverse=False)blue(astr, bold=False, reverse=False)magenta(astr, bold=False, reverse=False)cyan(astr, bold=False, reverse=False)white(astr, bold=False, reverse=False)INSTALLATIONpip3installansitermAVAILABILITYThe latest version ofansitermmodule is available at PyPI
(https://pypi.org/project/ansiterm/) .SEE ALSOperl(1), perlfunc(1), getopt(3), Getopt::Std(3perl)AUTHORHiroyuki Ohsaki <ohsaki[atmark]lsnl.jp>
Package: ansito
ansitoTranslate ANSI codes to any other format.Currently, only Conky format is supported.Requirementsansito requires Python 3.6 or above.To install Python 3.6, I recommend usingpyenv.# install pyenvgitclonehttps://github.com/pyenv/pyenv~/.pyenv# setup pyenv (you should also put these three lines in .bashrc or similar)exportPATH="${HOME}/.pyenv/bin:${PATH}"exportPYENV_ROOT="${HOME}/.pyenv"eval"$(pyenvinit-)"# install Python 3.6pyenvinstall3.6.8# make it available globallypyenvglobalsystem3.6.8InstallationWithpip:python3.6-mpipinstallansitoWithpipx:# install pipx with the recommended methodcurlhttps://raw.githubusercontent.com/cs01/pipx/master/get-pipx.py|python3

pipxinstall--pythonpython3.6ansitoUsage (as a library)TODOUsage (command-line)usage: ansito [-h] FILENAME

positional arguments:
  FILENAME    File to translate, or - for stdin.

optional arguments:
  -h, --help  show this help message and exitExample:command-that-output-colors|ansito-Real-word example withtaskwarriorin a Conky configuration file:${texecpi60flock~/.tasktasklimit:10rc.defaultwidth:80rc._forcecolor:onrc.verbose:affected,blanklist|ansito-|sed-r's/([^ ])#/\1\\#/g'
Package: ansiwrap
ansiwrapwraps text, like the standardtextwrapmodule.
But it also correctly wraps text that contains ANSI control
sequences that colorize or style text.Wheretextwrapis fooled by the raw string length of those control codes,ansiwrapis not; it understands that however much those codes affect color
and display style, they have no logical length.The API mirrors thewrap,fill, andshortenfunctions oftextwrap. For example:from __future__ import print_function
from colors import *     # ansicolors on PyPI
from ansiwrap import *

s = ' '.join([red('this string'),
              blue('is going on a bit long'),
              green('and may need to be'),
              color('shortened a bit', fg='purple')])

print('-- original string --')
print(s)
print('-- now filled --')
print(fill(s, 20))
print('-- now shortened / truncated --')
print(shorten(s, 20, placeholder='...'))It also exports several other functions:ansilen(giving the effective length of a string, ignoring ANSI control codes)ansi_terminate_lines(propagates control codes though a list of strings/lines
and terminates each line.)strip_color(removes ANSI control codes from a string)See also the encloseddemo.py.
Package: ansiwrap-hotoffthehamster
ansiwrapwraps text, like the standardtextwrapmodule.
But it also correctly wraps text that contains ANSI control
sequences that colorize or style text.Wheretextwrapis fooled by the raw string length of those control codes,ansiwrapis not; it understands that however much those codes affect color
and display style, they have no logical length.The API mirrors thewrap,fill, andshortenfunctions oftextwrap. For example:from __future__ import print_function
from colors import *     # ansicolors on PyPI
from ansiwrap import *

s = ' '.join([red('this string'),
              blue('is going on a bit long'),
              green('and may need to be'),
              color('shortened a bit', fg='purple')])

print('-- original string --')
print(s)
print('-- now filled --')
print(fill(s, 20))
print('-- now shortened / truncated --')
print(shorten(s, 20, placeholder='...'))It also exports several other functions:ansilen(giving the effective length of a string, ignoring ANSI control codes)ansi_terminate_lines(propagates control codes though a list of strings/lines
and terminates each line.)strip_color(removes ANSI control codes from a string)See also the encloseddemo.py.
Package: anslapi
anslapiA python3 module for creating a simple API with AWS Lambda and API Gateway.Installpython3-mpipinstallanslapiConfigurationCreate an api gateway with the methods that are needed, and set up authentication, schemas, etc. as wished. Create a Lambda function and configure our function as the target for each method. Use Lambda proxy mode.Usage examplefromanslapiimportAPIHandlerdefget_user(userid):return"user.name@example.com"defadd(event):importjsonresult={"status":"FAIL"}j=json.loads(event["body"])if"userid"inj:result["response"]=cls.get_user(j["userid"])result["status"]="SUCCESS"return(200,result)else:result["reason"]="Invalid request"return(400,result)deflambda_handler(event,context):ah=APIHandler()ah.add_handler('/add','POST',Actions.add)response=ah.handle(event)returnresponse
Package: ans.protocol.amk
Python client for ans.protocol.amk built on 13:48:43 on 18 September 2023© 2022 ANSYS, Inc.This software is published only for use by ANSYS, Inc. and its
subsidiaries (collectively “Ansys”).Publication of this software does not transfer any rights to any
person outside of Ansys.You may not use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the software for any purpose.
Package: ansq
ansq - Async NSQWritten with native Asyncio NSQ packageInstallationpython -m pip install ansqOverviewReader— high-level class for building consumers withnsqlookupdsupportWriter— high-level producer class supporting async publishing of messages tonsqdover the TCP protocolNSQConnection— low-level class representing a TCP connection tonsqd:full TCP wrapperone connection forsubandpubself-healing: when the connection is lost, reconnects, sends identify
and auth commands, subscribes to previous topic/channelFeaturesSUBPUBDiscoveryBackoffTLSDeflateSnappySamplingAUTHUsageConsumerA simple consumer reads messages from "example_topic" and prints them to stdout.importasyncioimportansqasyncdefmain():reader=awaitansq.create_reader(topic="example_topic",channel="example_channel",)asyncformessageinreader.messages():print(f"Message:{message.body}")awaitmessage.fin()awaitreader.close()if__name__=="__main__":asyncio.run(main())ProducerA simple producer sends a "Hello, world!" message to "example_topic".importasyncioimportansqasyncdefmain():writer=awaitansq.create_writer()awaitwriter.pub(topic="example_topic",message="Hello, world!",)awaitwriter.close()if__name__=="__main__":asyncio.run(main())ContributingCreate and activate a development virtual environment.python-mvenvvenvsourcevenv/bin/activateInstallansqin editable mode and its testing dependencies.python-mpipinstall-e.[testing]Run tests.pytest
Package: ansqlite
ansqliteA python3 module to assist in small sqlite3 database use cases.Installpython3-mpipinstallansqliteUsagefromansqliteimportDatabase,Datatype,PrimaryKeyTypetablename='tablename'db=Database(database_path='/path/to/database/file.db',schemas={tablename:[{"name":"timestamp","datatype":Datatype.INTEGER,"primary_key":PrimaryKeyType.Descending,},{"name":"value","datatype":Datatype.REAL,},],'othertablename':[{"name":"hash","datatype":Datatype.TEXT,"primary_key":PrimaryKeyType.Ascending,},{"name":"text","datatype":Datatype.TEXT,},],})db.insert_data(table_name=tablename,data=[{'timestamp':1699304400,'value':4.496},{'timestamp':1699300800,'value':6.812},{'timestamp':1699297200,'value':7.847},{'timestamp':1699293600,'value':9.548}])db.execute_and_commit(sql=f'UPDATE{tablename}SET value=1.00 WHERE timestamp=1699300800;',errmsg='Failed to set value')rows=db.execute_and_fetchall(sql=f'SELECT * FROM{tablename}where timestamp >= 1699297200 and timestamp < 1699304400 limit 10;',errmsg='Failed to retrieve data')print(rows)
Package: anstu-sign-up
安科填报自动化脚本填报过程自动化，适用于安徽科技学院某填报系统，摆脱被班委催填报的尴尬，以造福劳苦大众允许自定义填报信息支持多人填报（需要相应配置文件）支持Windows, Linux与人工填写几经无差别使用方法Windows用户提供一键脚本, 具体使用方法参见help.txt文件Linux用户需自建python虚拟环境（提供requirements.txt）使用须知以下情况均不负责因使用本脚本而被查处并记过因使用本脚本而造成填写内容不为实际信息（有bug在issue提出）因使用本脚本而造成本人实质性的损失本脚本制作本意仅为方便日常生活，减少重复工作的目的。个人应在保证自身身体健康的情况下使用，积极配合学校防疫工作，时刻检查自身身体情况，若察觉到异常情况，请关停该脚本，认真填写填报信息并上报。请低调使用
Package: answer
OverviewThis project is aimed to serve as a wrapper for the Digipathos dataset, in order to list and download public data from plant pathologies provided by Embrapa (Brazilian Agricultural Research Corporation).Example of pictures:InstallationThe installation is pretty simple if you have a virtualenv already installed on your machine. If you don't please rely toVirtualEnv official documentation.pipinstalldigipathosDocumentationBesides the docstrings, major details about the documentation can be foundhere.TestingThis project is inteded to suit most of the existent needs, so for this reason, testability is a major concern. Most of the code is heavily tested, along withTravisas Continuous Integration tool to run all the unit tests once there is a new commit.UsageYou can use Digipathos in two different ways: via terminal or programatically.CLI (Command-Line Interface)This mode is highly recommended for those who are looking to explore a little bit the dataset. Here you can do the same operations from the programmatic mode, but with the advantage of being able to see all the data that is being retrieved.digipathosAnd then you're gonna be greeted by our dataset browser :-)An example listing all the datasets:Programmaticallydata_loader=DataLoader()# list all the datasetsdatasets=data_loader.get_datasets()# now lets give a look at the cropscrops=data_loader.get_crops()# how about getting all the datasets from a crop?datasets_from_crop=data_loader.get_datasets_from_crop('Pineapple')# now let's download a random datasetdataset_id=random.choice(list(datasets.keys()))data_loader.download_dataset(dataset_id=dataset_id)# download all from a given cropdata_loader.download_datasets_from_crop('Pineapple')# download all the datasetsdata_loader.download_all_datasets()Pretty simple, huh?A working example can be foundhere as a Python script.TroubleshootingIn case of any issue with the project, or for further questions, do not hesitate to open an issue here on GitHub.ContributionsContributions are really welcome, so feel free to open a pull request :-)
Package: answerdiff
Checking Submissions the Boss Way using Celery and DRFDocumentationThe full documentation is athttps://django-answerdiff.readthedocs.org.QuickstartInstall answerdiff:pip install django-answerdiffThen use it in a project:import answerdiffFeaturesTODORunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements-text.txt
(myenv) $ python runtests.pyCreditsTools used in rendering this package:Cookiecuttercookiecutter-pypackageHistory0.1.0 (2015-10-02)First release on PyPI.
Package: ansys-additive-core
OverviewPyAdditive is a Python client library for theAnsys Additiveservice.InstallationYou can usepipto install PyAdditive.pipinstallansys-additive-coreTo install the latest development version, run these commands:gitclonehttps://github.com/ansys/pyadditivecdpyadditivepipinstall-e.For more information, seeGetting Started.Basic usageThis code shows how to import PyAdditive and use some basic capabilities:importansys.additive.coreaspyadditiveadditive=pyadditive.Additive()input=pyadditive.SingleBeadInput(machine=pyadditive.AdditiveMachine(),material=additive.material("Ti64"),id="bead1",bead_length=0.001,# meters)summary=additive.simulate(input)For comprehensive usage information, seeExamplesin thePyAdditive Documentation.Documentation and issuesDocumentation for the latest stable release of PyAdditive is hosted atPyAdditive documentation.In the upper right corner of the documentation’s title bar, there is an option for switching from
viewing the documentation for the latest stable release to viewing the documentation for the
development version or previously released versions.On thePyAdditive Issuespage,
you can create issues to report bugs and request new features. On thePyAdditive Discussionspage or theDiscussionspage on the Ansys Developer portal, you can post questions, share ideas, and get community feedback.To reach the project support team, emailpyansys.core@ansys.com.
Package: ansys-api-acp
ansys-api-acp gRPC Interface PackageThis Python package contains the auto-generated gRPC Python interface files for
ACP.InstallationProvided that these wheels have been published to public PyPI, they can be
installed with:pip install ansys-api-acpOtherwise, see theBuildTo build the gRPC packages, run:pip install build
python -m buildThis will create both the source distribution containing just the protofiles
along with the wheel containing the protofiles and build Python interface
files.Note that the interface files are identical regardless of the version of Python
used to generate them, but the last pre-built wheel forgrpcio~=1.17was
Python 3.7, so to improve your build time, use Python 3.7 when building the
wheel.Manual DeploymentAfter building the packages, manually deploy them with:pip install twine
twine upload dist/*Note that this is automatically done through CI/CD.Automatic DeploymentThis repository contains GitHub CI/CD that enables the automatic building of
source and wheel packages for these gRPC Python interface files. By default,
these are built on PRs, the main branch, and on tags when pushing. Artifacts
are uploaded for each PR.To publicly release wheels to PyPI, ensure your branch is up-to-date and then
push tags. For example, for the versionv0.5.0.gittagv0.5.0
gitpush--tags
Package: ansys-api-additive
ansys-api-additive gRPC Interface PackageThis package contains the gRPC interface files for the Additive
service. It is published both as a python and nuget package.Python InstallationProvided that these wheels have been published to public PyPI, they can be installed with:pip install ansys-api-additivePython BuildTo build the gRPC packages, run:pip install build
python -m buildThis will create both the source distribution containing just the protofiles along with the wheel containing the protofiles and build Python interface files.Python Manual DeploymentAfter building the packages, manually deploy them with:pip install twine
twine upload dist/*Note that this is automatically done through CI/CD.Nuget InstallationThe nuget package is calledAnsys.Api.Additiveand is published
to a repository on GitHub. To access the repository, you will
need to create a nuget source with your GitHub user credentials.dotnet nuget add source --username USERNAME --password GITHUB_TOKEN --store-password-in-clear-text --name ansys "https://nuget.pkg.github.com/ansys/index.json"For more information, seeGitHub Working with the NuGet registry.Nuget BuildTo build the nuget package, run:dotnet pack csharp/Ansys.Api.Additive.csproj -o packageNuget Manual DeploymentOnce the nuget package is built, manually deploy it with the following command. Note that this uses the same nuget source created in the Installation step.dotnet nuget push ./**/*.nupkg --source ansysNote that this is automatically done through CI/CD.Automatic DeploymentThis repository contains GitHub CI/CD that enables the automatic building of source, wheel, and nuget packages for these gRPC interface files. By default, these are built on PRs, the main branch, and on tags when pushing. Artifacts are uploaded for each PR.To publicly release the packages, ensure your branch is up-to-date and then push tags. For example, for the versionv0.5.0.gittagv0.5.0
gitpush--tags
Package: ansys-api-dbu
ansys-api-dbu gRPC Interface PackageThis repository provides the auto-generated gRPC Python interface files for
the Ansys DBU Service.InstallationProvided that these wheels have been published to public PyPI, they can be
installed with:pip install ansys-api-dbuBuildTo build the gRPC packages, run:pip install build
python -m buildThis will create both the source distribution containing just the protofiles
along with the wheel containing the protofiles and build Python interface
files.Manual DeploymentAfter building the packages, manually deploy them with:pip install twine
twine upload dist/*Note that this is automatically done through CI/CD.Automatic DeploymentThis repository contains GitHub CI/CD that enables the automatic building of
source and wheel packages for these gRPC Python interface files. By default,
these are built on PRs, the main branch, and on tags when pushing. Artifacts
are uploaded for each PR.To publicly release wheels to PyPI, ensure your branch is up-to-date and then
push tags. For example, for the versionv0.5.0.gittagv0.5.0
gitpush--tags
Package: ansys-api-discovery
ansys-api-discovery gRPC Interface PackageThis repository provides the auto-generated gRPC Python interface files
for Discovery/SpaceClaim.InstallationProvided that these wheels have been published to public PyPI, they can be
installed with:pip install ansys-api-discoveryBuildTo build the gRPC packages, run:pip install build
python -m buildThis will create both the source distribution containing just the protofiles
along with the wheel containing the protofiles and build Python interface
files.Note that the interface files are identical regardless of the version of Python
used to generate them, but the last pre-built wheel forgrpcio~=1.47was
Python 3.7, so to improve your build time, use Python 3.7 when building the
wheel.Manual DeploymentAfter building the packages, manually deploy them with:pip install twine
twine upload dist/*Note that this is automatically done through CI/CD.Automatic DeploymentThis repository contains GitHub CI/CD that enables the automatic building of
source and wheel packages for these gRPC Python interface files. By default,
these are built on PRs, the main branch, and on tags when pushing. Artifacts
are uploaded for each PR.To publicly release wheels to PyPI, ensure your branch is up-to-date and then
push tags. For example, for the versionv0.5.1.gittagv0.5.1
gitpush--tags
Package: ansys-api-dyna
ansys-api-dyna gRPC Interface PackageThis Python package contains the auto-generated gRPC Python interface files for
dyna.InstallationProvided that these wheels have been published to public PyPI, they can be
installed with:pip install ansys-api-dynaOtherwise, see theBuildTo build the gRPC packages, run:pip install build
python -m buildThis will create both the source distribution containing just the protofiles
along with the wheel containing the protofiles and build Python interface
files.Note that the interface files are identical regardless of the version of Python
used to generate them, but the last pre-built wheel forgrpcio~=1.17was
Python 3.7, so to improve your build time, use Python 3.7 when building the
wheel.Manual DeploymentAfter building the packages, manually deploy them with:pip install twine
twine upload dist/*Note that this is automatically done through CI/CD.Automatic DeploymentThis repository contains GitHub CI/CD that enables the automatic building of
source and wheel packages for these gRPC Python interface files. By default,
these are built on PRs, the main branch, and on tags when pushing. Artifacts
are uploaded for each PR.To publicly release wheels to PyPI, ensure your branch is up-to-date and then
push tags. For example, for the versionv0.5.0.gittagv0.5.0
gitpush--tags
Package: ansys-api-edb
ansys-api-edb gRPC Interface PackageThis repository provides the auto-generated gRPC Python interface files for
the Ansys Edb Service.InstallationProvided that these wheels have been published to public PyPI, they can be
installed with:pip install ansys-api-edbBuildTo build the gRPC packages, run:pip install build
python -m buildThis will create both the source distribution containing just the protofiles
along with the wheel containing the protofiles and build Python interface
files.
Package: ansys-api-fluent
ansys-api-fluent gRPC Interface PackageThis Python package contains the auto-generated gRPC Python interface files for
Fluent.InstallationProvided that these wheels have been published to public PyPI, they can be
installed with:pip install ansys-api-fluentOtherwise, see theBuildTo build the gRPC packages, run:pip install build
python -m buildThis will create both the source distribution containing just the protofiles
along with the wheel containing the protofiles and build Python interface
files.Note that the interface files are identical regardless of the version of Python
used to generate them, but the last pre-built wheel forgrpcio~=1.30was
Python 3.7, so to improve your build time, use Python 3.7 when building the
wheel.Manual DeploymentAfter building the packages, manually deploy them with:pip install twine
twine upload dist/*Note that this is automatically done through CI/CD.Automatic DeploymentThis repository contains GitHub CI/CD that enables the automatic building of
source and wheel packages for these gRPC Python interface files. By default,
these are built on PRs, the main branch, and on tags when pushing. Artifacts
are uploaded for each PR.To publicly release wheels to PyPI, ensure your branch is up-to-date and then
push tags. For example, for the versionv0.5.0.gittagv0.5.0
gitpush--tags