Saravanan666/pypi-org huggingface dataset:
Package: sdkms-git-sign-tool
SDKMS Git Signing ToolThis is a utility for signing/verifying git commits with keys stored in Fortanix Self-Defending Key Management System. It includes commands for generating a PGP compatible key in SDKMS.SetupIn SDKMS create an App and an EC key (only NISTP256, NISTP384 and NISTP512 are supported). Take notes of:App API KeyKey UUIDIn you git repository, the following configuration is needed:git config --local gpg.program </path/to/sdkms-git-sign-tool>
git config --local user.signingkey <Key UUID>
git config --local sdkms.endpoint <SDKMS endpoint>
git config --local sdkms.apikey <SDKMS API Key>
Package: sdkms-plugin-registry-builder
SDKMS Plugin Registry BuilderThis tool builds a SDKMS plugin registry manifest file out of a git repository.
It iterates through each commit and signs it. At each step of the iteration
the tool keeps building the manifest which is a JSON structure with the
following schema:[{"name":"<Plugin Name>","versions":{"<version>":{"path":<path/to/plugin/file>,"description":<plugindescription>,"short_description":<shortdescriptionusedbySDKMSfordisplayintiles>,"release_notes":[<str>,...],"commit":<hexsha>},...}},...]Fortanix Plugin RegistrySDKMS Plugin Registries are GIT repositories that contains SDKMS plugins
(custom Lua programs) that can be executed inside SDKMS to achieve certain
business specific logic, or a functionality that is not part of the
core capabilities offered by SDKMS.
The repository should follow the following conventions:Each plugin should have a unique name.There should be just one plugin in each subdirectory.In each subdirectory the following files are required (case-sensitive):plugin.lua: Contains the plugin code.README.md: Contains a description of the plugin.metadata.json: Contains metadata of the plugin. The schema of the JSON should be:{"name":<Pluginname>,"version":<Pluginversion>,"short_description":<Shortdescriptionofwhattheplugindoes.ThistextwillbedisplayedintheplugintileintheUI>,"release_notes":[<Arrayofreleasenotes>]}NOTE: older plugins have a singleplugin.luafile with metadata stored in the first few lines of the file as comments.
If a plugin follows that convention correctly then theREADME.mdandmetadata.jsonfiles are ignored and not required.
In such cases the plugin metadata is extracted from the lua file. Here is an example of this convention:-- Name: Test Plugin-- Version: 1.0-- Description: Hello, world!---- This is a test.-- End of description.functionrun(input)return"Hello, world!"endInstructionsBefore running this tool it is necessary that the git repository to be built is
setup with the configuration so that its commits can be signed. Once the
repository is setup run:sdkms-plugin-registry-builder --repo-dir <Path/to/git/repository>
Package: sdk-openapi
Available ModelsfromopenapiimportClientdefmain()->dict:client=Client()response=client.getModels()returnresponseif__name__=="__main__":print(main())output{"text":[{"id":0,"name":"models/text-bison-001","baseModel":"PaLM"}],"chat":[{"id":1,"name":"models/chat-bison-001","baseModel":"PaLM"},{"id":5,"name":"gpt-3.5-turbo","baseModel":"GPT"}],"image":[{"id":2,"name":"MeinaMix","baseModel":"SD"},{"id":3,"name":"AnyLora","baseModel":"SD"},{"id":4,"name":"AnyThingV4","baseModel":"SD"},{"id":6,"name":"Bing","baseModel":"Dall-E"}]}palmfromopenapiimportClientdefmain(prompt:str)->dict:client=Client()response=client.palm(prompt)returnresponseif__name__=="__main__":print(main("hello world"))upscaling an image.fromopenapiimportClientdefmain(image:bytes)->bytes:client=Client()imageBytes=client.upscale(image)withopen('upscaled.png','wb')asf:f.write(imageBytes)if__name__=="__main__":image=open('examples/images/image.png','rb').read()main(image)
Package: sdksio-postnl-ecommerce-apis-sdk
Getting Started with PostNL Ecommerce APIsIntroductionCollection of PostNL API's for ecommerce processesInstall the PackageThe package is compatible with Python versions3 >=3.7, <= 3.11.
Install the package from PyPi using the following pip command:pipinstallsdksio-postnl-ecommerce-apis-sdk==1.0.0You can also view the package at:https://pypi.python.org/pypi/sdksio-postnl-ecommerce-apis-sdk/1.0.0Test the SDKYou can test the generated SDK and the server with test cases.unittestis used as the testing framework andpytestis used as the test runner. You can run the tests as follows:Navigate to the root directory of the SDK and run the following commandspip install -r test-requirements.txt
pytestInitialize the API ClientNote:Documentation for the client can be foundhere.The following parameters are configurable for the API Client:ParameterTypeDescriptionenvironmentEnvironmentThe API environment.Default:Environment.PRODUCTIONhttp_client_instanceHttpClientThe Http Client passed from the sdk user for making requestsoverride_http_client_configurationboolThe value which determines to override properties of the passed Http Client from the sdk userhttp_call_backHttpCallBackThe callback value that is invoked before and after an HTTP call is made to an endpointtimeoutfloatThe value to use for connection timeout.Default: 60max_retriesintThe number of times to retry an endpoint call if it fails.Default: 0backoff_factorfloatA backoff factor to apply between attempts after the second try.Default: 2retry_statusesArray of intThe http statuses on which retry is to be done.Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]retry_methodsArray of stringThe http methods on which retry is to be done.Default: ['GET', 'PUT']apikeystrThe API client can be initialized as follows:frompostnlecommerceapis.postnlecommerceapis_clientimportPostnlecommerceapisClientfrompostnlecommerceapis.configurationimportEnvironmentclient=PostnlecommerceapisClient(apikey='apikey')EnvironmentsThe SDK can be configured to use a different environment for making API calls. Available environments are:FieldsNameDescriptionproductionDefaultenvironment2-AuthorizationThis API usesCustom Header Signature.List of APIsPostalcodecheckTrack TraceCheckoutDeliverydateLocationsTimeframesLabellingBarcodeConfirmingClasses DocumentationUtility ClassesHttpResponseHttpRequest
Package: sdksio-swagger-petstore-3-sdk
Getting Started with Swagger Petstore - OpenAPI 3.0IntroductionThis is a sample Pet Store Server based on the OpenAPI 3.0 specification.  You can find out more about
Swagger athttps://swagger.io. In the third iteration of the pet store, we've switched to the design first approach!
You can now help us improve the API whether it's by making changes to the definition itself or to the code.
That way, with time, we can improve the API in general, and expose some of the new features in OAS3.If you're looking for the Swagger 2.0/OAS 2.0 version of Petstore, then clickhere. Alternatively, you can load via theEdit > Load Petstore OAS 2.0menu option!Some useful links:The Pet Store repositoryThe source API definition for the Pet StoreFind out more about Swagger:http://swagger.ioInstall the PackageThe package is compatible with Python versions3 >=3.7, <= 3.11.
Install the package from PyPi using the following pip command:pipinstallsdksio-swagger-petstore-3-sdk==1.0.0You can also view the package at:https://pypi.python.org/pypi/sdksio-swagger-petstore-3-sdk/1.0.0Test the SDKYou can test the generated SDK and the server with test cases.unittestis used as the testing framework andpytestis used as the test runner. You can run the tests as follows:Navigate to the root directory of the SDK and run the following commandspip install -r test-requirements.txt
pytestInitialize the API ClientNote:Documentation for the client can be foundhere.The following parameters are configurable for the API Client:ParameterTypeDescriptionhttp_client_instanceHttpClientThe Http Client passed from the sdk user for making requestsoverride_http_client_configurationboolThe value which determines to override properties of the passed Http Client from the sdk userhttp_call_backHttpCallBackThe callback value that is invoked before and after an HTTP call is made to an endpointtimeoutfloatThe value to use for connection timeout.Default: 60max_retriesintThe number of times to retry an endpoint call if it fails.Default: 0backoff_factorfloatA backoff factor to apply between attempts after the second try.Default: 2retry_statusesArray of intThe http statuses on which retry is to be done.Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]retry_methodsArray of stringThe http methods on which retry is to be done.Default: ['GET', 'PUT']api_keystringThe API client can be initialized as follows:fromswaggerpetstoreopenapi30.swaggerpetstoreopenapi_30_clientimportSwaggerpetstoreopenapi30Clientfromswaggerpetstoreopenapi30.configurationimportEnvironmentclient=Swaggerpetstoreopenapi30Client(api_key='api_key',environment=Environment.PRODUCTION)AuthorizationThis API usesCustom Header Signature.List of APIsPetStoreUserClasses DocumentationUtility ClassesHttpResponseHttpRequest
Package: sdksio-whatsapp-cloud-api-sdk
Getting Started with WhatsApp Cloud APIIntroductionWelcome to the WhatsApp API from Meta.Individual developers and existing Business Service Providers (BSPs) can now send and receive messages via the WhatsApp API using a cloud-hosted version of the WhatsApp Business API. Compared to the previous solutions, the cloud-based WhatsApp API is simpler to use and is a more cost-effective way for businesses to use WhatsApp. Please keep in mind the following configurations:NameDescriptionVersionLatestGraph API version. For example: v13.0User-Access-TokenYour user access token after signing up atdevelopers.facebook.com.WABA-IDYour WhatsApp Business Account (WABA) ID.Phone-Number-IDID for the phone number connected to the WhatsApp Business API. You can get this with aGet Phone Number ID request.Business-IDYour Business' ID. Once you have your Phone-Number-ID, make aGet Business Profile requestto get your Business' ID.Recipient-Phone-NumberPhone number that you want to send a WhatsApp message to.Media-IDID for the media tosend a media messageormedia template messageto your customers.Media-URLURL for the media todownload media content.Install the PackageThe package is compatible with Python versions3 >=3.7, <= 3.11.
Install the package from PyPi using the following pip command:pipinstallsdksio-whatsapp-cloud-api-sdk==1.0.0You can also view the package at:https://pypi.python.org/pypi/sdksio-whatsapp-cloud-api-sdk/1.0.0Initialize the API ClientNote:Documentation for the client can be foundhere.The following parameters are configurable for the API Client:ParameterTypeDescriptionversionstringDefault:'v13.0'environmentEnvironmentThe API environment.Default:Environment.PRODUCTIONhttp_client_instanceHttpClientThe Http Client passed from the sdk user for making requestsoverride_http_client_configurationboolThe value which determines to override properties of the passed Http Client from the sdk userhttp_call_backHttpCallBackThe callback value that is invoked before and after an HTTP call is made to an endpointtimeoutfloatThe value to use for connection timeout.Default: 60max_retriesintThe number of times to retry an endpoint call if it fails.Default: 0backoff_factorfloatA backoff factor to apply between attempts after the second try.Default: 2retry_statusesArray of intThe http statuses on which retry is to be done.Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]retry_methodsArray of stringThe http methods on which retry is to be done.Default: ['GET', 'PUT']access_tokenstringThe OAuth 2.0 Access Token to use for API requests.The API client can be initialized as follows:fromwhatsappcloudapi.whatsappcloudapi_clientimportWhatsappcloudapiClientfromwhatsappcloudapi.configurationimportEnvironmentclient=WhatsappcloudapiClient(access_token='AccessToken')AuthorizationThis API usesOAuth 2 Bearer token.List of APIsBusiness ProfilesPhone NumbersTwo-Step VerificationMessagesRegistrationMediaClasses DocumentationUtility ClassesHttpResponseHttpRequest
Package: sdk-test-sdk
添加关于SDK的说明和用法等信息，文件主要是用来对此次发行的包的详细说明，包括用法和注意事项等安装pip install sdk_test_sdk-1.0.0-py3-none-any.whl使用import sdk_test_sdksdk_test_sdk.test_numpy()
sdk_test_sdk.test_hello()
Package: sdk-timeular-tools
sdk-timeular-toolsa completely unofficial timeular python SDK and some simple utilities and notebooksThe Timeular v3 API docs can be found (here)[https://developers.timeular.com/].UsageSee the (notebooks)[./notebooks] directory for usage examples.from timeular import timeular

with timeular.TimeularSession(API_KEY, API_SECRET) as ts:
    activities = ts.activities()
    # and so on...Methods available:activitiesdef list_activities()
  def update_activity(id, **new_values)
  def archive_activity(id)devicesdef list_devices()
  def set_active_device(device_id)
  def release_active_device()
  def edit_device_name(device_id, name)
  def forget_device(device_id)
  def disable_device(device_id)
  def enable_device(device_id)trackingdef get_current_tracking()
  def start_tracking(id) # no idea what the ID is here.
  def edit_current_tracking(note, activity_id, started_at)
  def stop_tracking()entriesdef find_entries_in_range(start_dt, stop_dt)
  def create_entry(activity_id, start_dt, stop_dt, note_text)
  def get_entry(entry_id)
  def edit_entry(entry_id, activity_id=None, start_dt=None, stop_dt=None, note_text=None)
  def delete_entry(entry_id)reportsdef generate_report_csv(start_dt, end_dt, timezone=tzlocal.get_localzone().zone)
  def report_report_json(start_dt, end_dt)tags and mentionsdef get_tags_and_mentions()
  def create_tag(key, label, scope, space_id)
  def update_tag(tag_id, key=None, label=None, scope=None, space_id=None)
  def delete_tag(tag_id)
  def create_mention(key, label, scope, space_id)
  def update_mention(mention_id, key=None, label=None, scope=None, space_id=None)
  def delete_mention(mention_id)user and group infodef me()
  def list_spaces()webhooksdef list_webhook_events()
  def subscribe(event, target_url)
  def unsubscribe(subscription_id)
  def list_subscriptions()
  def unsubscribe_all()
Package: sdl2hl
sdl2hl is a Python package providing a friendly, Pythonic wrapper around the
SDL2 library. sdl2hl calls SDL2 using Kevin Howell’s sdl2-cffi package (which
can be found here:https://github.com/kahowell/sdl2-cffi). sdl2hl maintains
sdl2-cffi’s advantages of using cffi and being zlib licensed, while providing
an API that hides the gruesome details of the FFI layer from the user.GoalsThe goals of sdl2hl are:Provide a straightforward, Pythonic API on top of the functionality provided
by SDL2.Provide good documentation, independent of the SDL2 documentation.Cover as much of the SDL2 API as possible, excluding elements of the API that
do not provide value to a program written in Python (e.g. thread management
and shared object loading).An explicit anti-goal of sdl2hl is providing any significant functionality beyond
that which is provided by SDL2. sdl2hl may be a reasonable foundation of a
larger game library, but it will not become one itself.Versioningsdl2hl versioning follows the semver 2.0 standard. Once sdl2hl hits 1.0, every
effort will be made to prevent backwards incompatible changes. If a backwards
incompatible change absolutely cannot be avoided, sdl2hl’s major version will be
incremented. However, since sdl2hl has not hit 1.0, for now there may be
breaking changes at any time. Sorry.Licensesdl2hl is licensed under the same zlib license as SDL2 and sdl2-cffi. More
details can be found in the LICENSE.txt file that (should) be found in this
distribution.ContributionsContributions are welcome! If you encounter a bug or have a request or
suggestion please open an issue on github athttps://github.com/jdoda/sdl2hl/issues. If you want to submit a patch, please
open a github pull request athttps://github.com/jdoda/sdl2hl/pulls.Exampleimportsysimportsdl2hlBACKGROUND_COLOR=(0,0,0,255)AVATAR_COLOR=(255,0,0,255)sdl2hl.init()window=sdl2hl.Window()renderer=sdl2hl.Renderer(window)avatar=sdl2hl.Rect(w=64,h=64)whileTrue:foreventinsdl2hl.events.poll():ifevent.type==sdl2hl.QUIT:sdl2hl.quit()sys.exit()elifevent.type==sdl2hl.EventType.keydownandevent.keycode==sdl2hl.KeyCode.left:avatar.x-=1elifevent.type==sdl2hl.EventType.keydownandevent.keycode==sdl2hl.KeyCode.right:avatar.x+=1elifevent.type==sdl2hl.EventType.keydownandevent.keycode==sdl2hl.KeyCode.up:avatar.y-=1elifevent.type==sdl2hl.EventType.keydownandevent.keycode==sdl2hl.KeyCode.down:avatar.y+=1renderer.draw_color=BACKGROUND_COLORrenderer.clear()renderer.draw_color=AVATAR_COLORrenderer.fill_rect(avatar)renderer.present()
Package: sd-meh
sd-mehThe merging execution helper (meh) is a python module for stable diffusion models merging.
This repository will never contain code for a webui extension.
This is because the aim is to have a GUI agnostic merging engine that can be reused in multiple extensions.You can install the module aspip install sd-mehand then use it in your extension asfromsd_meh.mergeimportmerge_modelsmerged_model=merge_models(models,weights,bases,merge_mode,precision)You can have a look at the providedmerge_models.pycli for an example on how to use the function. Runpython3 merge_models.py --helpfor a list of the available arguments.Joinour discord server for discussion and features/bugfix requestsChangelog0.9.1 ... 0.9.3bugfixessupport for pix2pix and inpainting models0.8.0add-bwpab, --block_weights_preset_alpha_b"and-pal, --presets_alpha_lambdafor presets interpolation (same forbeta)add-ll, --logging_level, default toINFO0.7.0add-bwpa, --block_weights_preset_alphaand-bwpb, --block_weights_preset_betato use pre-defined merging weights. Have a look at thewikifor all the presetsadd-wd, --work_deviceadd-pr, --pruneadd-j, --threadsDEVPRs are welcome for both new features and bug fixes.Please make sure you format the code with black (you canmake format) before submitting a PR.You want to add afeatureopen afeat:PR merging todevbranch, notmaindo notupdate version numbersask for a reviewYou want to make a bugfixopen afix:PR mergin tomainupdate version number inpyproject.tomlandsd_meh/__init__.pyask for a review
Package: sdmenu
sdmenusdmenuis a simple way to query UC San Diego's HDH dining halls.Installation$pipinstallsdmenu
Successfullyinstalledsdmenu-1.0.0ExampleThis example is based off the menu for64 Degrees, which you can findhere.>>>fromsdmenuimportmenu>>>my_menu=menu()<menu{'64 Degrees','Cafe Ventanas','Canyon Vista',...}>>>>items=my_menu.get('64 Degrees')[<menu_item'Avocado Toast'>,<menu_item'Bacon Bobcat Sandwich'>,...]>>>items[0].price3.5>>>my_menu.has('64 Degrees','Hibachi Chicken')True
Package: sdmlib
Sparse Distributed Memory for PythonWhat is this?This is a fast implementation of Pentti Kanerva'sSparse Distributed Memory (SDM).sdmlibis written in Python usingnumpy.InstallationThe package is available through PyPi:pipinstallsdmlibUsingsdmlibsdmlibis designed to operate onnumpyarrays.TheMemoryclassThis class provides the main functionality of SDM.ParameterDescriptionNLength of addresses in bitsMNumber of hard addressesULength of data in bitsdHamming radius of addresses considered "near" for reading and writing. IfNone, then it is computed using TT(Default:None) Number of data points to be written. Ignored ifdis provided. IfTisNonethendmust be provided.dandTcannot both beNoneseedSeed the random number generator (for reproducability)Example UsageimportnumpyasnpfromsdmlibimportMemoryN=256M=1000U=256T=100addresses=np.random.randint(low=0,high=2,size=(T,N),dtype=np.uint8)data=np.random.randint(low=0,high=2,size=(T,U),dtype=np.uint8)mem=Memory(N=N,M=M,U=U,d=None,T=T)fortinrange(T):mem.write(addresses[t],data[t])error=0fortinrange(T):error+=np.mean(data[t]!=mem.read(addresses[t]))/Tprint(f'Reconstruction error:{100*error:.2f}%')Reconstruction error: 0.51%ThewritemethodWrite a binary string to memory.ParameterDescriptionxAddress. Binary numpy array of shape(N,)wData. Binary numpy array of shape(U,)ThereadmethodRead a binary string from memory.ParameterDescriptionxAddress. Binary numpy array of shape(N,)ReturnsDescriptionzData. Binary numpy array of shape(U,)
Package: sdmpm
SystemD multi-process managerSystemD supports multiple processes of the exact same type using templating. However, it's very tedious to scale the number of processes up or down. This script aims to simplify that.InstallationThe script is published on PyPI under the namesdmpm.Use a tool likepipxorpsmto install this script into a dedicated virtualenv:psm install sdmpmInstall using pip:pip install sdmpm(preferably with--useror in a virtualenv)You can also just download the script directly from Github, it has no external dependencies and is tested on Python 3.5 and higher.wgethttps://github.com/anlutro/systemd-multi-process-manager/raw/master/src/sdmpm.py-o/usr/local/bin/sdmpmUsageAssuming you have a templated service already configured (i.e. there is an/etc/systemd/system/example@.service), you can use this to determine how many of this process should be running:$ sdmpm scale example 4You can also use the standardsystemctlcommands such asstatus,start,stop,restart,enableanddisable.You can pass--userwhich will work just likesystemctl --user.LicenseThe contents of this repository are released under theGPL v3 license. See theLICENSEfile included for more information.
Package: sdmx1
Source code @ Github—Authorssdmx(‘sdmx1’ on PyPI) is a Python implementation of theSDMX2.1 (ISO 17369:2013) and 3.0 standards forstatistical data and metadata exchange.
The SDMX standards are developed and used by national statistical agencies, central banks, and international organisations.sdmxcan be used to:Explore and retrieve data available from SDMX-RESTweb servicesoperated by providers including the World Bank, International Monetary Fund, Eurostat, OECD, and United Nations;Read and write data and metadata in file formats including SDMX-ML (XML), SDMX-JSON, and SDMX-CSV;Convert data and metadata intopandasobjects, for use with the analysis, plotting, and other tools in the Python data science ecosystem;Apply theSDMX information modelto structure and publish your own data;…and much more.DocumentationSeehttps://sdmx1.readthedocs.io/en/latest/for the latest docs per themainbranch, orhttps://sdmx1.readthedocs.io/en/stable/for the most recent release.LicenseCopyright 2014–2024,sdmx1 developersLicensed under the Apache License, Version 2.0 (the “License”); you may not use these files except in compliance with the License.
You may obtain a copy of the License:from the file LICENSE included with the source code, orathttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.Historysdmxis a fork ofpandaSDMX; in turn a fork ofpysdmx.
Many people from all over the world have generously contributed code and feedback.