Saravanan666/pypi-org huggingface dataset:
Package: sittagger
SIT-TaggerSIT-Tagger is an app for browsing tagged files.For now, it consists in an image browser app, that allows to set custom
text tags on any image file, and then list image files matching checked
tags. The tags are saved in a local SQLite database.Other apps reusing the same database will be added, and support for
video files will be added.It also comes with a command-line too to manipulate the tag database.Command-line toolSIT-Tagger comes with a command-line tool to manipulate the tag
database.These 2 commands set tag foo and unset tag bar on some/file.jpg:sit-tagger-cli set +foo some/file.jpg
sit-tagger-cli set -bar some/file.jpgCombined in a single command:sit-tagger-cli set +foo -bar some/file.jpgIt's possible to query the list files tagged foo:% sit-tagger-cli query foo
/tmp/some/file.jpgOr show the tags of a file:% sit-tagger-cli show some/file.jpg
/tmp/some/file.jpg = [foo]List all tags:% sit-tagger-cli list-tags
fooRename a tag:sit-tagger-cli rename-tag foo foonewList all files:% sit-tagger-cli list-files
/tmp/some/file.jpgRemove all tags from a file:sit-tagger-cli untrack-files some/file.jpgInstallInstall withpipx install sittagger.
Package: sitTools
READMEsitTools適用 Python 版本Useful tools module for S.I.T. project use.
本公司勝和科技 ( Success Integration Technology ) 內部專案常用函式集Installation ( 安裝套件 )pipinstallsitToolsDependencies ( 相依套件 )numpypandasconfigparserModule & FunctiongToolsGeneral using tool functions.
常用工具函式cToolsCrawler tool functions
網路爬蟲相關工具函式sToolsSecurity tool function
安全相關工具函式
Package: situation
situationis a Python package that provides the Situation Modeling Language (SML) - an ontology for describing social situations.OverviewThe following is a full Situation in which Alice and Bob are members of a Sports Club.
When this code is executed, a situation will be created within the database and will then be printed to the screen.from situation import dump, Person, Group
from situation.debug_app import quick
with quick().app_context():
    bob = Person.create(name="Bob")
    alice = Person.create(name="Alice")
    club = Group.create(name="Sports Club")
    club.members.extend([bob, alice])
    print(dump())A situation is specified using Situation Modeling Language (SML).
