Saravanan666/pypi-org huggingface dataset:
Package: termfactory
termfactoryAboutA python package for generating LaTeX and python code for evaluating residual terms.
The package is used to generate theeinsumequations for thevecc package (link tbd).At the moment the package provides three primary ansatz:full CC(H, CC, P)HZ ansatz(H, CC, S, P)e^T HZ(H, CC, T, eT, P)Both LaTeX and python code can be generated.
Ground state equations are available for all three ansatz.
There are no excited state equations available for HZ ansatz.Installpip install termfactoryUsagedriver.py is the main argparse interfacepy driver.py -husage:driver.py[-h][-l/path/filename.txt][-s][-tT[T...]][-aANSATZ][-esEXCITED_STATE][-rfREMOVE_F_TERMS][-c][-lhs][-pPATH]Code/LatexGenerator

optionalarguments:-h,--helpshowthishelpmessageandexit-l/path/filename.txt,--log_path/path/filename.txtpathtologfile(default:default_logging_file.txt)-s,--stdlogprovideifyouwantthelogtobepipedtostdout(default:False)-tT[T...]ProvidedTruncations,example:-t2222(default:None)-aANSATZ,--ansatzANSATZSpecifyAnsatz(default:None)-esEXCITED_STATE,--excited_stateEXCITED_STATEOnlygroundstate?(default:True)-rfREMOVE_F_TERMS,--remove_f_termsREMOVE_F_TERMSChoosetoremovefterms(default:False)-c,--codeGenerateLaTeXbydefault;`-c`generatescodeinstead.(default:False)-lhsGenerateLaTeXbydefault;`-c`generatescodeinstead.(default:False)-pPATH,--pathPATHfilenameofload/savefile(default:None)ExamplesEvery execution produces three primary files:filename.(py/tex)default_logging_file.txttruncs.jsonGenerating LaTeXfull CCRHSpython3 driver.py -t 1 1 1 1Default filename:ground_state_full_cc_symmetric_equations.texLHSpython3 driver.py -t 1 1 1 1 -lhsDefault filename:ground_state_full_cc_special_LHS_terms.texHZ ansatzRHSpython3 driver.py -t 1 1 1 1Default filename:ground_state_z_t_symmetric_equations.texLHSpython3 driver.py -t 1 1 1 1 -lhsDefault filename:ground_state_z_t_special_LHS_terms.texe^T HZRHSpython3 driver.py -t 1 1 1 1 1Default filename:ground_state_eT_z_t_symmetric_equations.texLHSpython3 driver.py -t 1 1 1 1 1 -lhsDefault filename:ground_state_eT_z_t_special_LHS_terms.texGenerating Python codefull CCRHSpython3 driver.py -t 1 1 1 1 -cDefault filename:ground_state_full_cc_equations.pyLHSpython3 driver.py -t 1 1 1 1 1 -c -lhsDefault filename:ground_state_full_cc_special_LHS_equations.pyHZ ansatzThere is no code generator implemented for the HZ ansatze^T HZRHSpython3 driver.py -t 1 1 1 1 1 -cDefault filename:eT_zhz_eqs_RHS_H(1)_P(1)_T(1)_exp(1)_Z(1).pyLHSpython3 driver.py -t 1 1 1 1 1 -c -lhsDefault filename:eT_zhz_eqs_LHS_H(1)_P(1)_T(1)_exp(1)_Z(1).py
Package: term-from-nat
term_from_nat=========================connect a terminal inside a nat.
used when you want somebody to help you, but he could not connect to your linux because your computer is inside a nat.it is somehow like the ssh, the different is that:thesshis: client connect to server.do something in the server computer.thisterm_from_natis: client connect to server.do something in the client computer.used when:1 when you want somebody to do something in you linux computer
2 but he could not connect to your linux because your computer is inside a nathow to use:COMPUTER1(one nat):
1. pip install term_from_nat
2. python3 -m term_from_nat  or just type: term_from_nat
will show some tips:
client started, use: 
python3 -m term_from_nat -s -t  378885 
 to start the server

