Saravanan666/pypi-org huggingface dataset:
Package: ibme.persondirectory
IntroductionA simple dexterity-based directory with faceted search. Developed initially
as a directory of academic staff. This is designed to be used along with a
Diazo theme to present the results.InstallationInstall as any other Plone add-on, i.e. add to yourbuildout.cfgand then
enable your add-on in your site. Seeofficial install documentation for more advice.ConfigurationBefore you start creating a directory, consider what fields you want your
directory entries to have. For example, “department”, “favourite animal”, etc.
Initially, directory entries have 2 fields,titleandimage. These can be
edited or new fields added. To do this:Go to the Plone control panelSelect “Dexterity content types”Select “Directory Entry”Click the “Fields” tab.Add as many fields as you require, and/or alter the title/description of the
existing fields.Once set up, you can add a Person directory anywhere to your site using “Add new”.FacetsIf you would like the “department” field you configured earlier to be sortable
with facets (i.e you can filter the entries with links down the right hand
side), then you need to select in in the directories’ “Fields to filter by”
list.Suggestion FieldsIf a field is selected as a facet, then you can also use theSuggestionFieldWidgeton a TextLine field to show previously used values.
To do this you need to alter the entry schema XML (click “Edit XML Field Model”)
and change it to:<field name="research_group" type="zope.schema.TextLine">
  <title>Research Group</title>
  <form:widget type="ibme.persondirectory.widget.SuggestionFieldWidget"/>
</field>Entry imagesBy default, there is animagefield that can be used to, e.g. add portraits.
The image will be scaled byplone.app.imaging. You can alter the dimensions
in the “Image Handling” section of the Plone control panel. Edit the “pdir-image”
size.SortingBy default, entries are sorted alphabetically. However you can change this by
editing the directory object.CreditsAuthors:Jamie Lentin [lentinj],http://shuttlethread.comDeveloped as part of theOxford IBME website.Further workThe resulting display is rather uninspiring admittedly, this is most useful
in combination with your own Diazo theme. However, the initial view could be
tarted up a bit.Changelog1.1 (2013-08-30)Instead of automatically using SuggestionFieldWidget fields, manually
select which should be used as facets
[lentinj]Reindex all content below whenever a directory object is changed
[lentinj]1.0 (2013-08-01)Ensure filters are sorted by title
[lentinj]0.1 (2013-07-03)Initial release
[lentinj]
Package: ibm-flask-jwt
IBM Flask JWTThis project provides a simple Python library for securing Flask APIs with JWT authentication.JSON Web TokensSecure endpoints are accessed by passing aJSON Web Token(JWT).API DecoratorsThe follow Python decorators are available for use on Flask API endpoints.private- Secures an API endpoint. Requests to the endpoint will return a401 Unauthorizedresponse unless a valid JWT is attached to the HTTP request. The JWT must be sent as a bearer token in the standard authorization header:Authorization: Bearer <token>.public- This is a marker decorator to identify an endpoint as intentionally public.ExampleThe following example shows how to secure a private endpoint for a simple API built with theFlask RESTfulframework. In this example, requests to the resource will return a401 Unauthorizedresponse unless a valid JWT token is attached to the HTTP request.from flask_restful import Resource
from ibm_flask_jwt.decorators import private


class PrivateApi(Resource):

    @private
    def get(self):
        return 'Success'ConfigurationThe following environment variables are loaded by the library:JWT_PUBLIC_KEY- (Required) RSA256 public key for JWT signature verification.DevelopmentDependenciesUsePipenvfor managing dependencies. Install all dependencies withpipenv install --dev.TestingRun the unit tests with code coverage withpipenv run pytest --cov lib test.BuildingRun thebuild.pyfile to generate thesetup.pyfile. This allows us to read the required dependencies fromPipfile.lockso they are available in theinstall_requiresconfiguration field ofsetup.py.