SML is like a Domain Specific Language for Situations built on top of Python.A Situation is actually a full database-drivenFlask-Diamondapplication.
As an application, this can be an extremely flexible data platform.InstallationInstallsituationusing Python pip.pip install situationDocumentationhttp://situation.readthedocs.io
Package: sitzungsdienst
sitzungsdienstA simple Python utility for working with weekly assignment PDFs as exported byweb.sta.Getting startedSimply install all dependencies inside a virtual environment to get started:# Clone repository & change directorygitclonehttps://codeberg.org/S1SYPHOS/sitzungsdienst&&cdsitzungsdienst# Set up & activate virtualenvpoetryshell# Install dependenciespoetryinstallUsageUsing this library is straightforward:fromsitzungsdienstimportStA# Pass file path (or its stream) & retrieve datacourt_dates,express_dates=StA.runs('path/to/file.pdf')# You may also pass multiple file paths (or their streams)court_dates,express_dates=StA.runs(['path/to/file1.pdf','path/to/file2.pdf'])# Use a subset by filtering itfiltered_court=court_dates.filter(['alice','bob'])filtered_express=express_dates.filter('john')# Get iCalendar dataics=filtered_court.data2ics()print(ics)### BEGIN:VCALENDAR# VERSION:2.0# ..# ..Note: Since all data methods are usingasync, you should eitherawaitthem (inside your ownasynciocontext) or call them usingasyncio.run()(see below).importasynciofromsitzungsdienstimportStAasyncdefmain(file):# ..returnawaitStA.run(file)# Retrieve datadata=asyncio.gather(*[main(file)forfileinfiles])# ..If you want to see it in action, head over to thesitzungsapp!Happy coding!
Package: siu-data
py SIU dataObtener datos de sistemas SIUInstalarpip install siu-dataPortal de TransparenciaObtención de datos del portal de transparencia.Ejemplo de usofromsiu_data.portal_dataimportSIUPoratlTransparenciaDatas=SIUPoratlTransparenciaData(base_url='http://wichi.siu.edu.ar/pentaho/plugin/cda/api/doQuery',username='usuario_transparencia',password='clave_transparencia')s.load_all_data()s.save_metadata('lala.csv')Testspython -m pytest
Package: siunitpy
siunitpySI-Unit-Py is a Python package for dealing with units.This package implementsNIST (National Institute of Standards and Technology)official unit definitions.Moreover, it introduce uncertainty.Installationpip installable package:pypi: siunitpipinstallsiunitpyQuickstart: modulesiunitpy.SIimport modulesiunitpy.SIto use 3 very useful classes:SI,siandprefix.SI: common physical constantsuse physical constants through classSI:>>>fromsiunitpy.SIimportSI>>>SI.cConstant(value=299792458,unit=m/s,uncertainty=0)>>>print(SI.me)9.1093837015e-31±2.8e-40kg>>>print(SI.me*SI.c**2)8.187105776823886e-14±2.516514500463089e-23Jconstant classSIprovide physical constants defined by (or derived from) SI unit system.si: common SI unitsuse units through classsi:>>>fromsiunitpy.SIimportsi>>>print(1*si.kg*si.m/si.s**2)1.0N>>>print(760*si.mmHg.to("Pa"))101325.0Paprefix: unit prefix factorclassprefixcontains prefix from quetta(Q, = 1e30) to quecto(q, = 1e-30), and byte prefix like ki(2^10, 1024), Mi(2^20), Gi(2^30)... It's just a number factor, not Quantity.>>>fromsiunitpy.SIimportprefix>>>prefix.mega1000000.0>>>prefix.Pi# 2**501125899906842624Define Quantityimportsiunitto define aQuantityobject:>>>fromsiunitpyimportQuantity>>>F=Quantity(1,'kg.m/s2')>>>L=Quantity(1,'m',1e-4)# with uncertaintywhereFis a Quantity object, and it has properties:>>>F.value1>>>F.unitUnit(kg·m/s²,dim=(1,1,-2,0,0,0,0),value=1)>>>F.dimensionDimension(L=1,M=1,T=-2,I=0,H=0,N=0,J=0)>>>L.uncertainty1e-4objects inSIare also Quantity objects.Quantity objects can make unit conversion and operate with number or Quantity:>>>print(SI.me.to("keV/c2"))# unit conversion510.99894999616424±1.5706848090652466e-07keV/c²>>>print(F/(1*si.m)**2)1.0PaEspecially, it provides temperature unit system:>>>fromsiunitpyimportdegree>>>print((100*degree.F).to(degree.C.unit))37.77777777777778°C
Package: siunits
SI UnitsThis is a library used to symbolically manipulate SI units. It comprises aBaseUnittype,
used for base SI units likekilogram,meteretc, aDerivedUnittype,
for units derived from them, and aCompositetype, for when numerical coefficients
are included. Python version 3.7 or greater is required. There are no dependencies.This library is useful for dimensional analysis. It relies on the concept that
SI units are all composed of varying exponents of 7 base units. We can think
of all other units as linear combinations of base units.You can perform normal multiplication, division, and power operations on units
provided by this lib, and between them andints andfloats. You can check equality,
based on the resulting combination of base units.InstallpipinstallsiunitsIn Linux, you may need to use something likepip3 install siunits, orpython3.7 -m pip install siunits.ExamplesA base unit:importsiunitsasuu.kg>>>kilogram(kg),massA derived unit:u.v>>>volt(V),[kg:1,m:2,s:-3,A:-1]Multiplication:u.kg*u.s>>>kilogram·second(kg·s),[kg:1,s:1]Division:u.j/u.m**2>>>joule/meter²(kg·s⁻²),[kg:1,s:-2]u.s**2/u.kg**3>>>second²·kilogram⁻³(s²·kg⁻³),[s:2,kg:-3]With numerical coefficients:2*u.a**2*3*u.v**2>>>6kg²·m⁴·s⁻⁶Equality testing is based on composition of base units:u.w==u.v*u.a==u.kg*u.m**2/u.s**3>>>TrueTodoInfer composite types that match a given custom (eg multiplied) unitApply arithmetic to quantities as well (egenergy,worketc), and display themAddition and subtractionScopeThis project doesn't aim to provide conversions with other unit systems, likecgsandimperial, nor does it provide physical constants. For these
tasks, tryscipy.constants.Why add another unit library?The clean symbolic manipulation this library provides doesn't appear to exist
in any existing one.
Package: si-units
si-unitsRepresentation of SI unit valued scalars and arrays. Python bindings to thequantityRust library.The package is written with flexibility in mind and is able to represent arbitrarily complex units.
Additional to simple scalar quantities, it also provides utilities for vector valued quantities based on numpy, where all entries share the same unit.Installation and UsageYou can install the python package from source (you need a rust compiler for that):pip install git+https://github.com/itt-ustutt/quantityor get the compiled files from PyPIpip install si-unitsExamplesCalculate the pressure of an ideal gas.fromsi_unitsimport*temperature=25.0*CELSIUSvolume=1.5*METER**3moles=75.0*MOLpressure=moles*RGAS*temperature/volumeprint(pressure)# 123.94785148011941 kPanumpyfunctions can be used with SI units:fromsi_unitsimport*importnumpyasnpms=np.linspace(2.0,4.0,3)*METERsqms=ms**2print(sqms)# [4, 9, 16] m²print(sqms.sqrt())# [2, 3, 4] mDocumentationFor the documentation, seehere.
Package: si-utils
AboutThis package contains a set of utilities useful for building python libraries, scripts, and command-line utilitiesIt's designed to be easy to include in other projects. all of its mainline dependencies are vendored and all modules which have external un-vendorable dependencies are available as optional extrasInstallpip install si-utilsTo make use of optional extras, like the yaml module or the dev_utils module:pip install si-utils[yaml] # or si-utils[dev_utils], or si-utils[yaml,sentry]UsageThis toolkit makes it really easy to write small, simple, well designed CLI utilities
In fact, the aim of this project is to make well-engineered CLIs almost as easy to write and deploy as basic python scripts
it leverages a lot of really fantastic modern libraries and tools to do so, likepoetry,typer, andlogurulet's assume you've created a new project withpoetry new, and you want to add a CLI interface to it. here's one way to do that:
create acommon.pyfiles with your super handy dandy useful function in it:fromloguruimportloggerdefmy_super_awesome_function():logger.debug("I'm running my_package.common.my_super_awesome_function!")create a__main__.pyfile in your package like so:importosfrom.commonimportmy_super_awesome_functionimportsi_utilsimporttyperfromloguruimportloggerapp=typer.Typer()@app.callback()defcallback(verbose:bool=False):"""Here is my app's main help stringUsers will see this when they run `python -m my_package`"""log_level='DEBUG'ifverboseelse'INFO'si_utils.configure_logging('my_app_name',stderr_level=log_level,logfile_level='DEBUG',sentry_level=None)@app.command()defmy_command(option:bool):"""Here's the help text my users will see when they run `python -m my_package my-command -h`"""logger.debug("running my-command")# this will only get printed if the --verbose flag is setmy_super_awesome_function(option)if__name__=="__main__":ifos.environ.get('PYDEBUG'):# we're in a debugger session# here we can put whatever debugging code we want# we can configure logging so all messages up to DEBUG are logged to stderr, and nothing gets logged to file:configure_logging('my_app_name','DEBUG',None,None)# do debugging stuff herelogger.debug("I'm a debug message!")exit()try:app()# cli code goes hereexceptKeyboardInterrupt:print("Aborted!")exit()the main api (all the stuff directly importable fromsi_utils) consists of:every function defined in themainmoduletheconfigure_loggingfunction from thelogmoduleconfigure_logginghas an option to enable logging to sentry. in order to use it, you need to install si_utils with thesentryextra (iepip install si-utils[sentry]orpoetry add -D si-utils[sentry])apart from that, there are other modules which can be imported separately:yamlhas a whole bunch of useful and sometimes esoteric utilities for working with yaml files, built on top ofruamel.yamldev_utilshas commmand-line utilities for working with python projects, specifically made for projects that usepoetry
Package: siux
To use (with caution), simply do:>>> import sys
>>> sys.path.append( '../siux' )
>>> import siuxlib
>>> auth = '<YOUR_API_KEY>'
>>> S = siuxlib.SiUXclient( auth=auth )
>>> retList = S.sourceList()
>>> if retList[ 'statusCode' ] == 'OK':
>>>    for line in retList[ 'data' ]:
>>>       print line
Package: sivart
A poor man’s build farm.What?A tool to test installation and test steps of your program on various systems.How?The architectures, install steps and test scripts are described in a
configuration file, which is processed bysivartto run various vagrant
boxes with the described configuration, then the tests.InstallHave a look to.sivart.ymlfor the detailed steps, but basically you need
a workingvirtualboxand:pip install sivartThe run:python -m sivart --helpFormatSivart’s input is a YAML file that lists configurations, like this:my_config:
    box: box_url_or_id
    install:
        - step0
        - step1
    script:
        - step0
        - step1Theboxfield is a valid vagrant box idetnifier, theinstallfield
