Saravanan666/pypi-org huggingface dataset:
Package: print-cuneiform
Print Cuneiform NumbersThis package converts numbers into cuneiform signs forThe signs are represented as a string with unicode characters forcuneiform signs.The repository is available atGitlabSumerianThe correct cuneiform signs are based on the book "Numerical Notation", by Stephen Chrisomalis.With the deviation that the "ash" sign is used for one instead of the "gesh" sign.If "gesh" should also be used for one simply set:"ash=False" in int_to_sumerianThe computation to sumerian cuneiform is done by removing the signs that are possible from the highest "sharu" to the lowest "gesh". The divisible sign sizes are:36000: 	sharu	𒐬
3600: 	shar	𒄭
600: 	geshu	𒐞
60: 	gesh	𒐕
10: 	u	𒌋
1:	ash	𒀸In case of negative numbers the "lal" sign is added in front:𒇲Installation:To run the code unicode must be installed on the system:sudo apt install unicodeThe library can the be installed as follows:pip3 install print_cuneiformUse:>>> from print_cuneiform.sumerian import int_to_sumerian
>>> int_to_sumerian(1)
'𒀸'
>>> int_to_sumerian(71)
'𒐕𒌋𒀸'
>>> int_to_sumerian(-8, ash=False)
'𒇲 𒐜'  

int-to-sumerian -455Command line interfaceThe method can also be called from the command line, using either the 'ash' or 'gesh' for ones:int-to-sumerian -455
'𒇲𒐛𒌋𒌋𒌋𒐃'
int-to-sumerian-cla -455
'𒇲𒐛𒌋𒌋𒌋𒐙'
Package: print-debugging
Do not use print for debugging and delete print for releaseExample Usagefrom printDebugging import *
setLevel(DEBUG) # or setLevel("DEBUG")
debug("hi")     # printed out
setLevel(QUIET) # set debug level into QUIET
debug("hi")     # not printed out

# Configure Color
set_color("purple", INFO)         # set foreground color as purple  for info
set_color("WHITE", WARN, "bg")    # set backgournd color as white for warn
add_style("underline", DEBUG)
reset_style(WARN)
reset_style()

# Configure Prefix
setLevel(INFO)
set_prefixes("{trace}", INFO)   # Add string as prefix for INFO
info("HI")                      # FileName with Line number is printed out as prefix
import datetime
set_prefixes(datetime.datetime.now) # Add function with no parameter as prefix
info("hello")                   # Result of `datetime.datetime.now()` is printed out as prefix

# Configure postfix
import traceback
set_postfixes(traceback.format_exc, ERROR)
try:
  0 / 0
except:
  error("Expected Error")             # traceback is printed outDebug LevelQUIET : DO NOT PRINT EXCEPT “error”INFO  : Print info and errorVERBOSE : Print info, warn and errorDEBUG : print info, warn, error and debugTO DOAdd function with arugment as prefix or postfix