Package: ibm-generative-ai
IBM Generative AI Python SDK (Tech Preview)This is not thewatsonx.aiPython SDK. This is the Python SDK for the Tech Preview program for IBM Foundation Models Studio. This SDK brings IBM Generative AI (GenAI) into Python programs and provides useful operations and types.You can start a trial version or request a demo viahttps://www.ibm.com/products/watsonx-ai.Looking for thewatsonx.aiPython SDK? Check outwatson-machine-learning-sdk.Looking for a NodeJS SDK version? Check outIBM Generative AI NodeJS SDKLooking for a CLI? Check outIBM Generative AI CLI.[!IMPORTANT]
The SDK was recently rewritten and released under V2 (2024). See theV2 migration guide.Installationpip install --upgrade ibm-generative-ai📚 Documentation📚 Examples📚 V2 Migration GuideImportant Information for ContributorsDo you want to contribute to the project? IBM Generative AI is an open-source project that welcomes the community to contribute with documentation, tests, bug corrections, and new functionality in the form ofextensions. Please read ourcode of conductto learn the expected behavior from participants that contribute to the project, and ourcontribution guideto learn the gitflow and steps to submit pull requests.
Package: ibmiotf
Build StatusGitHub issuesGitHubPyPIPython module for interacting with theIBM Watson IoT
Platform.Python 3.7Python
2.7Note: Support for MQTT with TLS requires at least Python v2.7.9 or v3.4,
and openssl v1.0.1Dependenciespaho-mqttiso8601pytzrequestsrequests_toolbeltInstallationInstall the latest version of the library with pip# pip install ibmiotfUninstallUninstalling the module is simple.# pip uninstall ibmiotfDocumentationDocumentation is generated usingpydoc-markdown:http://ibm-watson-iot.github.io/iot-python/Please note the documentation is very much a work in progress at the
moment, and is being addressed underIssue
#112.
Additional documentation for the library is available in Bluemix, but
it’s a little out of date in places:Application
DevelopersDevice
DevelopersSupported FeaturesDevice Connectivity: Connect your device(s) to Watson IoT
Platform with ease using this libraryGateway Connectivity: Connect your gateway(s) to Watson IoT
Platform with ease using this libraryApplication connectivity: Connect your application(s) to Watson
IoT Platform with ease using this libraryWatson IoT API: Support for the interacting with the Watson IoT
Platform through REST APIsSSL/TLS: By default, this library connects your devices, gateways
and applications securely to Watson IoT Platform registered service.
Ports8883(default) and443support secure connections using
TLS with the MQTT and HTTP protocol. Support for MQTT with TLS
requires at least Python v2.7.9 or v3.4, and openssl v1.0.1Device Management for Device: Connects your device(s) as managed
device(s) to Watson IoT Platform.Device Management for Gateway: Connects your gateway(s) as
managed device(s) to Watson IoT Platform.Device Management Extensions: Provides support for custom device
management actions.Scalable Applications: Supports load balancing of MQTT
subscriptions over multiple application instances.Auto Reconnect: All clients support automatic reconnect to the
Platform in the event of a network interruption.Event/Command publish: Offers a pure HTTP client supporting
messaging over HTTP in addition to the full features client that
utilizes HTTP and MQTT technologies as appropriateData Format Support: JSON, XML, & user-defined.Websockets: Support device/gateway/application connectivity to
Watson IoT Platform using WebSocketUnsupported FeaturesClient side Certificate based authentication:Client side
Certificate based
authenticationn
Package: ibm-metrics-plugin
Welcome toibm_metrics_pluginibm_metrics_pluginis a python API for computing fairness metrics and explaining transactions using notebooks. For more information, look atdocumentationNote: IBM is not responsible for any existing vulnerabilities within the third-party dependencies that are required to install the ibm-metrics-plugin python package.LicenseThis library is delivered under theInternational License Agreement for Non-Warranted Programs.
Package: ibmpairs
IBM Environmental Intelligence Suite (EIS): Geospatial Analytics open source modulesThis repository provides an interface to the geo-spatial big data platformIBM EIS: Geospatial Analytics.E.g. thequerymodule in the subdirectoryibmpairsserves as a wrapper employing the IBM EIS:
Geospatial Analytics core RESTful API served through the host reachable viahttps://pairs.res.ibm.com.General NotesIf you like to contribute, please readCONTRIBUTING.mdfirst. A list of maintainers is recorded inMAINTAINERS.md.Installation and UsageIf you have installed the Python package managerPIP,
simply runpipinstall--useribmpairsThen you can import the IBM EIS: Geospatial Analytics API wrapper modules e.g.:importibmpairs.clientasclientimportibmpairs.queryasqueryGetting startedSimply get your feet wet with thetutorial.
Having cloned into the repo, the full API documentation you can generate bySphinxand the correspondingReadTheDocstheme by running e.g.pipinstallsphinxsphinx_rtd_themethen make the html pages,makedocsor without Makecddocs&&makehtmlthen opendocs/_build/html/index.htmlwith your favorite browser.Running in a Docker containerA self-contained environment can be built withDockerusinggitclonehttps://github.com/ibm/ibmpairscdibmpairs
makedocker-buildthen run using:makedocker-runthe environment can then be accessed from the following url:http://localhost:18380Alternatively you can execute these steps without Make using:gitclonehttps://github.com/ibm/ibmpairscdibmpairs
dockerbuild-tibmpairs.to build anddockerrun\-dit\-p18380:18380\--nameibmpairs\ibmpairs:latestor:docker-composeupibmpairsto run.
Package: ibm-platform-services
IBM Cloud Platform Services Python SDK Version 0.51.1Python client library to interact with variousIBM Cloud Platform Service APIs.Table of ContentsOverviewPrerequisitesInstallationUsing the SDKQuestionsIssuesOpen source @ IBMContributingLicenseOverviewThe IBM Cloud Platform Services Python SDK allows developers to programmatically interact with the following
IBM Cloud services:Service NameModule NameService Class NameCase Managementcase_management_v1CaseManagementV1Catalog Managementcatalog_management_v1CatalogManagementV1Context Based Restrictionscontext_based_restrictions_v1ContextBasedRestrictionsV1Enterprise Billing Unitsenterprise_billing_units_v1EnterpriseBillingUnitsV1Enterprise Managemententerprise_management_v1EnterpriseManagementV1Enterprise Usage Reportsenterprise_usage_reports_v1EnterpriseUsageReportsV1Global Catalogglobal_catalog_v1GlobalCatalogV1Global Searchglobal_search_v2GlobalSearchV2Global Taggingglobal_tagging_v1GlobalTaggingV1IAM Access Groupsiam_access_groups_v2IamAccessGroupsV2IAM Identity Serviceiam_identity_v1IamIdentityV1IAM Policy Managementiam_policy_management_v1IamPolicyManagementV1IBM Cloud Shellibm_cloud_shell_v1IbmCloudShellV1Open Service Brokeropen_service_broker_v1OpenServiceBrokerV1Partner Billing Unitspartner_billing_units_v1PartnerBillingUnitsV1Partner Usage Reportspartner_usage_reports_v1PartnerUsageReportsV1Resource Controllerresource_controller_v2ResourceControllerV2Resource Managerresource_manager_v2ResourceManagerV2Usage Meteringusage_metering_v4UsageMeteringV4Usage Reportsusage_reports_v4UsageReportsV4User Managementuser_management_v1UserManagementV1The following services have been relocated to a different SDK project.
Please consult the documentation for each service to determine the new location:Service NameModule NameService Class NameConfiguration Governanceconfiguration_governance_v1ConfigurationGovernanceV1Posture Managementposture_management_v1PostureManagementV1PrerequisitesAnIBM Cloudaccount.An IAM API key to allow the SDK to access your account. Create onehere.Python 3.8 or above.InstallationTo install, usepip:python-mpipinstall--upgradeibm-platform-servicesThen in your code, you can import the appropriate service like this:from ibm_platform_services.<service-module-name> import *where<service-module-name>is the service's module name from the table aboveUsing the SDKFor general SDK usage information, please seethis linkQuestionsIf you are having difficulties using this SDK or have a question about the IBM Cloud services,
please ask a question atStack Overflow.IssuesIf you encounter an issue with the project, you are welcome to submit abug report.
Before that, please search for similar issues. It's possible that someone has already reported the problem.Open source @ IBMFind more open source projects on theIBM Github PageContributingSeeCONTRIBUTING.md.LicenseThis SDK is released under the Apache 2.0 license.
The license's full text can be found inLICENSE.
Package: ibm-project-sdk
Project Services Python SDK Version 0.0.3Python client library to interact with variousIBM Cloud Platform Services APIs.Disclaimer: this SDK is being released initially as apre-releaseversion.
Changes might occur which impact applications that use this SDK.Table of ContentsOverviewPrerequisitesInstallationUsing the SDKQuestionsIssuesOpen source @ IBMContributingLicenseOverviewProject Python SDK allows developers to programmatically interact with the following
IBM Cloud services:Service NameModule NameImported Class NameProjectproject_v1ProjectV1PrerequisitesAnIBM Cloudaccount.An IAM API key to allow the SDK to access your account. Create onehere.Python 3.7 or above.InstallationTo install, usepip:pipinstall--upgradeprojectThen in your code, you can import the appropriate service like this:from project.<service-module-name> import *where<service-module-name>is the service's module name from the table aboveUsing the SDKFor general SDK usage information, please seethis linkQuestionsIf you are having difficulties using this SDK or have a question about the IBM Cloud services,
please ask a question atStack Overflow.IssuesIf you encounter an issue with the project, you are welcome to submit abug report.
Before that, please search for similar issues. It's possible that someone has already reported the problem.Open source @ IBMFind more open source projects on theIBM Github PageContributingSeeCONTRIBUTING.md.LicenseThis SDK is released under the Apache 2.0 license.
The license's full text can be found inLICENSE.
Package: ibm-scc
IBM Cloud Security & Compliance Center Python SDK Version 4.0.1Python client library to interact with variousIBM Cloud Security & Compliance Center APIs.Disclaimer: this SDK is being released initially as apre-releaseversion.
Changes might occur which impact applications that use this SDK.Table of ContentsOverviewPrerequisitesInstallationUsing the SDKQuestionsIssuesOpen source @ IBMContributingLicenseOverviewThe IBM Cloud Security & Compliance Center Python SDK allows developers to programmatically interact with the following
IBM Cloud services:Service NameModule NameImported Class NameSecurity and Compliance Centeribm_scc.security_and_compliance_center_api_v3SecurityAndComplianceCenterApiV3PrerequisitesAnIBM Cloudaccount.An IAM API key to allow the SDK to access your account. Create onehere.Python 3.7 or above.InstallationTo install, usepiporeasy_install:pipinstall--upgrade"ibm-scc>=4.0.1"oreasy_install--upgrade"ibm-scc>=4.0.1"Using the SDKFor general SDK usage information, please seethis linkQuestionsIf you are having difficulties using this SDK or have a question about the IBM Cloud services,
please ask a questionStack Overflow.IssuesIf you encounter an issue with the project, you are welcome to submit abug report.
Before that, please search for similar issues. It's possible that someone has already reported the problem.Open source @ IBMFind more open source projects on theIBM Github PageContributingSeeCONTRIBUTING.md.LicenseThis SDK is released under the Apache 2.0 license.
The license's full text can be found inLICENSE.
Package: ibm-schematics
IBM Cloud Schematics Python SDKPython client library to interact with variousIBM Cloud Schematics APIs.Disclaimer: this SDK is being released initially as apre-releaseversion.
Changes might occur which impact applications that use this SDK.Table of ContentsIBM Cloud Schematics Python SDKTable of ContentsOverviewPrerequisitesInstallationAuthenticationAuthenticate with environment variablesAuthenticate with external configurationAuthenticate programmaticallyGetting StartedError handlingUsing the SDKQuestionsIssuesOpen source @ IBMContributingLicenseOverviewThe IBM Cloud Schematics Python SDK allows developers to programmatically interact with the following
IBM Cloud services:Service NameImported Class NameSchematicsschematicsv1PrerequisitesAnIBM Cloudaccount.An IAM API key to allow the SDK to access your account. Create onehere.Python 3.5.3 or above.InstallationTo install, usepiporeasy_install:pipinstall--upgrade"ibm-schematics>=1.1.0"oreasy_install--upgrade"ibm-schematics>=1.1.0"AuthenticationThe library requires Identity and Access Management (IAM) to authenticate requests. There are several ways to set the properties for authenticationAs environment variablesThe programmatic approachWith an external credentials fileAuthenticate with environment variablesFor Schematics IAM authentication set the following environmental variables by replacing  with your proper service credentials.SCHEMATICS_URL = https://schematics.cloud.ibm.com
SCHEMATICS_APIKEY = <apikey>Authenticate with external configurationTo use an external configuration file, see the related documentation in thePython SDK Core document about authentication.Authenticate programmaticallyTo learn more about how to use programmatic authentication, see the related documentation in thePython SDK Core document about authentication.Getting StartedA quick example to get you up and running with Schematics Python SDK servicefrom ibm_cloud_sdk_core.authenticators import IAMAuthenticator
from ibm_schematics.schematics_v1 import SchematicsV1