contains commands run asroot, and thescriptfield contains commands
run asvagrantuser.As your number of config grow, you can use facets to store common config
elements:.shared:
    install:
        - step0
        - step1
    script:
        - step0
        - step1

.config0:
    using:
        - .shared
    box: box0

.config1:
    using:
        - .shared
    box: box1which makes it easy to perform the same steps on a 32 and 64 bits machine, for
instance.Finally, there is aenvconfiguration to test various parameters, e.g.
various compilers:.env0:
    env:
        - CC=gcc CXX=g++
        - CC=clang CXX=clang++

.env1:
    env:
        - CFLAGS=-O1
        - CFLAGS=-O2
        - CFLAGS=-O3

run:
    using:
        - env0
        - env1
    script:
        - $CC $CFLAGS hello.cthis runs$CC $CFLAGS hello.cfor the Cartesian product of the combination
of.env0and.env1.Additionnaly, you can use external variables prefixed by a%, as in:.cflags:
    env:
        - CC=gcc CXX=g++ CXXFLAGS=%CXXFLAGS CFLAGS=%CFLAGS
        - CC=clang CXX=clang++ CXXFLAGS=%CXXFLAGS CFLAGS=%CFLAGSAnd set this variable from the command line!Have a look toexamples/*for more… examples!Why?Because I needed an automated way to test the Pythran compiler on various
architecture (32/64 bits), various OSandvarious distribution.
Package: sivasample
# A sample Python projectA sample project that exists as an aid to the [Python Packaging User
Guide][packaging guide]’s [Tutorial on Packaging and Distributing
Projects][distribution tutorial].This project does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.[The source for this project is available here][src].Most of the configuration for a Python project is done in thesetup.pyfile,
an example of which is included in this project. You should edit this file
accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and can be written using
[reStructuredText][rst] or [markdown][md use] with the appropriate [key set][md
use]. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What’s New” section for the most recent version
may be appropriate.[packaging guide]:https://packaging.python.org[distribution tutorial]:https://packaging.python.org/en/latest/distributing.html[src]:https://github.com/pypa/sampleproject[rst]:http://docutils.sourceforge.net/rst.html[md]:https://tools.ietf.org/html/rfc7764#section-3.5“CommonMark variant”
[md use]:https://packaging.python.org/specifications/core-metadata/#description-content-type-optional
Package: siwe
Sign-In with EthereumThis package provides a Python implementation of EIP-4361: Sign In With Ethereum.InstallationSIWE can be easily installed in any Python project with pip:pipinstallsiweUsageSIWE provides aSiweMessageclass which implements EIP-4361.Parsing a SIWE MessageParsing is done by initializing aSiweMessageobject with an EIP-4361 formatted string:fromsiweimportSiweMessagemessage:SiweMessage=SiweMessage(message=eip_4361_string)Alternatively, initialization of aSiweMessageobject can be done with a dictionary containing expected attributes:message:SiweMessage=SiweMessage(message={"domain":"login.xyz","address":"0x1234...",...})Verifying and Authenticating a SIWE MessageVerification and authentication is performed via EIP-191, using theaddressfield of theSiweMessageas the expected signer. The validate method checks message structural integrity, signature address validity, and time-based validity attributes.try:message.verify(signature="0x...")# You can also specify other checks (e.g. the nonce or domain expected).exceptsiwe.ValidationError:# InvalidSerialization of a SIWE MessageSiweMessageinstances can also be serialized as their EIP-4361 string representations via theprepare_messagemethod:print(message.prepare_message())ExampleParsing and verifying aSiweMessageis easy:try:message:SiweMessage=SiweMessage(message=eip_4361_string)message.verify(signature,nonce="abcdef",domain="example.com"):exceptsiwe.ValueError:# Invalid messageprint("Authentication attempt rejected.")exceptsiwe.ExpiredMessage:print("Authentication attempt rejected.")exceptsiwe.DomainMismatch:print("Authentication attempt rejected.")exceptsiwe.NonceMismatch:print("Authentication attempt rejected.")exceptsiwe.MalformedSessionase:# e.missing_fields contains the missing information needed for validationprint("Authentication attempt rejected.")exceptsiwe.InvalidSignature:print("Authentication attempt rejected.")# Message has been verified. Authentication complete. Continue with authorization/other.Testingpoetryinstall
gitsubmoduleupdate--init
poetryrunpytestSee AlsoSign-In with Ethereum: TypeScriptExample SIWE application: login.xyzEIP-4361 Specification DraftEIP-191 SpecificationDisclaimerOur Python library for Sign-In with Ethereum has not yet undergone a formal
security audit. We welcome continued feedback on the usability, architecture,
and security of this implementation.
Package: six
Six is a Python 2 and 3 compatibility library.  It provides utility functions
for smoothing over the differences between the Python versions with the goal of
writing Python code that is compatible on both Python versions.  See the
documentation for more information on what is provided.Six supports Python 2.7 and 3.3+.  It is contained in only one Python
file, so it can be easily copied into your project. (The copyright and license
notice must be retained.)Online documentation is athttps://six.readthedocs.io/.Bugs can be reported tohttps://github.com/benjaminp/six.  The code can also
be found there.
Package: sixel
python-sixelDisplay images in the terminal usingSixel.This is a fork of the no longer maintainedPySixel.Checkarewesixelyet.comfor supported terminals.InstallationPyPI releasepip install sixelgit main branchpip install git+https://github.com/lubosz/python-sixel.gitLocal copygit clone https://github.com/lubosz/python-sixel.git
cd python-sixel
pip install -e .Exampleimportsysfromsixelimportconverterc=converter.SixelConverter("foo.png")c.write(sys.stdout)See examples directory for more examples.sixelconvpython-sixel provides a command line tool.Display an image in the terminalsixelconv [options] filenameOr by using a pipecat filename | sixelconv [options]Options-h, --help                                            show this help message and exit
-8, --8bit-mode                                       Generate a sixel image for 8bit terminal or printer
-7, --7bit-mode                                       Generate a sixel image for 7bit terminal or printer
-r, --relative-position                               Treat specified position as relative one
-a, --absolute-position                               Treat specified position as absolute one
-x LEFT, --left=LEFT                                  Left position in cell size, or pixel size with unit 'px'
-y TOP, --top=TOP                                     Top position in cell size, or pixel size with unit 'px'
-w WIDTH, --width=WIDTH                               Width in cell size, or pixel size with unit 'px'
-e HEIGHT, --height=HEIGHT                            Height in cell size, or pixel size with unit 'px'
-t ALPHATHRESHOLD, --alpha-threshold=ALPHATHRESHOLD   Alpha threshold for PNG-to-SIXEL image conversion
-c, --chromakey                                       Enable auto chroma key processing
-n NCOLOR, --ncolor=NCOLOR                            Specify number of colors
-b, --body-only                                       Output sixel without header and DCS envelope
-f, --fast                                            The speed priority mode (default)
-s, --size                                            The size priority modeExamplesView an image filesixelconv test.pngGenerate sixel file from an image filesixelconv < test.png > test.sixView generated sixel filecat test.six
Package: sixelcrop
sixelcropCrop sixel images in sixel-space!sixelcrop is a Python library and command line tool to cropsixelimagesInstallationpipx install sixelcrop#ORpip install sixelcropUsageCommand Lineusage: sixelcrop [--help] [-x int] [-y int] [-w int] [-h int] Path

Crop a sixel image in sixel space

positional arguments:
  Path                  Path to sixel image file (use '-' to read data from standard input)

options:
  --help
  -x int, --left int    The offset of the left edge of the target region
  -y int, --top int     The offset of the top edge of the target region
  -w int, --width int   The width of the target region
  -h int, --height int  The height of the target regionExample:curlhttps://www.python.org/static/img/python-logo@2x.png|img2sixel|sixelcrop-x10-y15-w120-h125-Python APIimportsysfromsixelcropimportsixelcropwithopen("snake.six")asf:data=f.read()sys.stdout.write(sixelcrop(data,x=300,y=50,w=200,h=150))Licensesixelcropis distributed under the terms of theMITlicense.
Package: sixelplot
A thin wrapper for pysixel and matplotlibUsageimportmatplotlib.pyplotaspltimportsixelplotplt.plot([1,2,3])sixelplot.show()SIXEL is the ancient black magic to render a graphical raster image on a
terminal screen.sixelplot.showfunction writes the SIXEL format image into a file
like object, by default stdout. Though you need a terminal which
understands the SIXEL format, modern terminal emulators support the
SIXEL format.For more information about SIXEL, seehttps://github.com/saitoha/libsixel.LicenseThese codes are licensed underCC0.Tips
Package: sixelterm
Installvia github$ git clone https://github.com/saitoha/sixelterm.git
$ cd sixelterm
$ python setup.py installor via pip$ pip install sixeltermUsage$ sixelterm
$ cat test.jpg

[imagefile] is expected to be a PNG/JPEG formatted image file.Options:-h, --help                  show this help message and exit
--version                   show versionDependencyPySixelhttps://github.com/saitoha/PySixelPySixel depends on Python Imaging Library (PIL)http://www.pythonware.com/products/pil/TFF - Terminal Filter Frameworkhttps://github.com/saitoha/tffReferenceGate One, Liftoff Softwarehttp://liftoffsoftware.com/Products/GateOneChris_F_Chiesa, 1990 : All About SIXELsftp://ftp.cs.utk.edu/pub/shuford/terminal/all_about_sixels.txtNetpbmhttp://netpbm.sourceforge.net/It includes ppmtosixel commandhttp://netpbm.sourceforge.net/doc/ppmtosixel.htmlvt100.nethttp://vt100.net/