Saravanan666/pypi-org huggingface dataset:
Package: sio
SIOSIO provides shorter and less readable aliases forShortIO.InstallationpipinstallsioUsagefromsioimport*s=r('filename')w('filename',s)j=rjsn('filename.json')wjsn('filename.json',j)# Unfortunately pickle -> pckl according to shortening algorithm.p=rpckl('filename.pickle')wpckl('filename.pickle',p)y=ryml('filename.yaml')wyml('filename.yaml',y)
Package: sioDict
sio-dictSuper Charged Io DictsInstallationpipinstallsioDictFeaturesOneLayerDict, OneLayerList are auto savable dict/list that supports depth 1SioList, SioDict supports infinite nesting with customizable_save,_loadand_cleario methodsvariants contain prebuilt sioDict implementationsfunctions likegetDeep, setDeep, setDeepSimpleare utility functions that can be used for any dictExample UsagefromsioDictimportSioDict,SioListd=SioDict("test.json",{"a":1},reset=True)d["a"]={"b":2}# expect test.json =>  {"a": {"b": 2}}LicenseMITAcknowledgementsPeter Wendl
Package: sion
py-sionSIONdeserializer/serializer for Python.Synopsisstreamtextimportsion#...withopen('spam.sion')asf:obj=sion.load(f)withopen('eggs.sion','w')asf:sion.dump(obj,f)#...bytesimportsionfromurllib.requestimporturlopen#...withurlopen(ham)asres:obj=load(res)#...stringimportsion#...spam=sion.loads('sion data')eggs=sion.dumps(spam)#...Hereare some other examples.Installation$pip3installsion
Package: sionna
Sionna: An Open-Source Library for Next-Generation Physical Layer ResearchSionna™ is an open-source Python library for link-level simulations of digital communication systems built on top of the open-source software libraryTensorFlowfor machine learning.The official documentation can be foundhere.InstallationSionna requiresPythonandTensorflow.
In order to run the tutorial notebooks on your machine, you also needJupyterLab.
You can alternatively test them onGoogle Colab.
Although not necessary, we recommend running Sionna in aDocker container.Sionna requiresTensorFlow 2.10-2.15and Python 3.8-3.11. We recommend Ubuntu 22.04. Earlier versions of TensorFlow may still work but are not recommended because of known, unpatched CVEs.To run the ray tracer on CPU,LLVMis required by DrJit.  Please check theinstallation instructions for the LLVM backend.We refer to theTensorFlow GPU support tutorialfor GPU support and the required driver setup.Installation using pipWe recommend to do this within avirtual environment, e.g., usingconda.
On macOS, you need to installtensorflow-macosfirst.1.) Install the packagepip install sionna2.) Test the installation in Pythonpython>>> import sionna
    >>> print(sionna.__version__)
    0.16.23.) Once Sionna is installed, you can run theSionna "Hello, World!" example, have a look at thequick start guide, or at thetutorials.The example notebooks can be opened and executed withJupyter.For a local installation, theJupyterLab Desktopapplication can be used which also includes the Python installation.Docker-based installation1.) Make sure that you haveDockerinstalled on your system. On Ubuntu 22.04, you can run for examplesudo apt install docker.ioEnsure that your user belongs to thedockergroup (seeDocker post-installation)sudo usermod -aG docker $USERLog out and re-login to load updated group memberships.For GPU support on Linux, you need to install theNVIDIA Container Toolkit.2.) Build the Sionna Docker image. From within the Sionna directory, runmake docker3.) Run the Docker image with GPU supportmake run-docker gpus=allor without GPU:make run-dockerThis will immediately launch a Docker image with Sionna installed, running JupyterLab on port 8888.4.) Browse through the example notebooks by connecting tohttp://127.0.0.1:8888in your browser.Installation from sourceWe recommend to do this within avirtual environment, e.g., usingconda.1.) Clone this repository and execute from within its root foldermake install2.) Test the installation in Python>>> import sionna
    >>> print(sionna.__version__)
    0.16.2License and CitationSionna is Apache-2.0 licensed, as found in theLICENSEfile.If you use this software, please cite it as:@article{sionna,title={Sionna: An Open-Source Library for Next-Generation Physical Layer Research},author={Hoydis, Jakob and Cammerer, Sebastian and {Ait Aoudia}, Fayçal and Vem, Avinash and Binder, Nikolaus and Marcus, Guillermo and Keller, Alexander},year={2022},month={Mar.},journal={arXiv preprint},online={https://arxiv.org/abs/2203.11854}}
Package: si-openaccess
Smithsonian Open AccessPython module to query the Smithsonian Institution Open Access API.A project of the Digitization Program Office, OCIO, Smithsonian.https://dpo.si.edu/For details of the developer tools for the Open Access API:https://www.si.edu/openaccess/devtoolsFor details about Smithsonian Open Access:https://www.si.edu/openaccessInstallationTo install using pip:pipinstallsi_openaccessOr:python3-mpipinstallsi_openaccessRequirementsThe module requires Python 3.11 or higher.The API requires you to provide your own 'api_key' value. Please register withhttps://api.data.gov/signup/to get a key.UsageLoad modulefromsi_openaccessimportsi_openaccessGet ContentTo fetch content based on id/url of an object (docs):si_openaccess.content(id=[ITEMID],api_key=[YOURAPIKEY])Fetch statisticsTo fetch stats for CC0 objects/media (docs):si_openaccess.metrics_stats(api_key=[YOURAPIKEY])Search contents based on categoryTo fetch content based on a query against a category. art_design, history_culture or science_technology (docs):si_openaccess.category_search(q=[SEARCHTERMS],category=[CATEGORY],start=0,rows=10,sort=[SORT],api_key=[YOURAPIKEY])Values forcategoryare:art_designhistory_culturescience_technologyValues forsortare:relevancyidnewestupdatedrandomSearchTo fetch content based on a query (docs):si_openaccess.search(q=[SEARCHTERMS],start=0,rows=10,sort=[SORT],type=[TYPE],row_group=[ROW_GROUP],api_key=[YOURAPIKEY])Values forsortare:relevancyidnewestupdatedrandomValues fortypeare:edanmdmead_collectionead_componentallValues forrow_groupare:objectsarchivesSearch TermsTo Fetches an array of terms based term category (docs):si_openaccess.search_terms(category=[CATEGORY],starts_with=None,api_key=[YOURAPIKEY])Values forcategoryare:culturedata_sourcedateobject_typeonline_media_typeplacetopicunit_codeThe value forstarts_withis optional.
Package: sioscgi
What is sioscgi?sioscgi is an implementation of the Simple Common Gateway Interface (SCGI)
protocol under the Sans-I/O philosophy.What is SCGI?SCGI is a protocol used for communication between HTTP servers and Web
applications. Compared to CGI, SCGI is more efficient because it does not fork
and execute a separate instance of the application for every request; instead,
the application is launched ahead of time and receives multiple requests
(either sequentially or concurrently) via socket connections. Compared to
FastCGI, SCGI is a much simpler protocol as it uses a separate socket
connection for each request, rather than including framing within a single
connection to multiplex requests (a feature which is rarely used in FastCGI
anyway due to the lack of per-request flow control).See theWikipediaandPythonSCGI pages for more information.What is Sans-I/O?Sans-I/O is a philosophy for developing protocol processing libraries in which
the library does not do any I/O. Instead, a user of the library is responsible
for transferring blocks of bytes between the socket or pipe and the protocol
library, and for receiving application-level protocol items from and sending
them to the library. This obviously makes a sans-I/O library a little more
difficult to use, but comes with the advantage that the same library can be
used with any I/O and concurrency mechanism: the same library should be usable
in a single-request-at-a-time server, a process-per-request or
thread-per-request blocking server, a server using select/poll and
continuations, or a server using asyncio, Twisted, or any other asynchronous
framework.SeeSansIOfor more information.How do I install it?sioscgi’s releases are published on PyPI for installation through pip. You can
runpip install sioscgi.For development, the source is available atGitLabandGitHub.How do I use it?In general terms, as follows:Accept an SCGI connection from the HTTP server (or other SCGI client).Construct anSCGIConnectionobject.Receive the request from the SCGI client by repeating the following until aRequestEndevent occurs:Read some bytes from the connection and pass them toSCGIConnection.receive_data.CallSCGIConnection.next_eventto receive high-level events
corresponding to the received data (oneRequestHeaders, zero or moreRequestBodyevents, and oneRequestEnd).Send the response to the SCGI client usingSCGIConnection.send, sending
first aResponseHeadersevent, then zero or moreResponseBodyevents,
then aResponseEndevent, and sending the returned bytes over the
connection.This being a sans-I/O library, how exactly you implement each step will depend
on what I/O and application framework you’re working under. For example, for a
thread-per-request or process-per-request server, you would likely do a
blocking receive from a normal function in step 3.1; in an asyncio-based server
you would insteadawaitnew data from a coroutine.For detailed information about the classes and methods available, see the
module documentation provided in the docstrings by runningimport sioscgifollowed byhelp(sioscgi).
Package: siotelegram
Sans io implementation of telegram apiTiny telegram bot-api wrapper library.Reasonsaiotgis framework, not library and have no proxy support.Raw api calls translation is better for understanding and will not break if telegram api will be changed.snake_caseFeaturessupport both, sync and async ways to deal with io.Simple as telegram api is.snake_caseapi converted to telegramcamelCase.Pollingoffsethandled for you viaget_updatesmethod.Handling timeout between requests automatically (viadelaykeyword-only argument).Use any io backend you want.ImplementationSans ioimplementation based on generators
for simplifying flow and holding state.siotelegramhave io backends based on:requestsaiohttphttpxInstallationsync:python -m pip install siotelegram[requests]async:python -m pip install siotelegram[aiohttp]python -m pip install siotelegram[httpx]ExamplesCommonimportasyncioimportsiotelegramTOKEN="token"defrequests_example():api=siotelegram.RequestsTelegramApi(TOKEN,timeout=10)response=api.get_updates()print(response)asyncdefaiohttp_example():asyncwithsiotelegram.AioHTTPTelegramApi(TOKEN,timeout=10)asapi:response=awaitapi.get_updates()print(response)if__name__=="__main__":importtime# requestsrequests_example()time.sleep(1)# aiohttpasyncio.run(aiohttp_example())Send filesimportsiotelegramapi=siotelegram.RequestsTelegramApi(TOKEN,timeout=10)name="capybara.jpg"api.send_photo(chat_id=chat_id,caption="Hellow world!",files_=dict(photo=open(,"rb")))# or from in-memory bytesimportpathlibimportiodata=pathlib.Path(name).read_bytes()f=io.BytesIO(data)f.name=nameapi.send_photo(chat_id=chat_id,caption="Hellow world!",files_=dict(photo=f))
Package: sip
What is SIP?One of the features of Python that makes it so powerful is the ability to take
existing libraries, written in C or C++, and make them available as Python
extension modules.  Such extension modules are often called bindings for the
library.SIP is a collection of tools that makes it very easy to create Python bindings
for C and C++ libraries.  It was originally developed in 1998 to create PyQt,
the Python bindings for the Qt toolkit, but can be used to create bindings for
any C or C++ library.  For example it is also used to generate wxPython, the
Python bindings for wxWidgets.SIP comprises a set of build tools and a sip module. The build tools process a
set of specification files and generates C or C++ code which is then compiled
to create the bindings extension module.  Several extension modules may be
installed in the same Python package.  Extension modules can be built so that
they are are independent of the version of Python being used.  In other words a
wheel created from them can be installed with any version of Python starting
with v3.8.The specification files contain a description of the interface of the C or C++
library, i.e. the classes, methods, functions and variables.  The format of a
specification file is almost identical to a C or C++ header file, so much so
that the easiest way of creating a specification file is to edit a copy of the
corresponding header file.The sip module provides support functions to the automatically generated
code.  The sip module is installed as part of the same Python package as the
generated extension modules.  Unlike the extension modules the sip module is
specific to a particular version of Python (e.g. v3.8, v3.9, v3.10, v3.11).SIP makes it easy to exploit existing C or C++ libraries in a productive
interpretive programming environment.  SIP also makes it easy to take a Python
application (maybe a prototype) and selectively implement parts of the
application (maybe for performance reasons) in C or C++.AuthorSIP is copyright (c) Riverbank Computing Limited.  Its homepage ishttps://www.riverbankcomputing.com/software/sip/.Support may be obtained from the PyQt mailing list athttps://www.riverbankcomputing.com/mailman/listinfo/pyqt/.LicenseSIP is released under the GPL v2, GPL v3 licenses, and under a license similar
to the BSD license.InstallationSIP can be installed from PyPI:pip install sipDocumentationThe documentation for the latest release can be foundhere.
Package: sipcentric
Simwood Partner Python ClientA modern Python client library for Sipcentric
(Simwood Partner, formerly Nimvelo)API.fromsipcentricimportSipcentricapi=Sipcentric(username="myusername",password="mypassword")printapi.sms.post(_from="0123",to="03301201200",body="Hello World!")InstallBest methodsudo pip install sipcentricYou may need to installsimplejsonif you don't have it already.Manual methodgit clone git@github.com:faelix/sipcentric.git && cd sipcentric
sudo python setup.py installGetting startedExamplesGet account detailsfromsipcentricimportSipcentricapi=Sipcentric(username="myusername",password="mypassword")printapi.account.get()Connect to the streaming apifromsipcentricimportSipcentricapi=Sipcentric(username="myusername",password="mypassword")stream=api.StreamdefcallHandler(call):print'Incoming call from '+call['callerIdName']+' ('+call['callerIdNumber']+')'defsmsHandler(sms):printsms['excerpt']+' from: '+sms['from']stream.register(type='incomingcall',callback=callHandler)stream.register(type='smsreceived',callback=smsHandler)stream.connect()Referencesipcentric.Sipcentric(username, password, base='https://pbx.sipcentric.com/api/v1', customer='me')accountget()callBundlesget()recordingsget()phoneBookget()timeIntervalsget()endpointsget()phoneNumbersget()smsget()post(to, _from, body)creditStatusget()callsget()soundsget()outgoingCallerIdsget()Streamregister(type, callback)connect()disconnect()HistoryThis project was forked from Nimvelo's original project (for Python 2.7)python-client.  The name was
changed tosipcentricafter discussion with the development team at Simwood.
Package: sipcounter
sipcounterThis module implements a simple, stateless SIP message counter with optional message flow direction, IP address, protocol and port tracking. When the IP address/protocol/port of the communicating hosts are supplied in addition to the SIP message body it counts the SIP requests and responses for each communication link separately. A link thus is comprised of the SIP UA server and client IP address, the server and client side ports and the transport protocol type (TLS, TCP, UDP) which can also be inferred from the SIP message body if not provided. It's 'data' dictionary holds the links as keys and a dictionary for each link as values which hold another layer of dictionaries, one for each direction and Counters as values that keep track of the number of SIP message types sent or received in that direction.
For quick visualization it comes with a 'tostring' convenience method and numerous other similar to those available for the Counter class from the collections module and more.ExampleTo count the number of INVITE and ReINVITE messages and any error responses (4xx, 5xx, 6xx) received in INVITE dialogs:>>> from sipcounter import SIPCounter
>>> reader = sip_msg_reader()
>>> c = SIPCounter(name='SBC Cone-A', sip_filter=set(['INVITE', '4', '5', '6']))
>>> while True:
...     try:
...         # the 'reader' is SIP log parser generator
...         timestamp, sipmsg, msgdir, srcip, srcport, dstip, dstport = next(reader)
...         c.add(sipmsg, msgdir, srcip, srcport, dstip, dstport)
...     except:
...         print(c.tostring(title='2020-0101 01:01:00'))
...         break
KeyboardInterrupt

    2020-0101 01:01:00          INVITE   ReINVITE    503       600    TOTAL
    SBC Cone-A                ---> <--- ---> <--- ---> <--- ---> <---
    1.1.1.1-TCP-5060-2.2.2.1    13   10   40   40    0    0    0    0   103
    1.1.1.1-TLS-5061-2.2.2.1    13   10   36   42    1    0    1    0   103
    SUMMARY                     26   20   76   82    1    0    1    0   206RequirementsPython 2.7-3.xLicenseMIT, see: LICENSE.txtAuthorSzabolcs Szokolysszokoly@pm.me
Package: sipcp
YAPO ProgramProgramma terminale "sipcp" che permette non solo di fare delle query a YAPO ma di utilizzare l'endpoint GraphDB per
interfacciarsi con SPARQL verso fonti esterne come WikiData etc.. etc..Il programma è completamente fatto in Python e non include una GUI.Per utilizzarlo basta installarlo con il comandopip install sipcped utilizzarlo direttamente nel terminale nel
seguente modo:NB: la prima esecuzione del programma chiederà all'utente di inizializzare un file
config.ini che conterrà l'URL di GraphDB in locale (o su server), da quel momento
in poi sarà registrato in localenella cartella in cui è stato eseguitosipcp query "query qui"effettua una query in-line, non sono permessi caratteri come virgolette quindi l'utilizzo
rimane limitato alle query veloci e tipo "listing"sipcp query-from-texteffettua tutte le query prendendole da un file di testo chiamato "do.txt"
il file deve essere nella directory in cui si sta attualmente per eseguire il programma sipcpsipcp query-product Compagniainterroga YAPO alla ricerca di tutti i prodotti dalla compagnia Compagnia.
es:sipcp query-product Applerestituisce tutti i prodotti venduti dalla Applesipcp query-subcompanies Compagniasimilare a quello prima, interroga YAPO restituendo tutte le compagnie che
lavorano per la compagnia Compagnia.sipcp myproducts Usereffettua la ricerca di tutti i prodotti comprati da un utente in YAPO, molto utile per il
comando seguentesipcp cputype Prodottoeffettua la ricerca del tipo di cpu del prodotto Prodottosipcp compatible-cables Smartphonecerca tutti i cavi compatibili con lo smartphone specificatosipcp compatible-smartphonescerca tutte le opzioni di compatibilità tra smartwatch e smartphonessipcp query-smartphone Prezzocerca tutti gli smartphones che costano di piu' della cifra specificata e li ordina
dal meno costoso al piu' costososipcp query_smartwatch_smartphone Prezzocerca tutti i match per compatibilità fra smartphone e smartwatchsipcp search-brand Company Brandcerca tutti i Brand che vendono venduti sul sito di Companysipcp search-from-cpu Devicecerca tutti i devices su Wikidata che hanno la stessa CPU del device in inputsipcp search-ig-profile Devicecerca la pagina instagram su Wikidata della compagnia che vende il device Device.Per invocare un help in formato internazionale, basta digitaresipcp --helpSupporta Python3.6 e le versioni successive.Note di esecuzionesipcp nasce per essere eseguito su un terminale UNIX-like (Linux, MacOS...) e supporta la maggior parte dei terminali in
circolazione, eseguendo anche output colorato. Su Windows funziona in ogni caso, ma le differenze principali sono:Non si possono incollare sul terminale Query multi-lines per il comandosipcp query ""L'output non è colorato (sembra banale ma rende l'interazione interessante)
Package: sipc-xethhung12
Buildpipinstall-rrequirements.txt
rm-frdist
python-mbuildpython-mtwineuploaddist/*-u__token__-p$(PYPI_TOKEN)configurationdevice-name:server992kafka-config:type:1# 1 is for default sasl_sslvalue:bootstrap_servers:-{host}sasl_mechanism:SCRAM-SHA-256security_protocol:SASL_SSLsasl_plain_username:{username}sasl_plain_password:{password}kafka-config:type:1value:bootstrap_servers:-{host}sasl_mechanism:SCRAM-SHA-256security_protocol:SASL_SSLsasl_plain_username:{username}sasl_plain_password:{password}consumer:group_id:{group-id}topic:{topic-name}DockerBuildDownload the Dockerfile for buildmkdirsipcpushdsipc
curlhttps://gist.githubusercontent.com/xh-dev/3359450fd15f843016cc6f0babd8bfc0/raw/Dockerfile-OCreateconfig.yamlbase on template inConfigurationsection.build the docker imagedockerbuild--no-cache-tsipc:latest.Executepush to kafkadockerrun--rm-it-v$(pwd)/config.yaml:/app/config.yamlsipc:latest# or# docker run --rm -it -v $(pwd)/config.yaml:/app/config.yaml sipc:latest python -m sipc-xethhung12 --publishpull from kafkadockerrun--rm-it-v$(pwd)/config.yaml:/app/config.yamlsipc:latestpython-msipc-xethhung12--subscribegen env meta filedockerrun--rm-it-v$(pwd)/config.yaml:/app/config.yamlsipc:latestpython-msipc-xethhung12--cast
Package: siphash
pysiphash====A Python implementation of [SipHash](https://131002.net/siphash/), afast short-input PRF.Extract from the description:```SipHash is a family of pseudorandom functions (a.k.a. keyed hashfunctions) optimized for speed on short messages.Target applications include network traffic authentication and defenseagainst hash-flooding DoS attacks.SipHash is secure, fast, and simple (for real):* SipHash is simpler and faster than previous cryptographic algorithms(e.g. MACs based on universal hashing)* SipHash is competitive in performance with insecurenon-cryptographic algorithms (e.g. MurmurHash)* We propose that hash tables switch to SipHash as a hashfunction. Users of SipHash already include OpenDNS, Perl 5, Ruby, orRust.```usage----`Pysiphash` tries to follow the[hashlib](http://docs.python.org/2/library/hashlib.html) API. You canadd data to the hash by calling an `update` method, or feed datadirectly to the constructor:```:python>>> import siphash>>> key = '0123456789ABCDEF'>>> sip = siphash.SipHash_2_4(key)>>> sip.update('a')>>> sip.hash()12398370950267227270L>>> siphash.SipHash_2_4(key, 'a').hash()12398370950267227270L```To extract the hash as a numeric value call `hash()`:```>>> siphash.SipHash_2_4(key, 'a').hash()12398370950267227270L```Or `digest()` to get a raw 8-bytes string:```:python>>> siphash.SipHash_2_4(key, 'a').digest()'\x86L3\x9c\xb0\xdc\x0f\xac'```Or `hexdigest()` for a 16-bytes hex encoding:```:python>>> siphash.SipHash_2_4(key, 'a').hexdigest()'864c339cb0dc0fac'```testing----A series of sanity checks are present inline the main `pysiphash`code, to run it type:```:bash$ python siphash/__init__.pyall tests ok```speed----Currently `pysiphash` is a pure-python code, so don't expect blazingspeed. On my machine computing a hash from a ten byte string takesaround 0.31 ms, and hashing 1MiB blob takes 770 ms.