authenticator = IAMAuthenticator('<apiKey>')
schematics_service = SchematicsV1(authenticator = authenticator)
schematics_service.set_service_url('https://schematics.cloud.ibm.com')

get_schematics_version_response = schematics_service.get_schematics_version()
version_response = get_schematics_version_response.get_result()
print(version_response)Error handlingFor sample code on handling errors, please seeSchematics API docs.Using the SDKFor general SDK usage information, please seethis linkQuestionsIf you are having difficulties using this SDK or have a question about the IBM Cloud services,
please ask a questionStack Overflow.IssuesIf you encounter an issue with the project, you are welcome to submit abug report.
Before that, please search for similar issues. It's possible that someone has already reported the problem.Open source @ IBMFind more open source projects on theIBM Github PageContributingSeeCONTRIBUTING.md.LicenseThis SDK is released under the Apache 2.0 license.
The license's full text can be found inLICENSE.
Package: ibm-sso
ibm-ssoGetting StartedUsageSampleDeploy project(memo for developer)ibm-ssoWhen usingSSO Self-Service Provisionerfor single sign-on,ibm-ssocan make your work easier.Currently only supports fastapi applications.Getting Startedpipinstallibm-ssoUsageAddibm-ssotorequirements.txtfileibm-sso==0.0.1Installibm-ssofromrequirements.txtfilepipenvinstall-rrequirements.txtSet environment variablesRefer to the sample directory.Importibm-ssoin startup filefromstarlette.middleware.sessionsimportSessionMiddlewareapp=FastAPI()@app.exception_handler(OAuthError)asyncdefoauth_error_exception_handler(request,exc:OAuthError):returnJSONResponse(content={'detail':exc.error},status_code=status.HTTP_401_UNAUTHORIZED)app.add_middleware(SessionMiddleware,secret_key='Change Me to Random Secret!')app.include_router(authorize_router,prefix='/oauth2',tags=['Authorize API'])Now, your application has added SSO authentication functionality.SampleThere is a sample in thesampledirectory that can be run directly. You can start from the sample to learn how to use ibm-sso.Deploy project(memo for developer)Deploy project# https://test.pypi.org/expectinteractive_deploy_test.expect# https://pypi.org/# expect interactive_deploy.expectUsetest.pypi.orgpipenvinstall-ihttps://test.pypi.org/simple/ibm-ssoChangelogAll notable changes to this project will be documented in this file.The format is based onKeep a Changelog, and this
project adheres toSemantic Versioning.[0.0.1] - 2023-11-28First commit[0.0.2] - 2023-12-06Add avatar to UserInfoVO[0.0.3] - 2023-12-06AddedAdd avatar to UserInfoVO when the user authenticates.[0.0.4] - 2024-02-21FixedFixed mismatching_state and invalid_grant error.
Package: ibmsupervisor
This project allows decoding the password from the SPI NOR flash chip dump of an IBM ThinkPad 365XD. It might work on different models as well. Shorting the pins of the EEPROM at the right time during boot might also work for bypassing the supervisor password, but this is relatively hard to due to the position of the EEPROM. If you have a programmer and can desolder a chip, I recommend this method.Location of the EEPROMThe code has only been tested with the IBM ThinkPad 365XD, which has an ST93C46C Microwire (SPI) EEPROM. It has also only been tested on a US int keyboard and will likely break on something else.PrerequisitesYou need to dump the EEPROM before using this program. I used the TL866+ after desoldering the chip. Attaching the wires with a SOIC-8 clip did not work for me. For this particular ThinkPad model, the command was:sudo minipro --device "ST93C46C(x8)@SOIC8" --read password.romPython 3 is also needed.Installation and usageThe following assumes that~/.local/binis part of your PATH variable and thatpython3-pipis installed. Install this tool using Pip:pip3 install ibmsupervisor
ibmsupervisor --file password.romYou can also run this tool without utilizing setuptools:git clone https://gitlab.com/eloydegen/ibmsupervisor
cd ibmsupervisor/ibmsupervisor
chmod +x ./password.py
./password.py --file password.romCommon problemsIf the ThinkPad prints "178" when booting, the EEPROM is very likely not making contact after you have soldered it back on the PCB.If the TL866 gives a file full of 0xFF bytes, the pins haven't made good contact.In case the ThinkPad gives a CRC error after reading the data but you have not changed anything, you can flash the okeee.rom to the chip. This has been tested on another ThinkPad 365XD and is known to work. As the filename implies, the supervisor password that is contained in this rom is "okeee" without the quotes. Note that you should keep the dump you made, because that one very likely contains the HDD password that you will need to boot from it.NotesIn thebinfolder, theabcdefdg.romhas been extracted from a machine andokeee.romis known to work on a different machine as well.44keee.romis a broken test example.nzhnzh.romis likely broken as well, with a corrupt CRC.Linksminipro by David Griffith365XD user guide