Saravanan666/pypi-org huggingface dataset:
Package: sigdoc
sigdocInline documentation of parameters, returns, and raises.Documenting function parameters and returns in docstrings is tedious - type hints need to be duplicated, the order is hard to maintain, and added/removed params and returns easily get out of sync.sigdocprovides helpers to automatically extend docstringsat runtimeby annotating a function's parameter and return type hints "inline". This inline notation greatly increases the locality of the code and documentation, reducing the maintenance burden.As this relies on runtime generation, the full docstring will only be visible to runtime inspection. Luckily, this includeshelp(...)inpython,ipython, andjupyter(includingShift+Tab). Static analysis tools (such as many IDEs) won't know how to decipher the full docstring, but often show the function's signature, which will still have all of the useful information included.Installationsigdoccan be installed from PyPI on python 3.9+ withpip install sigdoc.ContributingEveryone is welcome to contribute - feel free to open an issue or PR!
Package: sigdump
Use signal to show stacktrace and garbage collection stats of a Python process likefrsyuki/sigdump.UsageServer example to enable sigdump is below:importosfromwsgiref.simple_serverimportmake_serverimportsigdumpdefapplication(env,start_response):start_response('200 OK',[('Content-type','text/plain; charset=utf-8')])return[b'Hello World']if__name__=='__main__':sigdump.enable(verbose=True)# just calling sigdump.signal()print("pid:",os.getpid())httpd=make_server('',8000,application)httpd.serve_forever()$pythonexample/wsgi.pypid: 57650
SIGDUMP is enabled. The result is exported to /tmp/sigdump-82323.log.Then sending aSIGCONTsignal.
Please setSIGDUMP_SIGNALenvironment variable if you want to change the signal.$kill-sSIGCONT57650See/tmp/sigdump-<pid>.log.
Please setSIGDUMP_PATHenvironment variable if you want to change the output path.
You can set"-"here to dump toSTDOUT, or"+"toSTDERR.$less/tmp/sigdump-57650.logSigdump at 2019-12-06 21:04:55.071633 process 57650

  Stacktrace:
  File "example/wsgi.py", line 15, in <module>
    httpd.serve_forever()
  File "/Users/c-bata/.pyenv/versions/3.7.1/lib/python3.7/socketserver.py", line 232, in serve_forever
    ready = selector.select(poll_interval)
  File "/Users/c-bata/.pyenv/versions/3.7.1/lib/python3.7/selectors.py", line 415, in select
    fd_event_list = self._selector.poll(timeout)

   GC stat:
     Generation 0:
       collections   : 33
       collected     : 99
       uncollectable : 0
     Generation 1:
       collections   : 2
       collected     : 253
       uncollectable : 0
     Generation 2:
       collections   : 0
       collected     : 0
       uncollectable : 0LICENSEMIT License

