Saravanan666/pypi-org huggingface dataset:
Package: pysip
pysipA thin wrapper around requests to interact with the Simple Intel Platform (SIP).Usageimport pysip

# Connect to SIP
sip_client = pysip.Client('localhost:4443', '11111111-1111-1111-1111-111111111111', verify=False)

# Example POST request
# Add an indicator and ignore any 409 Conflict error if the indicator already exists.
try:
    data = {'type': 'IP', 'value': '127.0.0.1'}
    sip_client.post('/api/indicators', data)
except pysip.ConflictError:
    pass

# Example GET request
# Get all of the indicators with the "Analyzed" status in "bulk" mode.
indicators = sip_client.get('/api/indicators?status=Analyzed&bulk=true')

# Example PUT request
# Update an indicator's status.
data = {'status': 'Informational'}
result = sip_client.put('/api/indicators/1', data)

# Example DELETE request
# Delete an indicator.
result = sip_client.delete('/api/indicators/1')
Package: pysipgate
# pysipgate## What is this?This project consists of a high level Python API for the
[http://www.sipgate.de/basic/api](Sipgatebasic API) and a GUI which is based
around a tray icon using this API.The GUI offers the following features:initiate voice callsdetect phone numbers from clipboardSMS functionalityshow account balance## SetupThere is asetup.pyfor automated installation. To installpysipgatesimply
call:./setup.py install –userThe GUI is configured in the file~/.pysipgate. It should look like this:[account]
user: thammi
password: 123456## UsageTo use the GUI (which is based around a tray icon) simply callpysipgateThere are also some command line options. You can send an SMS with one simple comandecho “Hello World!” | pysipgate –sms 49123456789To initiate a voice call from the command line runpysipgate –call 0123456789## Bugs/TODOsSMS need a phone number with national area code
Package: py-sip-xnu
py_sip_xnuPython module for querying SIP status on XNU-based systems (primarily macOS) through exposed kernel APIs.
No reliance oncsrutilor NVRAM properties, allowing for more accurate and reliable results. Supporting both Intel and Apple Silicon systems.Library returns a SIP object with the following properties:value                    - int    - raw value of SIP configuration
breakdown                - object - holds each SIP key and its value
can_edit_root            - bool   - whether SIP allows editing of protected files
can_write_nvram          - bool   - whether SIP allows writing to NVRAM
can_load_arbitrary_kexts - bool   - whether SIP allows loading of arbitrary kextsIf module accessed under Yosemite or earlier,sip_xnuwill treat SIP as disabled.Project currently synced against macOS 13.0 (XNU 8792.41.9). Based off ofpudquick's concept.Python validated against 2.7 and 3.9.BackgroundSystem Integrity Protection, generally abbreviated as SIP, is a security feature introduced in OS X El Capitan. The primary purpose of this setting was to control access to sensitive operations such as kernel extension loading, protected file write, task tracking, etc. SIP is part of the XNU kernel, and is a cumulation of several kernel flags into the CSR bitmask seen as SIP configuration.The primary benefit of this library over manually invoking eithercsrutilor readingnvram csr-active-configis that we check with the kernel directly, and verify what macOS itself is using for SIP configuration. Contrast this withnvram, boot.efi and XNU can reject SIP bits such as 0x10 (AppleInternal) during runtime without changing the exposed NVRAM value.Withcsrutil, this tool obfuscates much of SIP into a simple on/off state, when in reality SIP is a complex bitmask. Many developers will simply check the output ofcsrutil statusand assume SIP is either enabled or disabled, without properly probing specific bits for what the application may need. Usingsip_xnuallows for better probing and allows users to lower less of SIP for overall better system security.More information can be found here:System Integrity Protection: The misunderstood settingSource for SIP configuration can be found in Apple'scsr.h, and parsing logic fromcsr.c.Installationpip-based:pip3installpy_sip_xnuManual:python3setup.pyinstallUsageInvocation:importpy_sip_xnusip_config=py_sip_xnu.SipXnu().get_sip_status()'''sip_config = {'value': 0,'breakdown': {'csr_allow_untrusted_kexts': False,'csr_allow_unrestricted_fs': False,'csr_allow_task_for_pid': False,'csr_allow_kernel_debugger': False,'csr_allow_apple_internal': False,'csr_allow_unrestricted_dtrace': False,'csr_allow_unrestricted_nvram': False,'csr_allow_device_configuration': False,'csr_allow_any_recovery_os': False,'csr_allow_unapproved_kexts': False,'csr_allow_executable_policy_override': False,'csr_allow_unauthenticated_root': False},'can_edit_root': False,'can_write_nvram': False,'can_load_arbitrary_kexts': False}'''LicenseBSD 3-Clause LicenseCopyright (c) 2022, Mykola Grymalyuk
Package: pySIR
# pySIRPython API to interact with the SIR agent.# InstallationTo install execute:pip install pySIR# DocumentationpySIR implements in python the SIR API. It is just a one to one mapping to avoid dealing with the specifics of making the calls, getting the data or catching the errors. It is just a convenient way of consuming the API. It brings no extra functionality.You can use this library like this:from pySIR.pySIR import pySIR
sir = pySIR(’http://localhost:8080’)result = sir.get_top_prefixes(start_time=”2015-07-25T14:00”, end_time=”2015-07-25T15:00”, limit_prefixes=10, net_masks=”24”, exclude_net_masks=1)After every call you will get a`Call`object which has three attributes:meta- Some information regarding the call.result.meta
{u’length’: 10, u’request_time’: 4.2649, u’error’: False}result- The actual result of the call.result.result
[{u’as_dst’: 43650, u’sum_bytes’: 96527904, u’key’: u’194.132.196.0/22’}, {u’as_dst’: 1299, u’sum_bytes’: 50852480, u’key’: u’0.0.0.0/0’}, {u’as_dst’: 2856, u’sum_bytes’: 42289633, u’key’: u’86.128.0.0/10’}, {u’as_dst’: 43650, u’sum_bytes’: 27442840, u’key’: u’194.132.197.72/29’}, {u’as_dst’: 3320, u’sum_bytes’: 23312608, u’key’: u’79.192.0.0/10’}, {u’as_dst’: 2856, u’sum_bytes’: 22229909, u’key’: u’86.128.0.0/11’}, {u’as_dst’: 2856, u’sum_bytes’: 19337668, u’key’: u’86.128.0.0/12’}, {u’as_dst’: 3320, u’sum_bytes’: 19048046, u’key’: u’84.128.0.0/10’}, {u’as_dst’: 2856, u’sum_bytes’: 18816388, u’key’: u’109.144.0.0/12’}, {u’as_dst’: 3320, u’sum_bytes’: 18002994, u’key’: u’91.0.0.0/10’}]parameters- The parameters used for the call.result.parameters
{u’exclude_net_masks’: u’1’, u’limit_prefixes’: 10, u’start_time’: u’2015-07-25T14:00’, u’end_time’: u’2015-07-25T15:00’, u’net_masks’: u’24’}## Supported methodsAs I mentioned before, this is a 1:1 mapping of the raw API. You can check the supported methods in the official documentation:http://sdn-internet-router-sir.readthedocs.org/en/latest/api/api_v1.0.htmlI recommend you to quickly check the code in the file`pySIR/pySIR.py`to quickly see the names of the methods supported. The code and the names are quite straightforward so the code should be easy to read.## Passing variablesWhen passing variables to the methods just send themnamedusing the same names they have in the original API. For example:sir.get_top_prefixes(start_time=”2015-07-13T14:00”, end_time=”2015-07-13T15:00”, limit_prefixes=10, net_masks=”24”, exclude_net_masks=1)
sir.put_variables_by_category_and_name(development, whatever, content=’231’, extra_vars=’{“asd”: “qwe” , “zxc”:”poi”}’)The same apply when you want to send data (for example when storing or updating a variable). For example:sir.post_variables(name=’this_is_a_variable’, content=’231’, category=’development’, extra_vars=’{“asd”: “qwe” , “zxc”:”poi”}’)
sir.put_variables_by_category_and_name(development, whatever, content=’231’, extra_vars=’’)## SSL VerificationBy default pySIR is going to check SSL certificates and raise an exception if the SSL certificate is not valid. However,
you can override this behavior and ignore certificates by initializing pySIR like this:sir = pySIR(’https://localhost:8080’, verify_ssl=False)
Package: pysirix
sirix-python-clientThe home of the SirixDB python clientThis package is currently in alpha stage.The python client supports both sync and async programs.The api docs can be foundhere.
The api docs can also be built locally with the following:cddocs
makehtmlSome example code:frompysiriximportsirix_sync,DBType,InsertfromhttpximportClientclient=Client(base_url="http://localhost:9443")sirix=sirix_sync("admin","admin",client)db=sirix.database("json-diff",DBType.JSON)db.create()resource=db.resource("json-resource")resource.create({"foo":["bar",None,2.33],"bar":{"hello":"world","helloo":True},"baz":"hello","tada":[{"foo":"bar"},{"baz":False},"boo",{},[]],})resource.update(4,{"new":"stuff"},insert=Insert.RIGHT)Or with Async Support:frompysiriximportsirix_async,DBType,InsertfromhttpximportAsyncClientimportasyncioasyncdefmain():client=AsyncClient(base_url="http://localhost:9443")sirix=awaitsirix_async("admin","admin",client)db=sirix.database("json-diff",DBType.JSON)awaitdb.create()resource=db.resource("json-resource")awaitresource.create({"foo":["bar",None,2.33],"bar":{"hello":"world","helloo":True},"baz":"hello","tada":[{"foo":"bar"},{"baz":False},"boo",{},[]],})awaitresource.update(4,{"new":"stuff"},insert=Insert.RIGHT)loop=asyncio.get_event_loop()loop.run_until_complete(asyncio.run(main()))pysirix-shellInstallingIf you are not installing pysirix as part of a project, the
preferred install method is to usepipx:pipxinstallpysirixConfiguringIn your home directory, create a folder namedpysirix-shell, and create a file namedconfig.jsonin this folder. This file will hold the configuration for the shell. It should have the following form:{"localhost":{"url":"http://localhost:9443","username":"admin","timeout":4},"cloud":{"url":"https://sirix-demo.com:9443","username":"administrator"}}The timeout field is optional, and defaults to 5 (seconds).
Package: pysislab
Pysislab - CRISiSLab Seismometer Network ClientDescriptionThis is a client forCRISiSLab's Seismometer NetworkAPI using WebSockets and MessagePack.Installation$pipinstallpysislabUsageTo list all stations (optionally in CSV format)$pysislab--list--csvTo watch live data in real time for a particular seismometer$pysislab--tail<seismometerid>Or the equivalent in Pythonfrompysislabimportget_sensorsforsensoringet_sensors():print(sensor.id,sensor.secondary_id,sensor.type,sensor.publicLocation,sensor.online,)frompysislabimportSensorTailfordatagraminSensorTail(22):print(datagram.channel,datagram.timestamp,datagram.data)For more examples, see theCLI implementation.See themodels filefor the full list of attributes available on each class.
Package: pysisnoapi
pySisnoAPIpySisnoAPIé uma biblioteca Python que facilita o consumo da API do SISNO para emissão de Nota Fiscal Eletrônica (NFe) e Nota Fiscal de Serviços Eletrônica (NFSe) no Brasil. A biblioteca fornece classes, funções e endpoints para interagir com a API do SISNO de forma simples e eficiente.CaracterísticasSuporte para emissão de NFe para todos os estados brasileiros.Suporte para emissão de NFSe exclusivamente para o Distrito Federal.Classes e funções intuitivas para facilitar a integração com a API do SISNO.Manipulação simplificada de dados de NFe e NFSe.Tratamento de erros e exceções comuns.Testes unitários abrangentes para garantir a estabilidade e qualidade do código.RequisitosPython 3.11 ou superior.Chave de API do SISNO.InstalaçãoPara instalar a biblioteca pySisnoAPI, execute o seguinte comando:pipinstallpysisnoapiContribuiçãoContribuições são bem-vindas! Se você deseja contribuir para o projeto, siga as etapas abaixo:Faça um fork do repositório.Crie uma branch para a sua feature (git checkout -b minha-feature).Implemente suas alterações.Execute os testes unitários (python -m unittest discover).Certifique-se de que todos os testes estão passando.Faça o commit das suas alterações (git commit -am 'Adiciona minha feature').Envie a sua branch para o repositório remoto (git push origin minha-feature).Abra um pull request.LicençaEste projeto está licenciado sob a Licença MIT. Consulte o arquivo LICENSE para obter mais informações.
Package: pysispm
PySisPM is a library to control the EnerGenie EG-PMS and EG-PM2 multiple socket
powerstrips. The outlets can be switched on and off via USB.The library depends on PyUSB (https://github.com/walac/pyusb).Per default, only root is allowed to use devices directly,
therefore the library also only works as root.To allow group sispmctl access copy file /lib/udev/rules.d/60-sispmctl.rules
with the following content:SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd10", GROUP="sispmctl", MODE="660"
SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd11", GROUP="sispmctl", MODE="660"
SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd12", GROUP="sispmctl", MODE="660"
SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd13", GROUP="sispmctl", MODE="660"
SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd15", GROUP="sispmctl", MODE="660"Then reload the udev rules with:udevadm control --reload-rules
Package: pysiss
This is a python module designed to make it easy to perform analysis based on SISS services (including boreholes & geological measurements, raster and vector map data, and vocabularies) within Python using your favourite Python libraries.Warning- this library is in a pre-pre-pre-alpha state and could change without warning.For more details, see the Github page:https://github.com/pysiss/pysissThis library is released under the CSIRO BSD/MIT license:https://github.com/pysiss/pysiss/blob/master/LICENSE.txt
Package: pysistence
Pysistence is a project that seeks to make functional programming in python easier.FAQWhy the name pysistence?The project is named pysistence because most of the data structures it
implements arepersistent.  This doesn’t mean persistent in the sense that
they are stored in a database or the file system.  Rather, it means the data
structures may only be modified by copying.  Where possible, these data
structures will re-use existing implementations without copying everything.Where can I learn more about persistent data structures?Here are some resouces:Developing for Developers:  Persistent data structuresPersistent data structures (wikipedia)Or if you’rereallybrave:Making Data Structures PersistentPurely Functional Data StructuresDownloadYou may download the current release of Pysistence from ourPyPI page.  You may also use easy_install to install pysistence:sudo easy_install pysistenceIf you have Mercurial installed, you can use the following command to check out Pysistence:hg clone http://bitbucket.org/jasbaker/pysistence/Note that you do needsetuptools <http://pypi.python.org/pypi/setuptools>ordistribute <http://pypi.python.org/pypi/distribute>for the next step:python setup.py installIf you’re brave, you can try using pysistence’s experimental C extension:python setup.py install --with-cextDevelopers & CommunityVisitPysistence’s bitbucket pageto get more info and view the wiki.You may also visit ourGoogle Groupfor more info.
Package: pysistency
++++++++++Pysistency++++++++++Python containers with persistency|landscape| |travis| |codecov|`pysistency` provides clones of standard containers backed by persistent datastorage. These containers allow to wrk with data too large for memory, and toseamlessly keep data across program executions... |landscape| image:: https://landscape.io/github/maxfischer2781/pysistency/master/landscape.svg?style=flat:target: https://landscape.io/github/maxfischer2781/pysistency/develop:alt: Code Health.. |travis| image:: https://travis-ci.org/maxfischer2781/pysistency.svg?branch=develop:target: https://travis-ci.org/maxfischer2781/pysistency:alt: Test Health.. |codecov| image:: https://codecov.io/gh/maxfischer2781/pysistency/branch/develop/graph/badge.svg:target: https://codecov.io/gh/maxfischer2781/pysistency:alt: Code Coverage.. contents:: **Table of Contents**:depth: 2Containers==========Efficiently implementing each container requires code tailored to its datastructure and usage. Each implementation is developed separately from others.================ =========================================== ==============Python           Pysistency                                   Status================ =========================================== ==============`dict` `pysistency.pdict.PersistentDict`  Stable`list` `pysistency.plist.PersistentList`  Experimental================ =========================================== ==============The following `Status` categories are used:**Experimental**Public interfaces and data storage may change at any time. Functionalityis lacking.**Stable**Core functionality fully implemented, data storage will remain stable.Some functionality still missing.**Complete**All functionality available. Internal implementation details may change.**Done**All functionality available, internal implementation stable, passes allapplicable, official tests.Where's X?==========Priority for new/existing types depends mostly on ease of implementation andneed. If you require a specific type or interface, let me know.Backends========The containers of `pysistency` rely on backends to store data. This allowsswitching the storage backend for each container. Currently, there is onlyone backend: a file-based backend using `pickle`.
Package: pysistor
Pysistor serves as a thin abstraction layer for persistence mechanisms. It was designed mainly to fill two use cases:You are writing a library, and you’d love for it to work on Pyramid, Flask, Django, etc, but they all store stuff slightly different. This lets you interface with all of them (soon).You want to use differnt backends between testing and production, or dev and testing. Perhaps your dev computers don’t want to run memcached, so instead a simple file backend will suffice for storing _____.Note: Project is on it’s way, but not feature complete yet…LicenseBSD
Package: pysisu
pysisupysisuis a Python package that will query theSisu APIand convert results into a tabular format.Overview and ExampleTake a look atexample_usage.pyfor a simple example.frompysisuimportPySisuimportosAPI_KEY=os.environ.get('SISU_API_KEY')ANALYSIS_ID=13234sisu=PySisu(API_KEY)sisu.run(ANALYSIS_ID)table=sisu.get_results(ANALYSIS_ID)table.to_csv()The API limits its response to 10000 results per response, via pagination. However, there is a flag forauto_paginatethat will continuously fetch for any limit you set.Contributing to protosCurrently (06/21/2022) betterproto only supportsoptionalin beta, so please install the most recent beta version of better proto.pipinstallbetterproto==2.0.0b4Follow the install instructionshere.Then to generate the proto api run the following command:protoc-I.--python_betterproto_out=.api.protoLocal developmentpython-mpipinstall-e.exportSISU_API_KEY=<key>TestingSetuppython3-mvenvenv
python-mpipinstall-e.
pipinstall-rrequirements-dev.txtThere are example api responses intests/input_snapshotsand there are the expected parsing responses intests/output_snapshots.To updated the output snapshots whenever the input snapshots get updated, just runpytest-kresults_output--snapshot-update
Package: pysisyphus
pysisyphusis a software-suite for the exploration of potential energy surfaces in ground-
andexcited states. It implements several methods to search for stationary points
(minima and first order saddle points) and the calculation of minimum energy paths by means
of IRC and Chain of States methods like Nudged Elastic Band and Growing String.
Furthermore it provides tools to easily analyze & modify geometries (aligning, translating,interpolating, ...) and to visualize the calculation results/progress.Further information can be found in the Open Accesspysisyphus paper.Required energies, gradients and hessians are calculated by calling external quantum chemistry codes. Alternativelypysisyphuscan also be used as a library to implement custom quantum chemistry workflows.If any issues arise please open an issue and I'll try to fix it if possible and my time permits it. Contrubtions are welcome, so feel free to submit a PR.This software is still work in progress. Use at your own risk.ExampleFully internal coordinate transition state search for the famous alanine dipeptide isomerization reaction, using the xtb calculator and the growing string method.DocumentationPlease have a look at thedocumentation.
Package: pysite
DescriptionPysite is a simple framework for developing web applications. Pysite delivers very little automation making it up to
the developer to create the magic. Pysite utilizes Jinja2 for templating and Qt’s TS format for localization. TS files
have been chosen as format so that Qt’s Linuguist tool can be used for translations.ChangesNew in 0.3.0Skip javascript files with bad syntax while lupdatingNew in 0.3.1Fix to application/x-www-form-urlencoded detectionNew in 0.2.9Added redirect support for class based subhandlersNew in 0.2.8Possibility to override the content-typeRemoved “RuntimeWarning: Parent module ‘subhandlers’ not found while handling absolute import”New in 0.2.7Bug fixed with cookie parser in pysite.tools.httptools.HTTPRequestDataNew in 0.2.6Added browser_lang in template_infoNew in 0.2.5Added MANIFEST.inNew in 0.2.4Added first specialized subhandler class: DownloadHandlerNew in 0.2.3Added documentation dispositionAdded translation support for subhandler classesNew in 0.2.2Documentation startedPreliminary JavaScript translation supportAdded basepath to the PySiteConfiguration classNew in 0.1.8Added more file typesNew in 0.1.7Further Python 3 supportNew in 0.1.6Preliminary support for Python 3New in 0.1.5Fixed compressed data bugNew in 0.1.4Altered pyinit, PySiteApplication, PySiteConfiguration to handle apache mod_wsgiNew in 0.1.3Altered pysite init script to copy from pysite’s resource folderNew in 0.1.1Added pysite script for site administration and testservingNew in 0.1.0Initial distribution
Package: pysitemap
A Python library for generating a sitemapLatest VersionThe latest version of this project can be found at :http://github.com/vitalvas/pysitemap.InstallationOption 1 : Install via pippip install pysitemapOption 2 : If you have downloaded the sourcepython setup.py installDocumentationHow to use?from pysitemap import SiteMap
from datetime import datetime

site = SiteMap()
site.add(
        loc='http://example.com/webhp',
        lastmod=datetime.now(),
        changefreq='weekly')

print site.to_string()Reporting BugsPlease report the bugs at github issue tracker.https://github.com/vitalvas/pysitemap/issuesAuthorVitalVas <source@vitalvas.com>
Vitaliy Vasilenkohttp://github.com/vitalvashttp://www.vitalvas.com
Package: pysitemaps
pysitemaps: Python Package for Sitemapspysitemapspackage can be used to (systematically) generate and analyze sitemaps.Whats in pysitemaps?We believe in monolithic software development and created this tiny package that does its job without any bloat.How to Use pysitemaps?You can find detailed tutorial onpysitemaps tutorial website.ContributePull Requests, Feature Suggestions, and collaborations are welcome.About UsThis work is a collaborative effort ofseowings, andserpwings.