Saravanan666/pypi-org huggingface dataset:
Package: sertipy
SertipyPython library for the Sertiva Web APIInstalationpipinstallsertipyor upgradepipinstallsertipy--upgradeQuick StartTo get started, install sertipy and create an account onSertiva. Add your client ID and client
SECRET to your environment:User authentication# import library or package sertipyfromsertipy.clientimportSertiva# make obj client sertivasertiva=Sertiva(client_id='<your_client_id>',client_secret='<your_client_secret>')FeatureSertipy supports all of the features of the Sertiva Web API including access to all end points, and support for user
authorization. For details on the capabilities checkSertiva Web APIDesigns# to get list designssertiva.designs.list()# to get detail designsertiva.designs.detail('<design_id>')Templates# to get list templatessertiva.templates.list()# to get detail templatesertiva.templates.detail('<template_id>')# create new templatesertiva.templates.create('<design_id>','<title>','<description>')# update templatesertiva.templates.update('<template_id>','<title>','<description>')Recipients# to get list draft recipientssertiva.recipients.list('<template_id>')# create new draft recipientdata_create=[{"name":"John Doe","email":"john@doe.com","fields":{"credentialSubject":{"activityDate":"2021-05-01T19:23:24.000000"}}},]sertiva.recipients.create('<template_id>',data_create)# update draft recipientdata_update=[{"id":"72150eae-b469-4fbf-9b02-226075a9cf10","phone":"0898989898989","fields":{"credentialSubject":{"credentialNumber":"ID/1/1000"}}},]sertiva.recipients.update('<template_id>',data_update)# delete recipientdata_delete=['72150eae-b469-4fbf-9b02-226075a9cf10']sertiva.recipients.delete('<template_id>',data_delete)Credentials# get list all credentialssertiva.credentials.list()# get detail some credentialsertiva.credentials.detail('<credential_id>')MainIssue using data recipients in draft# with all data in draftsertiva.mains.issue('<template_id>','<issuance_date>','<expiration_date>')# with recipient idsrecipient_ids=['6ad5c6e0-9ac7-488b-b05f-d8b32b73b4cf']sertiva.mains.issue('<template_id>','<issuance_date>','<expiration_date>',recipient_ids)Issue Using data recipients directly (without make draft recipient)recipients=[{"id":"72150eae-b469-4fbf-9b02-226075a9cf10","name":"John Doe","email":"john@doe.com","fields":{"credentialSubject":{"credentialNumber":"ID/1/1000","activityDate":"2021-05-01T19:23:24.000000"}}},]sertiva.mains.issue('<template_id>','<issuance_date>','<expiration_date>',recipients)for dataidyou can make withuuidVerify and Revoke# verify credentialdata_to_verify=['72150eae-b469-4fbf-9b02-226075a9cf10']sertiva.mains.verify(data_to_verify)# revoke credentialdata_to_revoke=['72150eae-b469-4fbf-9b02-226075a9cf10']reason='wrong certificate'sertiva.mains.revoke(data_to_revoke,reason)Reporting IssuesIf you have suggestions, bugs or other issues specific to this library, file themhere. Or just send a pull request
Package: sertit
Sertit-UtilsLibrary gathering functions for all SERTIT's projects.Find the API documentationhere.InstallingPipFor installing this library to your environment, please type this:pip install sertit[full][full]will allow you to use the whole library, but you will need to install alsorioxarrayandgeopandas(with GDAL installation issues on Windows, so please install them from wheels that you can
findhere).However, if you do not need everything, you can type instead:nothing, and you won't needrasterio,rioxarray:pip install sertit --extra-index-url ...[rasters_rio], and you won't needrioxarray:pip install sertit[rasters_rio] --extra-index-url ...[rasters]:pip install sertit[rasters] --extra-index-url ...[colorlog]:pip install sertit[colorlog] --extra-index-url ...to havecolorloginstalled[dask]:pip install sertit[dask] --extra-index-url ...to havedaskinstalledCondaYou can install it via conda (but you will automatically have the full version):conda config --env --set channel_priority strictconda install -c conda-forge sertitDocumentationAn HTML documentation is provided to document the code.
It can be found:online (here),on git, indocs.
To consult it, just open theindex.htmlfile in a web browser (you need first to clone this project)
To generate the HTML documentation, just typepdoc sertit -o docs\html -f --html -c sort_identifiers=False
Package: serval
OverviewServalis a high-level Scheme interpreter written in Python.
It implements a subset of R5RS. The code closely follows
Scheme meta-circular evaluator implementation from Ch.4 of the SICP book.The goal of the projectSelf-education (I’ve been always fascinated by language
design and implementation, it was about time I started learning about
interpreters and compilers by actually writing something).To serve as a potential example for other people
interested in interpreter implementation, particularly
Scheme interpreter.Not a goal per se, but I wanted theServalto be able
to run all examples from“The Little Schemer”book (that was
my test target). The project has a test moduletest_the_little_schemer.pywhich runs simple meta-circular evaluator from Ch.10 of the book.
Package: serval-config-utils
SerVal-Config-UtilsDescriptionSerVal-Config-Utils automatically parse configurations from multiple sources into a single python dictionary.InstallationDependenciesserval-config-utils requires:PyYAML (^6.0)mergedeep (^1.3.4)User installationThe easiest way to install serval-config-parser is usingpippip install -U serval-config-utilsUsageIn the python main file, use:import configutils
config = configutils.get_config()Call the main file with parameterspython main.py  -c ./path/to/config.yaml \
                -c ./path/to/config.json \
                -p my.nested.parameter=value \
                -j {"json_formatted":{"nested_parameter":"value"}} \Access the merged config in theconfigdictionary.ExampleThis simple examples merge the config fromexamples/basic_config.yamlandexamples/basic_config.jsonand prints it in the standard output.python examples/basic_example.py -c examples/basic_config.yaml -c examples/basic_config.jsonDevelopmentWe welcome new contributors of all experience levels.