Package: print-dict
print-dictMotivationApparently, pretty-printing nested python dictionaries with values such as classes and functions (where you can't usejson.dumps) is
not as straightforward as you would think.See:https://stackoverflow.com/questions/3229419/how-to-pretty-print-nested-dictionariesThis library tries to make it a little bit easier.Install or Upgrade$ pip install -U print-dictUsagefromprint_dictimportpdpd({'key':'value'})# ------------------------# Output:# {#    'key': 'value'# }# ------------------------# Orfromprint_dictimportprint_dictprint_dict({'key':'value'})# Get the string without printingfromprint_dictimportformat_dictstring=format_dict({'key':'value'})Example 1Code:fromprint_dictimportpddict1={'key':'value'}pd(dict1)Output:{
    'key': 'value'
}Example 2Code:fromprint_dictimportpdclassObject1:passclassObject2:def__repr__(self):return"<Object2 info>"defcustom_method():passobject1=Object1()data={"one":"value-one","two":"value-two","three":"value-three","four":{'1':'1','2':'2','3':[1,2,3,4,5],'4':{'method':custom_method,'tuple':(1,2),'unicode':u'\u2713','ten':'value-ten','eleven':'value-eleven','3':[1,2,3,4]}},"object1":object1,"object2":Object2(),"class":Object1}pd(data)Output:{
    'one': 'value-one',
    'two': 'value-two',
    'three': 'value-three',
    'four': {
        '1': '1',
        '2': '2',
        '3': [1, 2, 3, 4, 5],
        '4': {
            'method': <function custom_method at 0x7ff6ecd03e18>,
            'tuple': (1, 2),
            'unicode': '✓',
            'ten': 'value-ten',
            'eleven': 'value-eleven',
            '3': [1, 2, 3, 4]
        }
    },
    'object1': <__main__.Object1 object at 0x7ff6ecc588d0>,
    'object2': <Object2 info>,
    'class': <class '__main__.Object1'>
}
Package: printdirtree
PrintDirTreeprintdirtreeis a command-line utility that prints the structure of a directory tree,
offering the flexibility to specify files and directories to exclude. This tool
is very useful to aid with prompting ChatGPT.InstallationInstallprintdirtreeeasily with pip:pipinstallprintdirtreeUsageTo usedirtree, simply run the command followed by optional arguments to tailor the output to your needs.
The basic usage prints the current directory structure:printdirtreeSpecifying a DirectoryTo print the structure of a specific directory:printdirtree--dir/path/to/directoryExcluding Directories and FilesExclude specific directories and/or file patterns:printdirtree--exclude-dirnode_modules--exclude-dir.git--exclude-file"*.log"Saving PreferencesTo save your exclusions for future runs:printdirtree--exclude-dirtemp--exclude-file"*.tmp"--saveViewing Current ExclusionsSee what exclusions are currently saved:printdirtree--view-exclusionsIncluding Directories and Files BackTo remove exclusions and include directories or files back into the printout:printdirtree--include-dirtemp--include-file"*.tmp"--saveExample UsageAfter installingprintdirtree, you can run it to visualize the structure of your project directory. Here's an example command that excludes.gitfiles:printdirtree--exclude-file".git"Output for thePrintDirTreeproject might look like this:PrintDirTree
├── MANIFEST.in
├── README.md
├── dir_tree_prefs.json
├── printdirtree
│   ├── __init__.py
│   └── __main__.py
└── setup.py
Package: printen
Printen is a simple, flexible module for integrating
Elasticsearch into Python projects - especially projects
utilizing Peewee or Django models.Printen’s code is currently in active development and
should be considered alpha - breaking changes should
be expected.Why Printen?There is no shortage of fine search libraries for Python.
The common tool used is [Haystack](http://haystacksearch.org/),
though this is oriented specifically towards Django, but
supports a multitude of search backends. This is a great
choice if you need flexibility in your search backends,
but one can begin to feel constrained as the interface to
the search backend is necessarily generic, so as to support
all search backends similarly.Other options include [django-simple-elasticsearch](https://github.com/jaddison/django-simple-elasticsearch),
which has the advantage of specifically focusing on
Elasticsearch, but is limited to Django and isn’t
under active development.A final option is to use the excellent official
[Python Elasticsearch Client](http://elasticsearch-py.readthedocs.org/en/master/index.html),
which is not super hard, but does require a decent amount of work
to map it to the concepts of your ORM.Printen seeks to do this work for you, without being overly
choosy about what Python framework you use it with (essentially
the opposite of Haystack - choosy about the search engine, not
choosy about the Python framework).Elasticsearch CompatibilityPrinten is expected to be compatible with Elasticsearch 2.0
and above.DocumentationTo see the complete documentation, visit Printen’s documentation on [Read The Docs](http://printen.readthedocs.org/).InstallationPrinten can still be intalled via pip:$ pip install printenor if you have the source locally:$ python setup.py installLicensePrinten is licensed under the [BSD License](LICENSE.md)ThanksThis was inspired by [James Addison’s](https://github.com/jaddison)
[django-simple-elasticsearch](https://github.com/jaddison/django-simple-elasticsearch).History0.1.0 (2017-02-03)Fixes issue #9, repeated reindexing messes up aliases.Expanded test coverage.0.0.7 (2017-01-03)Fix packaging issue.0.0.6 (2017-01-03)Remove pypandoc dependency.0.0.5 (2016-23-03)Fix issue with missing dependencies on pip install0.0.4 (2016-22-03)Initial PyPi Release0.0.2 (2016-22-03)Fix for when no existing aliases exist0.0.1 (2016-11-02)Initial Release of code to GitHub
Package: print-encoding
print-encodingA script to print characters to and from unicode.Usageprint-encoding-h
usage:print-encoding[-h][-l][-r][-bBLOCK][-uUNICODE][-dDECIMAL][CHARACTERS...]Ascripttoprintcharacterstoandfromunicode.

positionalarguments:CHARACTERSPrinttheinputCHARACTERSasdecimal,UTF-32BE,UTF-8andUTF-16LE

options:-h,--helpshowthishelpmessageandexit-l,--listPrintlistofUnicodeblocks-r,--redownloadRe-downloadstheBlocks.txtfilewiththeunicodecharactersranges-bBLOCK,--blockBLOCKPrintallcharactersinsideaspecificUnicodeBLOCK-uUNICODE,--unicodeUNICODEPrintUNICODEcharacterindecimal,UTF-32BE,UTF-8andUTF-16LE-dDECIMAL,--decimalDECIMALPrintDECIMALcharacterinUTF-32BE,UTF-8andUTF-16LEExamplesPrint the different encodings of characters€ @:print-encoding€@DecimalUTF-32BEUTF8UTF-16LECharBlockBlock-chardescription───────────────────────────────────────────────────────────────────────8364000020ace282acac20€075CurrencySymbols-eurosign6400000040404000@001BasicLatin-commercialatPrint all the characters in unicode block number 75:print-encoding-b75DecimalUTF-32BEUTF8UTF-16LECharBlockBlock-chardescription───────────────────────────────────────────────────────────────────────8352000020a0e282a0a020₠075CurrencySymbols-euro-currencysign8353000020a1e282a1a120₡075CurrencySymbols-colonsign8354000020a2e282a2a220₢075CurrencySymbols-cruzeirosign(...)75.[0x20a0..0x20cf]CurrencySymbolsList all unicode blocks:print-encoding-l1.[0x20..0x7f]BasicLatin2.[0x80..0xff]Latin-1Supplement3.[0x100..0x17f]LatinExtended-A(...)325.[0xe0100..0xe01ef]VariationSelectorsSupplement326.[0xf0000..0xfffff]SupplementaryPrivateUseArea-A327.[0x100000..0x10ffff]SupplementaryPrivateUseArea-BPrint character from unicode:print-encoding-u1f600DecimalUTF-32BEUTF8UTF-16LECharBlockBlock-chardescription───────────────────────────────────────────────────────────────────────1285120001f600f09f98803dd800de😀306Emoticons-grinningface
Package: print-env
print-envCLI to print environment variables from supported sources.This is derived from projects that:Use environment variables as the main interface for configurationUse source-control ignored files to store environment variables for scenarios such as local developmentInstall$pipenvinstallprint-env# or$pipinstallprint-envUsageAssume a.envfile that contains the following content:# .envFLASK_APP=app.pyFLASK_DEBUG=1SQL_URI=<SQLconnectionstringthatmaycontaincredentials># and more...Then simply$print-envFLASK_APP=app.pyFLASK_DEBUG=1SQL_URI=<redacted># and more...The above would print out environment variables stored in.env, orenv.yml, orenv.json(roughly attempted in this order). You can also exclusively specify the file:$print-env/path/to/env/file.ymland the script would attempt to parse the file based on its extension given. Note that any file extension that is not of YAML or JSON type is attempted as a dotenv file.In fact, you can specify a series of files. Note that in case of duplicates, the last files take precedence, for example:# content of base.envLOG_LVL=warningAPI_TOKEN=aabbcc# content of dev.envLOG_LVL=debug$print-envbase.envdev.envLOG_LVL=debugAPI_TOKEN=aabbccAnother common case is when an external file is used to supply environment variables atdeploy-time, for example, when used with theserverless frameworkwith aserverless.ymlthat may look like:service:env-varspackage:exclude:-node_modules/**-'*env.yml'-Pipefile-Pipfile.lockfunctions:test:# test.py - handler()handler:test.handler# sourcing env vars from ./env.ymlenvironment:${file(./env.yml):}and for local test runs you can utilizeprint-envto reuse the sameenv.yml:$env$(print-env)pythontest.py# omitted file path since env.yml is on the default try-listSimilarly,print-envcan be used forbuild-timeconfiguration. For example, with an imaginary client-side project with apackage.jsonthat may look like:{"name":"TestApp","version":"1.0.1","scripts":{"build":"env $(print-env local-env.json) parcel build index.html","build:dev":"env $(print-env dev-env.json) parcel build index.html","build:prod":"env $(print-env prod-env.json) parcel build index.html"}}
Package: printeq
printeqSmall script that prints a rendered latex equation to the output in a supported terminal emulator (currently only supports iterm2). I created the python module as a shorthand to viewing latex output ofSympy.latex()in a python terminal session.InstallationRequires working installation of latex, imagemagick, and imgcat.To install just the script, simply addbin/printeqto your PATH.To install the python wrapper along with the script, runpip install printeqExample Usage
Package: printer-py
Project descriptionprinter_pyready for use !Developed by Ninad Goswamy (c) 2022explanation of printer function :Syntax : printer(value1,value2,..,valueN,newline=True/False,operator=","/" "/"&")newline = used to specify newline by default it is falseoperator: is used to display values by saperating comma or other value , by default it is commaExamples of How To Use the printer functionDebugging on serverfromprinterimportprinterprinter('test',newln=False,operator="=")printer('test',9999,newline=False)printer('test',{"key":4562},newline=True)printer('test',9999,"default")printer('newline',9999,newline=True)
Package: print-err
print_errCommand line utility and python library to print to standard error optionally exiting with a code.Installpipinstallprint_errUsageAs a python functionfromprint_errimportprint_errprint_err("This messages goes to stderr")print_err("This messages goes to stderr",exit_code=2)As a command line utility$print_err"print to stderr and exit() with code 2"2
Package: print-extended
Print ExtendedExtended functionalists and better control over Python's built-in print functionInstallation>pipinstallprint-extendedUsageIf you run Python interpreter with-Oflag print will be disabled (watches fordebug):python-O

>>>importprint_extended
>>>print('foo')>>>Runing it without-Oflag works normal:python

>>>importprint_extended
>>>print('foo')foo
>>>Control your print withPrintControlclass:importprint_extendedfromprint_extendedimportPrintControlPrintControl.template='-->{print}<--'PrintControl.fg_color='green'PrintControl.bg_color='blue'Change underlying print function:importprint_extendedfrompprintimportpprintfromprint_extendedimportPrintControlPrintControl.print_function=pprintprint({...})# will print it using pprintDisable and enable printingimportprint_extendedfromprint_extendedimportPrintControlPrintControl.disable()# print(...) now does nothingPrintControl.enable()# print(...) now prints
Package: printfactory
printfactoryprintfactoryis a package for printing PDF files to a physical printer
using a print tool likeAdobe ReaderorFoxit Reader.Example usageimport pathlib
import printfactory

printer = printfactory.Printer()
print_tool = printfactory.AdobeReader(printer)

file = pathlib.Path('my.pdf')
print_tool.print_file(file)Table of ContentsWhy?RequirementsInstallingprintfactoryKnown issuesContributingChangelogWhy?The motivation for this project was to have a simple Python interface
for printing PDF files to a physical printer using a local installed software("print-tool").Only publicly and freely available software should be used on the client or server that is using this package.RequirementsPython >= 3.8pipInstallingprintfactoryTo install the latest version ofprintfactoryuse pip as simple as follows.pip install printfactoryKnown issuesTheAdobeAcrobatprint tool implementation is limited to only send files to the defaults system printerContributingIf you'd like to contribute to this projectPoetryis recommended.ChangelogAll notable changes to this project will be documented in theCHANGELOG.md.
Package: printf-fiachia
Name:printfAuthor:fiachiaFunction:打印带有颜色的字符串Defect:命令行输出字符|版本1.0.1:1.带有windows颜色、背景和高亮设置2.带有默认信号设置版本1.1.1:1.修复bug2.更加贴近于print函数，且支持多个输入3.添加颜色变量，方便简打输入版本1.1.2:1.修复bug版本1.1.3:1.修复bug版本1.1.4:1.修复bug版本1.1.5:1.改进颜色调用格式版本2.0.1:1.对原有逻辑进行大改2.添加新功能版本2.0.2:1.修复了一处引用bug版本2.0.3:1.完善了部分函数，更方便使用。
Package: printf-log-formatter
printf-log-formatterAutomatically convert f-strings andstr.format()syntax to printf-style strings.In other words, this syntaxlogger.error(f"{1}")logger.error("{}".format(1))logger.error("{foo}".format(foo=1))is changed tologger.error("%s",1)logger.error("%s",1)logger.error("%s",1)MotivationWhy would we want to do this?This articleexplains it pretty well.Mainly it's useful for Python projects usingSentry's log integration.InstallationYou have two options for running this pre-commit hook:Python hookIf you would like to install this using Python, run:pipinstallprintf-log-formatterthen set the pre-commit hook up using:-repo:localhooks:-id:printf-log-formattername:printf-log-formatterentry:printf-log-formatterlanguage:systemtypes:[python]args:---log-level=errorRust hookIf you're happy to compile the Rust version, you can use:-repo:https://github.com/sondrelg/printf-log-formatterrev:''hooks:-id:printf-log-formatterargs:---log-level=errorI just want to downgrade loggers onceThe Rust binary or Python package can also be run directly, like this:printf-log-formatter$(find.-name"*.py")--log-levelerror
Package: printfuk
printfukCompletely override your python print function with complete garbage that sometimes looks approximately correctHow to installSimply install the package either by downloading this git repository and moving the python source code where it needs to or install it using pip.Manual (Not preferred)Copy the printfuk.py file into the one of the paths listed from the following code:import sys
sys.pathPipMake sure pip is installed withpip --version.  If you get a version print out, then pip is installed.  Otherwise,install pip.
Once pip is installed type into a consolepip install printfuk.  And that's it.ImportingAll you have to do is writefrom printfuk import printat the top of your python script file, and you will never have to worry about clean, nice looking print messages ever again!How to useThe print statement behaves more or less like the default print statement in terms of how you most people use it.  It does not handle the following keywords arguments currently:fileflushThis version only prints to sys.stdout and is not bufferred.  However, the other keyword arguments, sep and end are handled as per usual.  This package also handles the standard multiple printing in the form ofprint(a,b,c,...)and concatenates them with the separator "sep=separator" before printing just like before.  It also handles the end keyword more or less the same.  However, in order to ensure that a user can't print standard text in the normal behaviour, if the end keyword argument is a string of length greater than 1, the this string will also be messed up in the same manner.The package also adds more keyword arguments:delay - default: 0.1 / float [0,inf) - Specifies the time delay at which characters are printed in order in seconds.color - default: 88 / int or integer string - Specifies the ansi-color number to use.startAfter - default: 0 / int - Number of characters to start messing things up after, allowing for part of the string to come out clear.  If this number is greater than the length of the string, the number is reset to zero.maxCharMod - default: 0.5 / float [0.05,1] - The maximum number characters we are allowed to modified.  This number will always be at least 1 character.useAnsi - default: False on windows, True otherwise / boolean - On windows systems, many terminals don't handle ansi well.  So by default windows systems will turn off the color and flashing.  Use this to force ansi styling on or off.onlyAfter - defult: False / boolean -- Setting this to true makes it so that only the text after the startAfter index will be modified.
Package: print-function
print-functionInstall$ pip install print-functionUsageIf we putfrom ___future___ import *on our python script, it will overwrite our print and become likefrom___future___import*print("123")print("BabyRage!",flush=True)# outputb'\xe5\xa4\xa9\xe7\x8e\x89\xe8\x8a\xb1\xe8\xa5\xbf\xe7\xbe\x8e''            ╭─────────╮''            |BabyRage!|''            ╯─────────╯''       ███]▄▄▄▄▄▄▄▃～～～'' ▂▄▅█████████▅▄▃▂''[████████████████]''◥ ⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙ ◤ 'The normalprintwill be the unicode from random nonsense word and with the optionflush=True, it will be a tank(嬰靈戰車) help you to log things
Package: print-function-py2
print_function_py2UsageThis package is using for print() function in Python 1 and Python 2.How to use itImport it by:from print_function_py2 import print3. No any additional modules or packages will be installed.Use it as the built-in print() function in Python 3.>>>fromprint_function_py2importprint3>>>print3("Hello","world!",sep=", ")Hello,world!If you cannot install the package by pip, please download the tar.gz file and extract to sys.path(PYTHONPATH).Suggested importing formula:try:exec("print3 = print")exceptSyntaxError:try:fromprint_function_py2importprint3exceptImportError:print("package print_function_py2 required")importsyssys.exit(1)
Package: print-hello-hanlin
print_helloThis is simple python package to demonstrate how to upload package to PyPlfile structureprint_hello/
|-- LICENSE.txt
|-- README.md
|-- print_hello_hanlin
|   |-- __init__.py
|   |-- __pycache__
|   |   |-- __init__.cpython-36.pyc
|   |   `-- print_hello.cpython-36.pyc
|   `-- print_hello.py
`-- setup.pybuild package$:python3setup.pysdistbdist_wheelupload package to pypi.org$:python3-mtwineuploaddist/*
Package: print-hello-world
Print Hello World!Python script that prints hello world on terminalInstall using source codeTo download the app generator, you can clone this repository to your local machine.$ git clone https://github.com/askyourkode/print-hello-world
$ cd print-hello-worldInstall using pip3$ pip3 install print-hello-worldPackage @ PyPI repository:https://pypi.org/project/print-hello-world/Usage$ print-hello-world