Saravanan666/pypi-org huggingface dataset:
Package: asciigraf
Asciigraf is a python library that turns ascii diagrams of networks into
network objects. It returns anetworkxgraph of nodes for each alpha-numeric element in the input text; nodes
are connected in the graph to match the edges represented in the diagram
by-,/,\and|.InstallationAsciigraf can be installed from pypi using pip:~/$ pip install asciigrafUsageAsciigraf expects a string containg a 2-d ascii diagram. Nodes can be an
alphanumeric string composed of words, sentences and punctuation (for a look at
what is all tested to work, see thenode recognition tests). Edges can be
composed of-,/,\and|.importasciigrafnetwork=asciigraf.graph_from_ascii("""
          NodeA-----
                   |
                   |---NodeB
                                     """)print(network)>>><networkx.classes.graph.Graphat0x7f24c3a8b470>print(network.edges())>>>[('NodeA','NodeB')]print(network.nodes())>>>['NodeA','NodeB']Networkx provides tools to attach data to graphs, nodes and edges, and asciigraf
leverages these in a number of ways; in the example below you can see that
asciigraf uses this to attach ax, yposition tuple to each node
indicating the line/col position of each node (0,0is at the top-left).
It also attaches alengthattribute
to each edge which matches the number of characters in that edge, as well
as a list of positions for each character an edge. In addition, the input data
is attached as a graph attributeascii_stringfor reference.print(network.nodes(data=True))>>>[('NodeA',{'position':(10,1)}),('NodeB',{'position':(23,3)})]print(network.edges(data=True))>>>[('NodeA','NodeB',OrderedDict([('length',10),'points',[...]))]print(network.edge['NodeA']['NodeB']['points'])>>>[(15,1),(16,1),(17,1),(18,1),(19,1),(19,2),(19,3),(20,3),(21,3),(22,3)]print(network.graph["ascii_string"])>>>NodeA-----||---NodeBAsciigraf also lets you annotate the edges of graphs using in-line labels —
denoted by parentheses. The contents of the label will be attached to the edge
on which it is drawn with the attribute namelabel.network=asciigraf.graph_from_ascii("""

    A---(nuts)----B----(string)---C
                  |
                  |
                  |
                  D---(pebbles)----E

""")print(network.get_edge_data("A","B")["label"])>>>nutsprint(network.get_edge_data("B","C")["label"])>>>stringprint(network.get_edge_data("D","E")["label"])>>>pebblesprint(hasattr(network.get_edge_data("B","D"),"label"))>>>FalseHave fun!importasciigrafnetwork=asciigraf.graph_from_ascii("""
          s---p----1---nx
         /    |        |
        /     |        0---f
       6l-a   c--
      /   |      \--k
     /   ua         |  9e
    q      \        | /
            \-r7z   jud
                \    |
                 m   y
                  \  |
                   v-ow
                             """)
Package: asciigraphics
ascii-graphicsNoteto check the code gotosrc/asciianim.pyon running code goes into full screen u can get out of the full screen by pressing f11this is only available for windows operating systems right now(best used on windows 10)(could work on other operating systems -   not tested)we need to configure our command prompt to show us square texts or else
program will give us a wroped in y direction result to do this
*open command prompt*right click on top and goto defaults__goto fonts and selectRaster Fontsand of font size 88 and save it__
(take a note of your previous settings cause its highly probabable that you wont like this fontinstall the software by usingpython -m pip install asciigraphicsor in some systemspy -m pip install asciigraphicsorpip install asciigraphicsUsage :Note:variableimplies it has a default vaulecreate a new python filethen first we need to import the moduleimport asciigraphics as athen we need to create canvas we can do that with functiona.createcanvas()this creates a full screen canvas if u want to edit size and fulscreeness the arguments area.createcanvas(width,height,bool_fullscreen)a.draw()updates the screena.clearbg()clear the screen2da.point(x,y,color,intensity)places a point with given color and intensity at a given positionNote :intensity ranges from 0 to 68 int values
color ranges from [0,0] to [15,15] int array valuesa.line_2d(x1,y1,x2,y2,color,intensity,key)draws a line for given points,if key is set to true updates after drawing the
line automatically if set to false we need to update it manually usefull for speed when u draw multiple lines u can update all of them at oncea.rect_2d(x1,y1,width,height,color,intensity,key)draws a rectangle with given width and height @ position x,ya.ellipse_2d(xc, yc,rx, ry,color,intensity,key)draws a ellipse at xc,yc with radius rx,rya.arc_2d(x,y,r,a,color,intensity,key)draws an arca.scale_2d(s,color,intensity,key)scales the whole 2d spacea.transform_2d(x,y,color,intensity,key)transform the whole 2d spacea.rotate_at_2d(x,y,a,color,intensity,key)rotates the whole 2d spacea.fill(x,y,Nc,fillc,intensity,key,Pc)Nc is boder color and fillc is the fillcolora.text(x,y,string,color,key)puts a text at given location with warping3dmake a 3d object in blender export it as an obj file and while exporting only tick the option triangulate faces and untick anything else to make sure this can import itto import the obj file u can use the the functionobj = a.import_obj("(file location)..../objfile.obj")u can draw this object with the functiona.Draw_Object(obj,at,showmesh,fillkey,key,light,camera)this will draw the object at distanceatif showmesh is set to true it will showmesh and fillkey is set to true it will
fill the meshNote :here light and camera are of type vector3d created a by dataclass ie to change the light direction make a variablel = a.vector3d((float),(float),(float))and hence this will draw the objectto rotate the points array we have functiona.rxa(angle,points)a.rya(angle,points)a.rza(angle,points)to rotate points in obj variablep = obj.prxa(angle,p)ora.rya(angle,p)ora.rza(angle,p)obj.p = pthis will rotate points by a given angle
Package: ascii_image
![image](https://img.shields.io/pypi/v/ascii_image.svg)
![image](https://img.shields.io/pypi/l/ascii_image.svg)
![image](https://img.shields.io/pypi/pyversions/ascii_image.svg)將所有圖片轉換成 ASCII-art 形式的文字檔。
Turn the image into ASCII-art format text file.## Installation
To install , simply use pip of course):
安裝方法，只要使用 pip 安裝即可。`{.sourceCode.bash} $ pip install ascii_image `## Usage`python import ascii_image ascii_image.toASCII(imagePath, outFilePath, scale) ``+ imagePath[str]: 欲轉換的圖片路徑 Image you want to change to ascii image
+ outFilePath[str]: 輸出檔案名稱 output file name
+ scale[tuple]: 輸入為兩個 int 正整數(Width, Height), 每個 ASCII 文字代表的像素(pixels)寬(Width)與高(Height)
Package: asciimage
asciimageA library designed in python to convert images into ascii paintings.
To install:pip install asciimagepip install docxpip install python-docxFor more examples or if you are still struggling with installation check out theJupyter notebookNote:In some cases, you might get the error "No module named'exceptions'". This is because the docx and python-docx libraries are not installed properly.You can try the library extensively onGoogle Colab. Create a copy of this notebook and make edits as necessary.Also, in case of exception like 'too many values to unpack', try using a jpg image.This library works best with JPG imagesTable of ContentsInstallationMotivationExampleSampleTroubleshootingInstallationThe repository contains a zipped file of my Python package asciimage and should be installed via pip.Instalation procedure:pip install asciimagepip install docxpip install python-docx#The docx and python-docx libraries must be installedMotivationThe package is intended as a simple drawing tool that produces ASCII art.The user will upload an image. The image has to be a jpg or png image. The image should have a nice contrast for proper output.The package contains the function make_ascii_image() which produces ascii artFor the colored ASCII image function, the input images should not be very richly colored and the function works well for images of small size, up to dimensions 256X256.ExampleThis is the way to run the module:from asciimage import *
	from PIL import Image #import the module
	image_path = r"input_image.jpg"
	file_path = r"output.txt" #'output.txt' is the destination where the ASCII art will be stored
	ascii_char = list(",.")
	height = 400 #intended height of output file
	width = 400 #intended width of output file
	art = asciimage(image_path,file_path,ascii_char,height,width) #optional: ascii_char,height,width
	art.make_ascii_image()

	#for colored ascii image
	from PIL import Image
	from docx import *
	from docx.shared import *
	image_path = r"input_image.jpg"
	file_path = r"output.doc" #'output.doc' is the destination where the ASCII art will be stored
	art = asciimage(image_path,file_path) #compulsory: image_path,file_path
	#this function outputs a doc file only
	art.make_colored_ascii(64)#produces 64X64 image;SampleInput Image:Output text file:Colored ASCII Input Image:Output doc file:If you like the library, please consider giving it a star on Github :)TroubleshootingThis is a common error:If this happens, it is because of python-docx not being installed. In that case, please proceed with:pip install python-docxpip install docx
Package: asciimathml
Translates from ASCIIMathML (an easy to type and highly readable way to
represent math formulas) into Presentation MathML (a w3c standard directly
displayable by some web browsers).The MathML tree is represented by Elements from the standard
xml.etree.ElementTree python library.The obtained tree can then be further manipulated and then serialized into a
string to be included for example in a HTML document.Also included is a markdown extension that allows the use of ASCIIMathML,
eclosed between $$, inside markdown documents.
Package: ascii-minesweeper
ASCII MinesweeperInspired by a minesweeper game on my graphing calculator, I decided to create this version that you can play directly in your terminal. I originally started this project as an Easter egg project to embed into another Python script. This implementation is written in Python and usesnumpyunder the hood. While it is calledascii-minesweeper, it actually does use a few characters not in the ASCII character set. Hope you enjoy playing!GameplayInstallpipinstallascii-minesweeperRunIn order to run the program from the terminal, you can type:minesweeperOtherwise, you can also launch the program from another Python script as an Easter egg like this:fromminesweeperimportPlayMinesweeperplay=PlayMinesweeper()play.launch_game()ControlsArrow keys or WASD - Moves the cursorSpace - Mark a square as a flag, question mark, or back to hiddenEnter - Select a square to uncoverBackspace or CTRL-C - Returns to main menuPlay in your web browserClick this link below to open the code in Gitpod and sign in with your GitHub account.
Package: asciimol
asciiMOLA basic molecule viewer written in Python, using curses; Thus, meant for linux terminals.Features:Opening default cartesian .xyz filesOrthographic viewNavigationZoom, Rotation, Auto-RotationBond detection and displaySupport for simple .xyz trajectoriesOptional integration of ASE and RDKit pypi packages for more formats and SMILESInstallationpipinstallasciimol(Note: pip will install a run script in $HOME/.local/bin/ if you do not install with root permissions, so make sure this
directory is part of your $PATH.)You can also runpipinstallasciimol[formats,smiles]to automatically install ASE for formats and RDKit for smiles.
Package: asciinema-automation
Asciinema-Automation is a Python package which provides a small CLI utility to automateasciinemarecordings. The only dependencies are asciinema andPexpect.ExampleThis example is generated reading withasciinema-automationa script that callsasciinema-automationwhich reads thehello_world.shexample in this repository 🙃Numerous examples can also be foundhere.InstallationYou can usepipto install:python3-mpipinstallasciinema-automationOr you can install it directly using this GitHub repository. In this case, you need to callgit cloneto recover the source code of this repositorygitclonehttps://github.com/PierreMarchand20/asciinema_automation.gitand then call pip in your local folder of this repository to install this package and its dependenciespip3install.HistoryThis repository is inspired byasciiscript, which is not maintained any more. I first made a fork, but being not very familiar with go, I preferred to rewrite everything in python.
Package: asciinemaster
=============Asciinemaster=============.. image:: https://img.shields.io/pypi/v/asciinemaster.svg:target: https://pypi.python.org/pypi/asciinemaster.. image:: https://img.shields.io/travis/deeplook/asciinemaster.svg:target: https://travis-ci.org/deeplook/asciinemaster.. image:: https://readthedocs.org/projects/asciinemaster/badge/?version=latest:target: https://asciinemaster.readthedocs.io/en/latest/?badge=latest:alt: Documentation Status.. image:: https://pyup.io/repos/github/deeplook/asciinemaster/shield.svg:target: https://pyup.io/repos/github/deeplook/asciinemaster/:alt: Updates.. image:: https://mybinder.org/badge.svg:target: https://mybinder.org/v2/gh/deeplook/asciinemaster/master?filepath=notebooks/tutorial.ipynbAsciinemaster contains some experiments to add features to drive Asciinema.* Free software: GNU General Public License v3* Documentation: https://asciinemaster.readthedocs.io.This will take a shell-like script, iterate over its commands, execute them,and record the commands and their respective output as an Asciinema.org (v2)screencast.Later, it will also take a shell-like script and the generated screencastfrom it, re-execute the script and compare the new screencast to the old onefor testing purposes.Features--------* TODOExamples--------* TODOCredits-------This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template... _Cookiecutter: https://github.com/audreyr/cookiecutter.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage=======History=======0.1.1 (2018-04-xx)==================Features added--------------* Added initial aciinemaster code, developed before as a single script.* Replaced click with argparse.* Added CHANGES.rst (inspired by that of lxml).0.1.0 (2018-04-26)==================Features added--------------* Created project skeleton using audreyr/cookiecutter-pypackage template.
Package: asciinet
NOTE: this is a fork of the original asciinet libary which seems to be abandoned. This fork is mainly intended to build artifacts to upload to pypi and conda.asciinet is a wrapper over the [ascii-graphs](https://github.com/cosminbasca/ascii-graphs) library for printing [networkx](https://networkx.github.io/) graphs as ASCII.Important NotesThis software is the product of research carried out at the [University of Zurich](http://www.ifi.uzh.ch/ddis.html) and comes with no warranty whatsoever. Have fun!TODO’sThe project is not documented (yet)How to Install the ProjectTo installasciinetyou have two options: 1) manual installation (install requirements first) or 2) automatic withpipInstall the project manually from source (after downloading it locally):`sh $ cd pyasciinet $ python setup.py install `Install the project with pip:`sh $ pip installhttps://github.com/cosminbasca/asciinet/pyasciinet`Also have a look at the build.sh script included in the codebase for a complete setup of the build processThanks a lot to[University of Zurich](http://www.ifi.uzh.ch/ddis.html) and the [Swiss National Science Foundation](http://www.snf.ch/en/Pages/default.aspx) for generously funding the research that led to this software.
Package: asciiplot
asciiplotPlatform-agnostic, highly customizable sequence plotting in the consoleInstallationpipinstallasciiplotPlot Appearance Configuration OptionsYou may set the/achart height & titlecolor of virtually all chart components and areas, picked from a wide array of shades due to the integration ofcoloredmargin between consecutive data points to widen your charttick point color, to make the tick points visually stand out in case of a margin having been setchart indentation within its hosting terminal, or whether it ought to be centered in it, respectivelyaxes descriptionsx-axis tick labels, which may be set to contain strings instead of just numeric valuesy-axis tick label decimal placesUsage Examplesfromasciiplotimportasciiize,Colorprint(asciiize([0,1,1,2,3,5,8,13,21],sequence_colors=[Color.BLUE_3B],height=22,inter_points_margin=5,background_color=Color.LIGHT_SALMON_1,tick_point_color=Color.RED_1,label_color=Color.BLUE_VIOLET,label_background_color=Color.DEEP_PINK_3A,title='Fibonacci',title_color=Color.RED_1,x_axis_description='x',y_axis_description='y',center_horizontally=True))fromasciiplotimportasciiize,Colorprint(asciiize([17,21,19,19,5,7,12,4],[7,8,3,17,19,18,5,2,20],sequence_colors=[Color.RED,Color.BLUE_VIOLET],inter_points_margin=5,height=20,background_color=Color.GREY_7,title='Random Sequences',title_color=Color.MEDIUM_PURPLE,label_color=Color.MEDIUM_PURPLE,x_axis_description='x',y_axis_description='y',center_horizontally=True))CreditsThe core sequence asciiization algorithm was adopted fromasciichartpy.Run Testsgitclonehttps://github.com/w2sv/asciiplot.gitcdasciiplot
poetryinstall
maketest# runs mypy, pytest doctest and outputs test coverageLicenseMIT
Package: asciipy-any
asciipypython library and cli tool to convert images and videos to asciiExample output:additional examples can be found in/examples/Command line usage:asciipy [input_file] [output_file] [width] (optional, default=80)Command line examples:image with default size:asciipy test.png ascii.pngvideo with default size:asciipy test.mp4 ascii.mp4image with custom size:asciipy test.png ascii.png 160video with custom size:asciipy test.mp4 ascii.mp4 160Optional dependencies (URL and Youtube support):note: these libraries can be manually installed instead.youtube_dlcan be used instead ofyt-dlpasciipy-any[full]will installrequestsandyt-dlpto enable downloading from urls and youtube videos.asciipy-any[url]will installrequeststo enable downloading from urls.asciipy-any[youtube]will installyt-dlpto enable downloading youtube videos.Python usage:you can find our documentation here:https://asciipy-any.readthedocs.io/Python examples:image to ascii clifromasciipyimportImageConverterimportsysimg=ImageConverter()img.convert(sys.argv[1],'./ascii.png')print(f"{sys.argv[1]}converted and written to ./ascii.png")Planned features:proper gif support(mostly done, but still to buggy to be considered finished)ability to write output as htmlability to convert vectors (not sure how i could even go about this)need help?join my discord server!or my guilded server(i'm often not online here)
Package: ascii-python
Ascii_pyA python package for making ascii artInstallationRun the following to install:$ pip install ascii-pythonUsagePython ScriptImport the ascii_py package, and you're done.importascii_pySee more in theDocssectionTerminal$ Coming SoonDeveloping Ascii_pyTo install ascii_py, along with the tools you need to develop and run tests, run the following in your virtualenv:$ pip install -e .[dev]DocsImport the packageimportascii_pyasciiImage class :The responsible class for converting ( img <-> ascii )ai=ascii_py.asciiImage(chars)#                          ^-- Optional'''Chars is a list of strings used in converting images to asciiorderd from brightest to lowest pixel values:Default: ["@", "#", "S", "%", "?", "*", "+", ";", ":", ",", "."]'''asciiImage.img2asciiconverts an image to ascii textasciiImg=ai.img2ascii(path,width=150)#                               ^--Optional'''path  : (str)  The path to the image to be convertedwidth : (int)  the new width of the eimage after being converted'''print(asciiImg)# <-- Returns (str)Coming Soon :asciiImageimg2asciiImg (returns an image)ascii2imgasciiVideoTerminal usage
Package: asciiracer
ASCII RACERA racing game that runs in Terminal. 100% PythonInstructionsCollect as many alcoholic drinks as possible, while avoiding theBeerdrinks. The game is only key-based.KeysRoleaMove LeftdMove RightwAcceleratesDecelerateqQuit gameInstallation+ Please report issues if you try to install and run into problems!Make sure you are running at least Python 3.6.0Install using pip:pip3installasciiraceror clone the repository and install manually:$gitclonehttps://github.com/UpGado/ascii_racer.git
$cdascii_racer&&python3setup.pyinstallStart GameTo start the game, run either:$asciiracer
$python-masciiracerScoringThere are four different types of drinks that you can collect on the racetrack.Vodka - 10 PointsGin - 5 Points$ - 1 PointBeer - Negative 20 pointsContributionsIf you encounter any problem or have any suggestions, pleaseopen an issueorsend a PR.ASCII-RACER is still new. If you are interested, contributions are highly welcome!
Package: asciirend
asciirend. ...    . . .  .  .     . . ..   ..  .. .  ..    .  . .. ... . . ...
.     . .       ..  ..  ...... . .   .......   .  ..  . .. ....... . ..
.  .   .   ... .. . =======+=+==+======+=====+======.  . ...            .
.   ....######======+================+=====+===+===+===+=+=+=+== .... ...
    . . .###%##########=============+===+=========++++++=====+      . . .
.     .  ..######%###%###%####%======+===++==++=+===+==+++++=..  .   . .
 ...    ... ##########%##%######%####=+==+======++++===+==+=. .  .  ...
  .. ..   . .#####%#######%####...........=+====+=====+=== ..    . .. ..
. ..... .  ... ##%####%%######%.asciirend.======+=+==+===  . .... ..... .
  ..    .. . .  ##########%####...........+========+====     ..    ...  .
. .    ..  .     ##%##############%##=+++======+==+=== .. ... ..  .. ..
 .. ....  .       .##################=+=====++===+==+   .   .      .  .
.      ...  . ...    #%####%#####%###==+=+==+=+++==    ...  . ...      ..
. .. . . ...  . ..  .. ##########%%##+===++===+=+  .  .   ..    ..  ..
.    .    . .. . .. .    ############+===+=++==.    . . ..  .  ..    .
 . .   .  . .   .  . ...   ##########+==++=++ ..... . . . .  .      .   .
 ....  ..    ... ....  ..    #%#####%==+===   .. .    .  .. .. . ....  ..
..   . ... .. .. ..     ...  ..##%###+=== .    ...   .  ..    .   .   . .Generic ascii rendererasciirendis ano_stdcompatible 3D rendering core. This crate renders objects in several
stages:Primitive shading (similar to vertex shading, albeit works on whole primitives).Fragment shading.Additional text pass.Fragments are shaded in full sRGB float color space, which then is quantized to characters with a
dithering algorithm. This allows the image to have clearer color transitions, as opposed to direct
character shading. This also means the rendering backend is agnostic to the available color space
(so long as it's not HDR!), which is important for a genericno_stdcompatible renderer.ExamplesPlease seeexamples/sample.rsfor usage sample.JavaScriptasciirendhas a javascript sample that uses WASM. Albeit the API surface is limited, it is
possible to use it to draw basic interactive scenes. Please seeweb_sampledirectory for details.PythonIn addition, there is a python sample (and pip package). Please seepythonsubdirectory for more details, or installasciirendpackage, and run the python sample atsample.py.