Use pre-commit to ensure your code follows standards.Source codegit clone https://github.com/serval-uni-lu/python-config-parser
Package: servalfix
### Discordhttps://discord.gg/7NmhxQBmET### About libFix Amino.fix and Amino.py 1.2.17### How to install?pip install servalfix### What is the Improvement that this library offers?Minor issues, and improvement for efficient use and/or faster use.### API Reference
[Read the Docs Link](https://aminopy.readthedocs.io/en/latest/)
Package: servc
svc-lib-server-pythonServer implmentation of services for Python.IntroductionSERVC is an opionated implementation of microservices for scalable web architecture. It assumes :all messages can be sent over a bus within the client SLAresponses can be tracked, stored, and retrieved from an intermediate storage layerthe state can be measured and hashed into some form of a stringthe scope of worked can be cached using an id representative of the stateDocumentationServc's documentation can be foundhttps://docs.servc.caExampleHere is the most simple example of use, starting a server to handle requests at the routemy-route;fromservc.com.server.serverimportstart_serverdefinputProcessor(messageId,bus,cache,components,message,emit):pass# the method 'methodA' will be resolved by inputProcessorstart_server("my-route",{"methodA":inputProcessor})
Package: servciceberg
servc-icebergIceberg extension for the servc library. Includes a managed interface for iceberg that includes schema migration, intialization and common query functions.RequirementsAs per usual, this package does not come bundled with any libraries to ensure full flexibility on dependencies and security vulnerabilities.$ pip install servc servc-iceberg pyicebergEnvironment VariablesDATA_PATH- the location to start writing files. Default: /tmp/CATALOGUE_NAME- the name of the catalogue to use. default: 'default'CATALOGUE_NAMESPACE- the name of the namespace to use. default: 'namespace'CATALOGUE_TYPE- the type of catalog. default: sqlCATALOGUE_URI- the postgres url for the catalog. eg: postgresql+psycopg2://username:password@localhost/mydatabaseDocumentationServc's documentation can be foundhttps://docs.servc.caExampleHere is the most simple example of use,fromservc.com.server.serverimportstart_serverdefinputProcessor(messageId,bus,cache,components,message,emit):pass# the method 'methodA' will be resolved by inputProcessorstart_server("my-route",{"methodA":inputProcessor})
Package: servc-lake
servc-lakeRequirementsAs per usual, this package does not come bundled with any libraries to ensure full flexibility on dependencies and security vulnerabilities.$ pip install servc servc-lake pyarrow [pandas]Environment VariablesDATA_PATH- the location to start writing files. Default: /tmp/datalakeParquetimportpyarrowaspafromservclake.parquetimportParquettable=Parquet({"name":"mytesttable","schema":pa.schema([pa.field("col1",pa.string(),nullable=False),pa.field("col2",pa.uint32(),nullable=False),pa.field("j3",pa.uint32(),nullable=False),]),"partition":["col2","col1"],})# write data to tabletable.write(pa.Table.from_pylist([{"col1":"a","col2":1,"j3":1}]))# read partition. reads partiion 1 of col2.df=table.read([1])Delta Lakeimportpyarrowaspafromservclake.deltaimportDelta# create a deltalake instancedeltalake=Delta("/datalake",[{"name":"mytesttable","schema":pa.schema([pa.field("col",pa.string()),pa.field("value",pa.int32())]),"partition":"col",}])# delcare our dataframedf=pa.Table.from_pylist([{"col":"df1","value":1},{"col":"asd2","value":2},{"col":"asd3","value":3},{"col":"asd4","value":4},{"col":"asd5","value":5},],schema=pa.schema([pa.field("col",pa.string()),pa.field("value",pa.int32())]),)# write dataframe to laketable=self.lake.write("mytesttable",df,mode="append")print(table.to_pandas())
Package: servconn
IntroductionUsually when dealing with connecting to servers, you need to keep track of various objects and use similar syntax everywhere in your code. This package exists to minimize the amount of redundancy in server connections by abstracting connections through objects. The currently implemented wrappers include:DatabaseConnectorA class that wraps connections to SQL databasesSocketConnectorA class that wraps connections to servers via socketsInstallationTo install this package, either download the project from Pypi or simply runpip install servconn.DocumentationView the README file for documentation, or view the online documentationhere.
Package: servd
Python daemonizer for Unix, Linux and OS X.This library is a fork ofpython-daemondeveloped originally byserverdensity.InstallpipinstallservdUsageIt has a very simple usage and only requires a pid file to keep track of the daemon. Therun()method should be overrided.fromservdimportDaemonclassService(Daemon):def__init__(self,pidfile)->None:super().__init__(pidfile)defrun(self)->None:"""Service code."""service=Service("service.pid")# Start service daemonservice.start()# Restart service daemonservice.restart()# Stop service daemonservice.stop()
Package: servefastai
servefastaiServe FastAI models and get a web-based UI to test them out with a single line of code. See avideo demo here.InstallationInstall withpip. Make sure you havefastaialready installed.pip install servefastai --upgradeUsagefrom servefastai import serve
serve(learn)learnshould be a FastAI learner object. Navigate to http://PUBLIC_IP:9999 , wherePUBLIC_IPis the public IP address of the machine running the Jupyter notebook. You will see a form where you can upload one or more images. Upload the images and click submit to view the predictions.
Package: servefile
ServefileServe files from shell via a small HTTP server. The server redirects all HTTP
requests to the file, so only IP and port must be given to another user to
access the file. Its main purpose is to quickly send a file to users in your
local network, independent of their current setup (OS/software). Besides that
it also supports uploads, SSL, HTTP basic auth and directory listings.Features:serve single fileserve a directory with directory indexfile upload via webinterfaceHTTPS with on the fly generated self signed SSL certificatesHTTP basic authenticationserving files/directories as on request generated tar filesInstallVia pippipinstallservefileAfter installation either executeservefile --helporpython -m servefile --helpStandalone:
If you don't have pip available just copyservefile/servefile.pyonto the target machine, make it executable and you are ready to go.$wgethttps://raw.githubusercontent.com/sebageek/servefile/master/servefile/servefile.py-Oservefile
$chmod+xservefile
$./servefile--help
Package: servehub
ServeHub Python clientThis is a Python client forServeHub. It lets you run ML APIs hosted on your infrastructure from anywhere Python runs (pipelines, Jupyter notebooks, etc).InstallpipinstallservehubAuthenticateBefore running any Python scripts that use the API, you need to set your ServeHub API token in your environment.Grab your token fromservehub.co/settingsand set it as an environment variable:export SERVEHUB_API_TOKEN=<your token>We recommend not adding the token directly to your source code, because you don't want to put your credentials in source control. If anyone used your API key, their usage would be charged to your account.Run a modelCreate a new Python file and add the following code:>>>importservehub>>>servehub.run("<user_name>/<api_name>:<deployment_name>",input={"prompt":"a 19th century portrait of a wombat gentleman","another_arg":"its value"})Errors and Exceptionsservehub.exceptions.ServeHubException- The base class that all the below errors inherit from.servehub.exceptions.ServeHubError- Raised when an error originates from ServeHub.servehub.exceptions.ApiNotFoundError- Raised when trying to run an API that does not exist, or that the user doesn't have access to.servehub.exceptions.ApiNotDeployedError- Raised when trying to run an API that is not deployed.servehub.exceptions.ApiError- An error from the deployed API's code.
Package: serveitlearn
IntroductionYou may train the most awesome model in the world but if you can't deploy it then people can enjoy your work. Deoployment in ML has always been an issue that we never gets discussed in courses. It is assumed that you can just do this without any training. However, in my experience, I found it not as easy to deploy my models with much flexibility. That's why I decided to createserve-it-learn. The idea for the name purely fromVincent D. Warmerdam's brain fart.InstallationI prefer conda but you do you. You need at least python 3.7Create environment (if you don't already have one)conda create -n serve_scikit_model python=3.7Activate itconda activate serve_scikit_modelInstall itpip install serveitlearnGetting startedThis is a dummy example. You need to add your own code to load the model and perform predictions.fromserveitlearn.decoratorimportapp,predict,initalize# Declare function that initalizes the model and any other data sources@initalizedefmy_initalization():pass# Declare function that will make the prediction based on the query@predictdefmy_prediction(query_dict):passFull exampleIf you want to see afull example, then you have to take few more after installation because it requires loading scikit-learn model and I didn't release a pickle or joblib due topotiential security reasons.The example, loads Iris dataset, trains a simple SVC model and deploys it using `serveitlearn.$ git clone https://github.com/samarpan-rai/serveitlearn