COMPUTER2(another nat):
1. pip install term_from_nat
2. python3 -m term_from_nat -s -t  378885   
     or just: term_from_nat -s -t  378885

that's all.old/deprecated usage:
normal usage uses a bridge to connect each-other.
if you have a public ip server, then, you could run this, connect each other without bridge.
1 COMPUTER1: run python3 server_lite.py  {server_port} on one computer that has a public ip.
2 COMPUTER2: run python3 client_lite.py {server_ip} {server_port} on the computer that inside a nat
3 COMPUTER1: type you command.
Package: termgame
TermgameTerminal-based graphical game engineCreated by Gregory Glatzer.InstallationpipinstalltermgameFind it on PyPIhere.FeaturesSimple, easy-to-use API inspired by Unity.Physics engine powered byPymunkAbility to read and render sprites from image files.Framerate and physics timestep control.Statically typed withmypy.User input withkeyboard.ExamplesTo run the examples from the source code, first "build" the package by runningpip install .from the root directory of the project (wheresetup.pyis). Then, you can run any of the examples by runningpythontermgame/examples/<example_name>/game.pyContributingContributions are welcome! Please open an issue or pull request if you have any suggestions or bug reports. The main branch is used for releases, so please open pull requests against thedevelopmentbranch.Before CommittingBefore committing, please run the following commands to ensure that your code is formatted correctly and passes all tests:cdtermgame
blacksrc
mypysrc
flake8src--max-line-length=99pylintsrcTerminal settings to optimize rendering{"terminal.integrated.fontSize":8,"terminal.integrated.scrollback":78,"terminal.integrated.gpuAcceleration":"on"// if you have a GPU, otherwise use "auto"}Upcoming FeaturesDecorator (@) for Gameobject events such asdef walk()that pass in engine and frame to them so you don't have to.Add support for 3D rendering.Approach: Raycasting withpycaster, or Binary space partitioning (BSP)Add support for importing 3D models.Build wavefront files (obj) in Blender and import .obj files withpywavefrontAdd support for sound effects and music.
Package: termgl
TermGLCython binding for a terminal-based graphics library for both 2D and 3D graphics.Works in all terminals supporting ANSI escape codes.Support for Windows and UNIX.Realtime input reading from terminal for user-interaction.16 Background colors, 16 foreground colors, bold and underline.Table of ContentsDocumentationGalleryDocumentationDocumentation can be foundhereBasic Exampleimport termgl as tgl

# Create context and enable settings
ctx = tgl.TGL(10, 10, tgl.gradient_min)
ctx.enable(tgl.Setting.OUTPUT_BUFFER)

# Write to the framebuffer
ctx.puts(1, 0, b"Hello,\nWorld!", tgl.Color.WHITE | tgl.Color.BLUE_BKG)
ctx.line(1, 2, 0, 255, 5, 10, 0, 0, tgl.Color.RED)
ctx.triangle(3, 2, 0, 255, 6, 8, 0, 0, 10, 5, 0, 127, tgl.Color.CYAN, fill=True)

# Print
ctx.flush()DemoA variety of demos can be found in thedemodirectory
To run the demo utility, simplypython demo/demo.pyAvailable demos and TermGL features used:Utah TeapotRenders a rotating 3D Utah Teapot.Backface cullingZ bufferingDouble-width characters3D camera3D transformations3D rendering3D ShadersStar PolygonRenders a star polygon in steps using random colors.ColorsLine renderingColor PaletteRenders a palette of various text colors and styles.Colors & ModifiersMandelbrotRenders an infinitely zooming-in Mandelbrot set.Point renderingRealtime KeyboardDisplays keyboard input in realtime.Text renderingRealtime keyboard input
Package: termial-random
This minimalistic CPython extension provides termial random implementation.Seethisandthisarticle for more info on termial random.Basically, the random generator prioritizes numbers closer to 0. See the
distribution plotted below for n==10.InstallationSimply install this library using pip:pip install termial-randomUsageThe module provides 3 core routines:termial_random.seed(n)used to initialie glibc random number generator based onnprovidedtermial_random.seed_init()used to initialie glibc random number generator based on the current timetermial_random.random(n)used to compute termial random number for the givennBenchmarksSeethis gist with benchmarks.
Package: termii-py
Termii-pySuper easy SDK forTermiiSMS APIs.InstallationInstall usingpip install -U termii-py.Simple Examplesfromtermii.tokenimportTokenfromtermii.schemas.tokenimportTokenTypetoken_client=Token()token_client.authenticate_from_env()response=token_client.send_token(message_type=TokenType.ALPHANUMERIC,receiver="2348152436475",)print(response)fromtermii.messagingimportMessagingmessaging_client=Messaging()messaging_client.authenticate_from_env()receivers=["2348152436475","2347153436435"]response=messaging_client.send_message(receivers=receivers,text="Hello all. Thanks for visiting.")print(response)fromtermii.campaignimportCampaigncampaign_client=Campaign()campaign_client.authenticate_from_env()response=campaign_client.create_phonebook(name="Test",description="Test description.")print(response)Authentication.There are two ways of authenticating requests:With env variables:
To authenticate with environment variables setTERMII_API_KEY,TERMII_ENDPOINT_URL,TERMII_SENDER_IDto your termii api key, endpoint url and sender ID respectively. Then call client.authenticate_from_env()Example:importosfromtermii.campaignimportCampaignos.environ["TERMII_API_KEY"]="ukwiwe4642eh"os.environ["TERMII_ENDPOINT_URL"]="https://api.ng.termii.com"os.environ["TERMII_SENDER_ID"]="Test"campaign_client=Campaign()campaign_client.authenticate_from_env()A second method is to pass in the credentials directly. For that callauthenticate_direct()on all clients and pass-in the credentials.ContributingFor guidance on setting up a development environment and how to make a
contribution to termii-py, seeContributing to Termii-py.Reporting a Security VulnerabilityPlease send a private mail tolordunyime@gmail.comif you discover any security vulnerability. I'll be happy to work with you on a fix.
Package: termiipython
termiipythonTermii Python Library for Termii APIInstallationpipinstalltermiipythonUsagefromtermiipython.tokenimportTokenfromtermiipython.schemas.tokenimportTokenTypetoken_client=Token()token_client.authenticate_from_env()response=token_client.send_token(message_type=TokenType.ALPHANUMERIC,receiver="2348152436475",)print(response)fromtermiipython.messagingimportMessagingmessaging_client=Messaging()messaging_client.authenticate_from_env()receivers=["2348152436475","2347153436435"]response=messaging_client.send_message(receivers=receivers,text="Hello all. Thanks for visiting.")print(response)fromtermiipython.campaignimportCampaigncampaign_client=Campaign()campaign_client.authenticate_from_env()response=campaign_client.create_phonebook(name="Test",description="Test description.")print(response)Authentication.There are two ways of authenticating requests:With env variables:To authenticate with environment variables setTERMII_API_KEY,TERMII_ENDPOINT_URL,TERMII_SENDER_IDto your termii api key, endpoint url and sender ID respectively. Then call client.authenticate_from_env()Example:importosfromtermiipython.campaignimportCampaignos.environ["TERMII_API_KEY"]="ukwiwe4642eh"os.environ["TERMII_ENDPOINT_URL"]="https://api.ng.termii.com"os.environ["TERMII_SENDER_ID"]="Test"campaign_client=Campaign()campaign_client.authenticate_from_env()A second method is to pass in the credentials directly. For that callauthenticate_direct()on all clients and pass-in the credentials.ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensetermiipythonwas created by Solomon Olatunji. It is licensed under the terms of the MIT license.Please send a private mail tolordunyime@gmail.comif you discover any security vulnerability. I'll be happy to work with you on a fix.
Package: termill
TermillA command line utility library to print out multiple lines of text and replace
them. It's simple to print out a single line and replace it by using a carriage
return:print("foo",end="\r")print("bar")but that doesn't work with multiple lines. But by utilising backspace
characters and the width of the terminal, you can actually replace multiple
lines.This library is just to handle that, so that you can print out lines, flush
them, then print out new lines ontop of the old ones. A simple demo is included
(demo.py) that just prints out the current time for 5 seconds.This was just thrown together as a proof of concept, so it's likely very buggy.
This has also only been tested on my MacOS machine, with ZSH. I have no idea if
this works anywhere else.Why not curses?I wanted to be able to monitor certain things and print out regular updates to
the terminal. As far as I could tell (based on very very limited research) I
could do that with curses, but it would have to take over the whole terminal.I want to be able to print out few lines and update them, without having to
take over the terminal, the idea being that I can see the history in my
terminal right before running whatever is printing out updates.UsageimporttimefromtermillimportTermillt=Termill()t.write("line one")t.write("line two")t.write("line three")t.flush()time.sleep(1)t.writelines(["line one has changed","there will be no line three"])t.flush()Demo
Package: terminado
TerminadoThis is aTornadowebsocket backend for theXterm.jsJavascript terminal emulator library.It evolved out ofpyxterm, which
was part ofGraphTerm(as
lineterm.py), v0.57.0 (2014-07-18), and ultimately derived from the
public-domainAjaxtermcode, v0.11 (2008-11-13) (also on Github as part ofQWeb).Modules:terminado.management: controls launching virtual terminals,
connecting them to Tornado's event loop, and closing them down.terminado.websocket: Provides a websocket handler for
communicating with a terminal.terminado.uimodule: Provides aTerminalTornadoUI
Module.JS:terminado/_static/terminado.js: A lightweight wrapper to set up a
term.js terminal with a websocket.Local Installation:$ pip install -e .[test]Usage example:importos.pathimporttornado.webimporttornado.ioloop# This demo requires tornado_xstatic and XStatic-term.jsimporttornado_xstaticimportterminadoSTATIC_DIR=os.path.join(os.path.dirname(terminado.__file__),"_static")classTerminalPageHandler(tornado.web.RequestHandler):defget(self):returnself.render("termpage.html",static=self.static_url,xstatic=self.application.settings["xstatic_url"],ws_url_path="/websocket",)if__name__=="__main__":term_manager=terminado.SingleTermManager(shell_command=["bash"])handlers=[(r"/websocket",terminado.TermSocket,{"term_manager":term_manager}),(r"/",TerminalPageHandler),(r"/xstatic/(.*)",tornado_xstatic.XStaticFileHandler,{"allowed_modules":["termjs"]},),]app=tornado.web.Application(handlers,static_path=STATIC_DIR,xstatic_url=tornado_xstatic.url_maker("/xstatic/"),)# Serve at http://localhost:8765/ N.B. Leaving out 'localhost' here will# work, but it will listen on the public network interface as well.# Given what terminado does, that would be rather a security hole.app.listen(8765,"localhost")try:tornado.ioloop.IOLoop.instance().start()finally:term_manager.shutdown()See thedemos
directoryfor
more examples. This is a simplified version of thesingle.pydemo.Run the unit tests with:$ pytest
Package: terminal2048
terminal2048: 2048 in the terminalThis is a small implementation of Gabriele Cirulli's2048 gamein the terminal using Python. I wrote it to learn about using thecurseslibrary in Python. I learned enough aboutcursesto prefer the much smootherblessedlibrary instead, so that's what's used here.(You might also be interested in a more common package,term2048, also available atPyPI.)Installationpipinstallterminal2048Runningterminal2048Once you've installed the package, you can run the game from the terminal:terminal2048Useterminal2048 --helpto print help options:usage:terminal2048[-h][-wWIDTH][--heightHEIGHT][-s{S,M,L,XL}][--start_valueSTART_VALUE]2048gameintheterminal.Inspiredbyhttps://play2048.co/

options:-h,--helpshowthishelpmessageandexit-wWIDTH,--widthWIDTHWidthoftheboard(default:4)--heightHEIGHTHeightoftheboard(default:4)-s{S,M,L,XL},--size{S,M,L,XL}Boardsize(options:S,M,L,XL;default:M)--start_valueSTART_VALUEHigheststartingtilevalue(default:4)CompatibilityI've only run this on MacOS so far, and the terminal management is pretty naive.
Let me know if you have issues on a given OS or terminal setup.Contact & bug reportsBug reports and pull requests are welcome!
Feel free to contact me onGithubor by email atevan_jones@mac.com.)
Package: terminal-animation
terminal_animationA simple package to make beautiful terminal wait animationsInstallpipinstallterminal-animationHow to useimportanimationimporttime# 1 use as classwait_animation=animation.Wait()wait_animation.start()do_something()wait_animation.end()#2 use as decorator@animation.wait()defdo_something_else():# long functiontime.sleep(5)CustomizationThe package uses a default animation with dots.
It allows users to customize the the animation with different parameters.The default settings are:color:whitespeed:0.2animation=['    ','.   ','..  ','... ','....']ColorThe color of the characters. Available options are:black...red...green...yellow...blue...magenta...cyan...white...SpeedThe speed between, the animation states.0<speed<1AnimationTo use a custom animation, you have to pass a string array containing the seperate steps of the animation.
For example, a simple clock animation would look like thisclock=['-','\\','|','/']@animation.wait(clock)defdo_something():# long functionExamples# default animation (white, dots, default speed)@animation.wait()defdefault():time.sleep(10)# clock animation (white, default speed)clock=['-','\\','|','/']@animation.wait(clock)defdo_something():time.sleep(10)# horizontal line animation (blue, default speed)lines=['   ','-  ','-- ','---']@animation.wait(lines,color="blue")defdo_something_else():time.sleep(10)# hashtag animation (cyan, slow)tags=["#   ","##  ","### ","####"]animation=animations.Wait(tags,color="blue",speed=0.5)animation.start()time.sleep(4)animation.stop()
Package: terminal-banner
A text banner for use in terminal applications.Exampleimportterminal_bannerbanner_text="This is my banner text.\n\nThis is a second line of text."my_banner=terminal_banner.Banner(banner_text)print(my_banner)Output:******************************************...****
* This is my banner text.                       *
*                                               *
* This is a second line of text.                *
******************************************...****InstallationTo install the python package with pip:pip install terminal_bannerFor source:git clone https://github.com/martincyoung/terminal_bannerLicenseMIT License