Copyright (c) 2016 Masashi SHIBATA

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: siger
SIGERAPI desenvolvida para acessar diretamente em DataFrames os dados do SIGER. Adicionalmente, várias manipulações e expansões de funcionalidades
também estão implementadasInstalaçãoVocê pode instalar a última versão do pacote via pip:pipinstallsigerMódulosEste projeto contém os seguintes módulos:ImportSIGERMódulo base de todos os submódulos seguintes. É aqui que são definidos os códigos para download das informações do SIGER.Exemplo de uso:fromsigerimportImportSIGERoSIGER=ImportSIGER("https://siger.cepel.br/","XXX","XXX")# Relatório de Obrasdf_robras=oSIGER.get_robras()VerificaSIGERNeste módulo estão armazenadas todas as funções e comparações que realizamos para verificar a qualidade dos
decks carregados para o programa, assim como verificar possíveis erros após o carregamento.Exemplo de uso:fromsigerimportVerificaSIGERoSIGER=VerificaSIGER("https://siger.cepel.br/","XXX","XXX")# Verifica carregamentopath_decks=""# Opcionaldf_robras_original=""# Opcionalrelatorio_carregamento=oSIGER.verifica_carregamento(path_decks,df_robras_original)VisualizaSIGERNeste módulo é ampliada a visão de como os equipamentos estão relacionados dentro do SIGER e quais seus dependentes.Exemplo de uso:fromsigerimportVisualizaSIGERoSIGER=VisualizaSIGER("https://siger.cepel.br/","XXX","XXX")# Verifica carregamentodf_siger=oSIGER.get_base_siger()codigo_obra_para_visualizar=""relatorio_carregamento=oSIGER.verifica_carregamento(path_decks,df_robras_original)WebSIGERAqui estão as funcionalidades que permitem o carregamento de uma lista de decks para dentro do SIGER. É possível aqui, programar a execução do carregamento desde os 7 arquivos até o carregamento desde o início da base.Exemplo de uso:fromsigerimportWebSIGERimportpandasaspdoSIGER=WebSIGER("https://siger.cepel.br/","XXX","XXX")# Verifica carregamentodf_arquivos_carregar=pd.read_csv("ARQUIVO_CARGA",sep=";")chromedriver_path=r"D:\_APAGAR\_ChromeDriver\chromedriver.exe"flag_carregamento=oSIGER.carrega_siger(df_arquivos_carregar,chromedriver_path)LicençaEste projeto está licenciado sob a GNU GENERAL PUBLIC LICENSE. Isso significa que você pode copiar, distribuir e modificar o software, desde que você acompanhe quaisquer modificações com a mesma licença e que você disponibilize o código-fonte.Para mais detalhes, por favor veja o arquivo LICENSE no repositório ou visite o site oficial da GNU.
Package: sigfig
This is thesigfigPython package used for rounding numbers (with expected results).>>>round(0.25,1)0.2>>>fromsigfigimportround>>>round(0.25,decimals=1)0.3>>>round(3.14159,sigfigs=2)3.1>>>round(3.14159,uncertainty=0.003639)'3.142 ± 0.004'>>>round('3.141592653589793','0.00000002567',format='Drake')'3.141 592 654(26)'Key Features:round numbers by significant figures/digitsround numbers by decimal placesround numbers by uncertainty/errorformat numbers in a variety of common styles & notationsread in numbers of any typeIn-depth documentation can be found here:InstallationUsage GuideAPI DocumentationProject Development & RoadmapUseful links:Python Package Index entry:https://pypi.org/project/sigfig/Source Code:https://github.com/drakegroup/sigfig/Please direct any comments/suggestions/feedback/bugs tomike.busuttil@gmail.comandvaldezt@gmail.comThanks for downloading :)
Package: sigfoxapi
python-sigfoxapiis a Python wrapper for theSigfoxbackend REST API.At this stage only features that are accessible withLIMITED_ADMINpermissions have been implemented as I personally don’t have full
access tp the REST-API.Groups (info, list).Device types (list, edit, errors, warnings, messages, disengage).Callbacks (list, new, delete, enable, disable, errors, downlink).Devices (info, list, tokenstate, messages, locations, errors, warnings,
networkstate, message metrics, consumptions).Coverage (redundancy, predictions).Users (list)For more details about the Sigfox backend REST API navigate to theGrouppage in the Sigfox backend web interface, select a group, click onREST-APIand then on theAPI documentationlink. The documentation is generated
automatically and tailored to the access permission of the logged-in user.ExampleThe example retrieves information about a device.>>>fromsigfoxapiimportSigfox>>>s=Sigfox('mylogin','mypassword')>>>s.device_info('002C'){"id":"002C","name":"Labege 4","type":"4d3091a05ee16b3cc86699ab","last":1343321977,"averageSignal":8.065601,"averageSnr":8.065601,"averageRssi":-122.56,"state":0,"lat":43.45,"lng":1.54,"computedLocation":{"lat":43.45,"lng":6.54,"radius":500},"activationTime":1404096340556,"pac":"545CB3B17AC98BA4","tokenType":"CONTRACT","contractId":"7896541254789654aedfba4c","tokenEnd":1449010800000,"preventRenewal":false}It is also possible to have theSigfox()methods return objects instead
of dictionaries by settingsigfoxapi.RETURN_OBJECTStoTrue.>>>sigfoxapi.RETURN_OBJECTS=True>>>device=s.device_info('002C')>>>device.averageRssi-122.56>>>device.computedLocation.lat43.45DocumentationThe full documentation can be found athttp://python-sigfoxapi.readthedocs.io/en/master/#.
Package: sigfoxapi-fork
python-sigfoxapiis a Python wrapper for theSigfoxbackend REST API.At this stage only features that are accessible withLIMITED_ADMINpermissions have been implemented as I personally don’t have full
access tp the REST-API.Groups (info, list).Device types (list, edit, errors, warnings, messages, disengage).Callbacks (list, new, delete, enable, disable, errors, downlink).Devices (info, list, tokenstate, messages, locations, errors, warnings,
networkstate, message metrics, consumptions).Coverage (redundancy, predictions).Users (list)For more details about the Sigfox backend REST API navigate to theGrouppage in the Sigfox backend web interface, select a group, click onREST-APIand then on theAPI documentationlink. The documentation is generated
automatically and tailored to the access permission of the logged-in user.ExampleThe example retrieves information about a device.>>>fromsigfoxapiimportSigfox>>>s=Sigfox('mylogin','mypassword')>>>s.device_info('002C'){"id":"002C","name":"Labege 4","type":"4d3091a05ee16b3cc86699ab","last":1343321977,"averageSignal":8.065601,"averageSnr":8.065601,"averageRssi":-122.56,"state":0,"lat":43.45,"lng":1.54,"computedLocation":{"lat":43.45,"lng":6.54,"radius":500},"activationTime":1404096340556,"pac":"545CB3B17AC98BA4","tokenType":"CONTRACT","contractId":"7896541254789654aedfba4c","tokenEnd":1449010800000,"preventRenewal":false}It is also possible to have theSigfox()methods return objects instead
of dictionaries by settingsigfoxapi.RETURN_OBJECTStoTrue.>>>sigfoxapi.RETURN_OBJECTS=True>>>device=s.device_info('002C')>>>device.averageRssi-122.56>>>device.computedLocation.lat43.45DocumentationThe full documentation can be found athttp://python-sigfoxapi.readthedocs.io/en/master/#.
Package: siggi
# siggi
[![Build Status](https://travis-ci.org/jbkalmbach/siggi.svg?branch=master)](https://travis-ci.org/jbkalmbach/siggi)
[![codecov.io](https://codecov.io/github/jbkalmbach/siggi/coverage.svg?branch=master)](https://codecov.io/github/jbkalmbach/siggi?branch=master)
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)Spectra Information Gain (SIGgi)
Package: sightingdb
SightingDB is a fast database to perform Sightings. It allows to count how many time someone has seen something, when was the first time, when was the last time etc.This client library is an abstraction from the REST API.ExamplesTo write 3 values:importsightingdbcon=sightingdb.connection(host="localhost",apikey="changeme")writer=sightingdb.writer(con)writer.add("/key/namespace1","pypi.org")writer.add("/key/namespace1","pypi.org")writer.add("/key/namespace2","example.com")writer.commit()We are counting, so pypi.org will have a count of 2.To read 2 values, it is almost like writing butwriterbecamereaderand wefetchdata to iterate on:importsightingdbcon=sightingdb.connection(host="localhost",apikey="changeme")reader=sightingdb.reader(con)reader.add("/key/namespace1","pypi.org")reader.add("/key/namespace2","example.com")foriinreader.fetch():print(str(i))And you will be all set to read all the values.
Package: sightlines
SightlinesSightlines is a framework for using aNovation Launchpadas an information
display and control panel for general computing tasks.Sightlines is made possible by thelaunchpad.pylibrary, written by @FMMT666.Quick StartInstall Sightlines:pip install git+ssh://git@github.com/jarpy/sightlinesRun a sample app:sightlines-rainbowWriting an App (WIP)CellGridIndividual cells are not much fun. TheGridclass collect all the cells in the main 8x8 grid of the launchpad together. You can then look up cells in various ways.Linear AddressingAll the grid cells are available for lookup by linear index. They are numbered 0 to 63, starting top-left and proceeding left-to right, then top to bottom (revealing the cultural bias of the author).grid=Grid()top_left_cell=grid[0]bottom_right_cell=grid[63]Cartesian AddressingYou can use x/y coordinates to get a cell in a more spatial way.grid=Grid()top_left_cell=grid[0,0]bottom_right_cell=grid[7,7]SlicingFinally, you can use Python's slicing syntax.grid=Grid()second_row=grid[8:15]CellRunnerAs a rule, information displays periodically gather some data and then update the display output with what they learned. Sightlines encapsulates this behaviour in theCellRunnerclass. ACellRunnertakes a collection of cells, and a function. It then periodically calls the function and does whatever is in it, generally setting the color of the cells.defbe_green(cells):forcellincells:cell.set_rgb(0,127,0)CellRunner()Cell FunctionsWhen you press a cell on the Launchpad, it can do... stuff.
Package: sight-machine
Sight MachineTheBinaryLoggerallows to store instances ofBinaryLoggableclasses and
then enumerate all entries of any specified class in reverse order::import sight_machine
with sight_machine.BinaryLogger() as log:
    log.write(BinaryLoggableX())
    log.write(BinaryLoggableY())
    log.write(BinaryLoggableX())
    log.write(BinaryLoggableX())

    for entry in log.read(BinaryLoggableX)):
        print(entry)
Package: sightseeingtech-passhub-api
PassHub API ClientPassHub API documentationAccess PassHub with Python. This module offers high level and low level calls to the API.Requirements.Python 2.7 and 3.4+Installation & Usagepip installIf the python package is hosted on Github, you can install directly from Githubpipinstallsightseeingtech_passhub_api(you may need to runpipwith root permission:sudo pip install sightseeingtech_passhub_api)Then import the package:importsightseeingtech_passhub_apiSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)Then import the package:importsightseeingtech_passhub_apiGetting StartedPlease follow theinstallation procedureand then run the following:from__future__importprint_functionimporttimeimportsightseeingtech_passhub_apifromsightseeingtech_passhub_api.restimportApiExceptionfrompprintimportpprintconfiguration=Configuration()configuration.api_key['X-Api-Key']='YOUR_API_KEY'configuration.host='YOUR_HOST'configuration.verify_ssl=Falseclient=ApiClient(configuration)try:productResourceApi=sightseeingtech_passhub_api.ProductResourceApi(client)print('Loading products...')products=productResourceApi.get_all_products()print('Product%dproducts is/are loaded.\n'%len(products))exceptApiExceptionase:print("Exception when calling ProductResourceApi->get_all_products:%s\n"%e)Documentation for API EndpointsClassMethodHTTP requestDescriptionOrderRecordResourceApicreateOrderRecordPOST/api/v1/orderRecordscreateOrderRecordOrderRecordResourceApigetAllOrderRecordsGET/api/v2/orderRecordsgetAllOrderRecordsOrderRecordResourceApigetOrderRecordGET/api/v1/orderRecords/{id}getOrderRecordOrderRecordResourceApimergeVouchersPOST/api/v1/orderRecords/mergeVouchersmergeVouchersOrderRecordResourceApiupdateOrderRecord)PUT/api/v1/orderRecordsupdateOrderRecordProductResourceApifindProductsByVendorGET/api/v1/products/vendor/{vendorId}findProductsByVendorProductResourceApigetAllProductsGET/api/v2/productsgetAllProductsVendorResourceApigetAllVendorsGET/api/v2/vendorsgetAllVendorsVoucherResourceApicancelValidationPOST/api/v2/voucher/validate/cancelV2 Cancel validation for the voucherVoucherResourceApicancelVoucherPOST/api/v1/voucher/cancelcancelVoucherVoucherResourceApiconvertVoucherPOST/api/v1/voucher/convertconvertVoucherVoucherResourceApivalidateVoucherPOST/api/v2/voucher/validate[V2 Validates voucher which represents single order item or group of them.Documentation For AuthorizationX-Api-KeyType: API keyAPI key parameter name: X-Api-KeyLocation: HTTP header
Package: sigili
Usage: sigil [OPTIONS] COMMAND [ARGS]…A Distributed Wiki using a repository structure and made to be familiar to
developers and authors. Supports any kind of file, but expects markdown.Options:--helpShow this message and exit.Commands:checkout  Populate the working directory with the repository’s wiki.
history   Show the edit history of the FILE
init      Create a new Sigil repository in the current directory.
publish   Write every updated file to the repository.
status    Show updated files that will be written to the repository.
view      Prints the article associated with the REFID to stdout.
Package: sigilo
Sigilo 🤫Sigilo provides a secure way to store and retrieve sensitive information like
passwords, OAuth access tokens, credit card numbers, etc.For example, to store a secret onredisusing
sigilo.Sigilo:fromsigiloimportSigilofromsigilo.stores.redisimportRedisStorefromsigilo.ciphers.fernetimportFernetCipher# Put this somewhere safe!key="Ds205mteCt42PaW35TQWtj5LgUB3A541EVf9wy8OyOI="cipher=FernetCipher(key)store=RedisStore("redis://localhost:6379/0")sigilo=Sigilo(store=store,cipher=cipher)sigilo.set("key1",b"secret value")To retrieve the secret:sigilo.get("key1")# returns b"secret value"InstallationSigilo requires Python 3.8 or newer to run.pipinstallsigilo[redis,cryptography]
Package: sigils
“An inscribed or painted symbol considered to have magical power.”Sigils is a Python library for text and meta-text interpolation. It provides advanced capabilities such as context-based interpolation, function execution, nested and recursive interpolation, case-insensitive matching, and global context support.Any Python object can be provided as context, including nested dictionaries, lists, and functions. Sigils can be used directly from Python or from the command line. Sigils is thread-safe and has no dependencies outside of the Python standard library.InstallationInstall Sigils using pip:pipinstallsigilsUsageHere’s a simple example of using Sigils:fromsigilsimportSigilcontext={"user":{"name":"Alice"}}s=Sigil("Hello, %[user.name]!")print(s%context)# Outputs: Hello, Alice!Sigils can handle function execution and nested interpolation:fromsigilsimportSigilcontext={"user":{"name":"Alice","greet":lambdaname:f"Hello,{name}!"}}s=Sigil("%[user.greet:user.name]")print(s%context)# Outputs: Hello, Alice!s=Sigil("%[user.greet:%%user.name]")print(s%context)# Outputs: Hello, %user.name! %user.name is treated as a literal valueSigils support case-insensitive matching and global context fallback:fromsigilsimportSigil,Sigil.Contextglobal_context={"greeting":"Hello, world!"}withSigil.Context(global_context):s=Sigil("%[GREETING]")print(s%{})# Outputs: Hello, world!Command-Line UsageSigils can be used directly from the command line. Here’s an example:sigils"Hello, %[user.name]!"-ccontext.jsonIn this example, “context.json” is a JSON file with a structure like {“user”: {“name”: “Alice”}}. The command will output: “Hello, Alice!”.ConsiderationsFunction Execution: If the value of a Sigil is a callable function, it will be executed and its return value used in the string. Ensure all function values in your context are safe to execute.Recursion Depth: Sigils handles up to 6 levels of nested interpolation by default. Adjust this limit by passing a differentmax_depthvalue to theinterpolatemethod.Thread Safety: The global context in Sigils is thread-safe. However, if you’re using mutable objects in your context and modifying them from multiple threads, manage thread safety at the application level.Case-Insensitive Matching: If a key fails to resolve, a case-insensitive lookup is attempted. This only works if the keys in your context are all unique when lowercased.PerformanceSigils is designed with performance in mind. In typical use cases, Sigils performs competitively with Python’s built-in string formatting.LicenseSigils is licensed under the MIT License. See the LICENSE file for details.
Package: sigils-fastapi
Sigils is a Python library for interpolating strings with data.
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python.This package provides several example servers using FastAPI and Sigils together.InstallationInstall and update from PyPI:pip install -U sigils-fastapiRedirect ServerStart the server in redirect mode:
(uvicorn must be installed already)uvicorn sigils_fastapi.redirect:app --reload
Package: sigkerax
SigkeraxSigkerax is aJAXlibrary forsignature kernels. Features include:Custom static kernels (at time of writing only linear and RBF kernels are implemented);All the benefits of working with JAX: autodiff, autoparallelism, GPU/TPU support etc.InstallationpipinstallsigkeraxRequires Python 3.8+, JAX 0.4.11+.DocumentationComing soon...Quick exampleLineax can solve a least squares problem with an explicit matrix operator:importjaxfromsigkerax.sigkernelimportSigKernelkey1,key2,key3=jax.random.split(jax.random.PRNGKey(0),num=3)batch_X,batch_Y,length_X,length_Y,channels=20,50,100,200,10X=1e-1*jax.random.normal(key1,shape=(batch_X,length_X,channels)).cumsum(axis=1)Y=1e-1*jax.random.normal(key2,shape=(batch_Y,length_Y,channels)).cumsum(axis=1)scales=jax.random.exponential(key3,shape=(10,))signature_kernel=SigKernel(refinement_factor=2,static_kernel_kind="linear",scales=scales,add_time=False)signature_kernel_matrix=signature_kernel.kernel_matrix(X,Y)Other signature libraries in JAXSignax: signatures.
Package: siglent-vxi11
IntroductionTODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project.Getting StartedTODO: Guide users through getting your code up and running on their own system. In this section you can talk about:Installation processSoftware dependenciesLatest releasesAPI referencesBuild and TestTODO: Describe and show how to build your code and run the tests.ContributeTODO: Explain how other users and developers can contribute to make your code better.If you want to learn more about creating good readme files then refer the followingguidelines. You can also seek inspiration from the below readme files:ASP.NET CoreVisual Studio CodeChakra Core
Package: siglib
InstallationUntil it’s published on PyPI, you can install
it from GitHub:pip install git+git://github.com/kyjohnso/siglibor clone the repo and run the install:git clone git@github.com:kyjohnso/siglib.git
cd siglib && pip install .TestingTo test, from the root directory run:PYTHONPATH=src python -m pytestAlternatively, from within an active virtual
environment, run:pip install -e .
python -m pytest