$ cd serveitlearn/examples/

$ pip install -r requirements.txt

$ uviron
Package: serveliza
ServelizaServelizais an application to extract data of the Chilean Electoral Service (SERVEL) from different open sources.A first step to democratize data is to make it accessible for free use.Quick start$pipinstallserveliza$serveliza-hFeaturesIt analyzes, extracts and exports data from theelectoral roll, having as a source the public pdf files distributed by SERVEL.Added in the first release (0.1)DocumentationInstallationUsageAPI referenceContributingCreditsHistorySpanish translationis also available.LicenseGNU General Public License v3History0.1.7 (2020-10-13)Fix cli and regex bugs.0.1.6 (2020-09-22)Fix several bugs.0.1.5 (2020-09-05)Fix issue in the cli interface.0.1.4 (2020-09-04)Change development status to alpha.Fix deploy issue.Include the json data file in distribution.0.1.3 (2020-09-02)Fix deploy issue.0.1.2 (2020-09-02)Update README and documentation.Traslate the documentation to spanish.Fix another deploy issue.0.1.1 (2020-08-31)Fix deploy issue.0.1.0 (2020-08-30)First release on PyPI.Electoral roll feature.
Package: serve-me-once
serve-me-onceServes some data over HTTP,once.
Based on the built-in Python modulehttp.server.Installationpip install serve-me-onceUsefromserve_me_onceimportserve_once,gen_random_portserve_once("Hello, World",timeout=2,mime_type="text/html",port=gen_random_port())orfromserve_me_onceimportserve_once_in_background,gen_random_portimporttimeaddr=serve_once_in_background("Hello, World",timeout=2,mime_type="text/html",port=gen_random_port())print("Hosting at:",addr)time.sleep(3)... Why?The web version ofNetronaccepts an URL as a query parameter (example).
But serving temporary files is a chore.
Hence this.
Package: server-admin
server-admintoolstools======================+------------------+------------------+| master           | develop          |+==================+==================+| |build status|   | |build status|   |+------------------+------------------+.. figure:: resources/logo/logo-readme.png:alt: LogoLogoA collection of installable scripts (mostly) for server management.Installation------------Via Pip (Preferred):~~~~~~~~~~~~~~~~~~~~**As User (Preferred)**::$ pip install server_admintools --user**Systemwide**::# pip install server_admintoolsor$ sudo pip install server_admintoolsVia setup.py~~~~~~~~~~~~**As User (Preferred)**::$ python setup.py install --user**Systemwide**::# python setup.py installor$ sudo python setup.py installFurther Information--------------------  `Changelog <https://gitlab.namibsun.net/namboy94/server-admintools/raw/master/CHANGELOG>`__-  `License(GPLv3) <https://gitlab.namibsun.net/namboy94/server-admintools/raw/master/LICENSE>`__-  `Gitlab <https://gitlab.namibsun.net/namboy94/server-admintools>`__-  `Github <https://github.com/namboy94/server-admintools>`__-  `Python Package IndexSite <https://pypi.python.org/pypi/server_admintools>`__-  `Git Statistics(gitstats) <https://gitstats.namibsun.net/gitstats/server-admintools/index.html>`__-  `Git Statistics(git\_stats) <https://gitstats.namibsun.net/git_stats/server-admintools/index.html>`__-  `TestCoverage <https://coverage.namibsun.net/server-admintools/index.html>`__.. |build status| image:: https://gitlab.namibsun.net/namboy94/server-admintools/badges/master/build.svg:target: https://gitlab.namibsun.net/namboy94/server-admintools/commits/master.. |build status| image:: https://gitlab.namibsun.net/namboy94/server-admintools/badges/develop/build.svg:target: https://gitlab.namibsun.net/namboy94/server-admintools/commits/develop
Package: server-admintools
server-admintoolstoolsmasterdevelopA collection of installable scripts (mostly) for server management.InstallationVia Pip (Preferred):As User (Preferred)$ pip install server_admintools --userSystemwide# pip install server_admintools
or
$ sudo pip install server_admintoolsVia setup.pyAs User (Preferred)$ python setup.py install --userSystemwide# python setup.py install
or
$ sudo python setup.py installFurther InformationChangelogLicense (GPLv3)GitlabGithubProgstatsPyPi
Package: serverboards
# Python3 Serverboards bindingshttps://serverboards.ioThis python module allows to create plugins in the Python programming language
for Serverboards.Serverboards is a Server Management, Automation and Monitoring platform.It uses JSON RPC over stdin/stdout to allow plugins to extend the core
functionality; even the core functionality is programmed using this very
same bindings.There are two versions:sync.py – Classic Python. Blocks on every call although it does some
tricks to allow some concurrent async code. It is very limited and its
very difficult to do some kind of highly concurrent stuff. Only recommended
as a basic start and for very simple plugins.async.py – Curio based bindings that allow to reliably have several
concurrent requests at the same time, each may be blocked doing some async
work, as remote requests and so on.Currently the sync version is more tested, but all future development will
be done on the async version.Both provide the following basic building blocks:##@rpc_methodDecorator over every function that is exported to the RPC.##rpc.call(method, *args, **kwargs)/rpc.event(method, *args, **kwargs)Perform remote calls or events. Events do not wait for a response.##rpc.subscribe(event, callback)Subscribe to a remote event. The callback will be called when that event
is emitted from the core.
Package: serverchain
📦 serverchain (for ftqq)简单封装ftqq提供的api，仓库地址serverchain非官方版本，具体可以查看仓库源码参考具体用法官方API目的在于方便脚本调用，减少重复代码Check out the example!InstallationpipinstallserverchaindemofromserverchainimportServerChianfromserverchain.channelimportChannels# secret = 'SCU114xxxxx'secret='SCTxxxx'serverchain=ServerChian(secret)response=serverchain.push(title="test",desp='just for test')print(response.text)print(response.text.encode().decode('unicode_escape'))response=serverchain.push(title="test1",desp='just for test1',channel='{}|{}'.format(Channels.WECHAT_SERVICE_ACCOUNT,Channels.PUSHDEER))print(response.text)print(response.text.encode().decode('unicode_escape'))To DoTests via$ setup.py test(if it's concise).Pull requests are encouraged!More ResourcesWhat is setup.py?on Stack OverflowOfficial Python Packaging User GuideThe Hitchhiker's Guide to PackagingCookiecutter template for a Python packageLicenseagpl-3.0This is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.
Package: serverchan
📦 serverchan (for ftqq)简单封装ftqq提供的api，仓库地址serverchan非官方版本，具体可以查看仓库源码参考具体用法官方API目的在于方便脚本调用，减少重复代码Check out the example!InstallationpipinstallserverchandemofromserverchanimportServerChanfromserverchan.channelimportChannels# secret = 'SCU114xxxxx'secret='SCTxxxx'serverchan=ServerChan(secret)response=serverchan.push(title="test",desp='just for test')print(response.text)print(response.text.encode().decode('unicode_escape'))response=serverchan.push(title="test1",desp='just for test1',channel='{}|{}'.format(Channels.WECHAT_SERVICE_ACCOUNT,Channels.PUSHDEER))print(response.text)print(response.text.encode().decode('unicode_escape'))To DoTests via$ setup.py test(if it's concise).Pull requests are encouraged!More ResourcesWhat is setup.py?on Stack OverflowOfficial Python Packaging User GuideThe Hitchhiker's Guide to PackagingCookiecutter template for a Python packageLicenseagpl-3.0This is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.