Copyright (c) 2017 Martin Craig Young

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: terminalcast
TerminalcastCommand line tool to cast local video files to your chromecast.Inspired byhttps://github.com/keredson/gnomecastSupported media typesCheckouthttps://developers.google.com/cast/docs/mediafor your Chromecast model.Use ffmpeg to convert unsupported files to a supported format:ffmpeg -i '{input_file}' -metadata title="{title}" -map 0 -c:v {video_codec} -c:a {audio_codec} -c:s copy '{output_file}'Supported Chromecast versionsIn principle this should work with any Chromecast which is supported byhttps://github.com/home-assistant-libs/pychromecast.In practice, I discovered that a Chromecast with Google TV enables you to control the player via the remote control, which is very nice.Installationpip install terminalcastHow is it working?Terminalcastcreates a little HTTP Server at your current machine and serves your media file there. Then it tells the
Chromecast the play the stream served at your IP with the corresponding path. That's it! (The devil is in the details.)TerminalcastusesBottleto create a small app providing the media file. This app is
served byPaste.On the other handTerminalcastdetects and plays the media viaPyChromecast.For file information and conversionffmpeg-pythonis used.
Package: terminal-character-sheet
Terminal Character SheetTCS is a Python package that provides an interface to create and dynamically create your own programmable charactersheet.Born of a homebrewing experiment gone right. TCS was created after Finding that there are few options for creating character sheets for those truly game-breaking characters that require a turing complete set of tools in order to describe them accurately.TCS provides users with the ability to generate characters according to standard 5e rules or inject their own personal ruleset for their characters.SetupInstallationThe public TCS repository is hosted viaGitHubwhere the source code can be accessed within the restrictions of the LICENSE file.Stable scheduled releases of TCS binary installers are avaiable through thePython Package Index (PyPI)$ pip install terminal-character-sheetthe package is then accessible as any other python package### ./Corrin_TossCobble.py

import TerminalCharacterSheet as tcs

...DevelopmentThe supplementary directories for testing, examples, etc. will not by default have TCS in their PYTHONPATH, to enable the scripts in these directories add this to your python path by either installing the PyPI package or adding the root directory to the PYTHONPATH in your virtual environment### /venv/Lib/site-packages/_virtualenv.py 

PROJECT_ROOT_DIR = ...
sys.path.append(PROJECT_ROOT_DIR)

...
Package: terminalchart
TerminalChartget charts on terminal
It will take x and y values as an input and output a chart on the commandline
or to a file.
optional arguments:
-h, --help            show this help message and exit
-t TERMINAL TERMINAL, --terminal TERMINAL TERMINAL
append x and y values with the command if values are
short. Like -t '1,2,3' '3,2,3' or like -t '1 2 3' '3 2
3'
-f FILE, --file FILE  add values in a file. like x: 1 2 3, y:3 2 3 or like
x: 1,2,3, y:3,2,3 and pass the input like: -f
input_file, recommended for large set of values
-c CHARACTER, --character CHARACTER
pass the character you want to be displayed on chart,
will default to %& if none given
-o OUTPUT, --output OUTPUT
where you want your output to be, -o t for terminal,
-o output_file for fileInstallationpip3 install terminalchartUsagefrom commandlinepython3 -m terminalchart -f file.txt -o outputwith characterpython3 -m terminalchart -f file.txt -o t -c 'c'from within pythonfrom teminalchart import terminalchart as tc
tc(['-f', 'file.txt', '-o', 'output1'])
tc(['-f', 'file.txt', '-o', 'output1', '-c', 'c'])
tc(['-f', 'file.txt', '-o', 't'])
tc(['-f', 'file.txt', '-o', 't', '-c', 'c'])
Package: terminalcolor
TerminalColorTerminalColor is used to change the color of the text displayed on the Python terminal.Brightnesses(3/4bit) and Bit modes(8bit, 24bit)darklight8bit24bit or rgbColors(3/4bit)redgreenyellowbluemagentacyanText Typesbolditalicunderline3/4bit color modectext(color="brightness-color_name")8bit color modectext(color="8bit-color_code")24bit color modectext(color="24bit-r;g;b")ctext(color="rgb-r;g;b")Example Codefromterminalcolorimportctext,cprint"""ctext"""# colorprint(ctext(text="example",color="dark-blue"))# background colorprint(ctext(text="example",bg_color="light-blue"))# single text typeprint(ctext(text="example",text_type="bold"))# multiple text typeprint(ctext(text="example",text_type=["italic","underline"]))# 8bit color modeprint(ctext(text="example",color="8bit-231"))# 24bit color modeprint(ctext(text="example",color="24bit-91;92;239"))print(ctext(text="example",color="rgb-91;92;239"))"""cprint"""cprint(text="example",color="light-yellow",bg_color="dark-blue",text_type="bold")