Saravanan666/pypi-org huggingface dataset:
Package: openid-connect
This is a low-level Python library for authentication against OpenID
Providers (e.g. Google).For high-level libraries see theAiakosproject.What is OpenID Connect?It’s a OAuth2-based standard for authentication in applications.Legacy authorization serversopenid-connect does also support some legacy OAuth2 providers
that do not implement OpenID Connect protocol:facebookgitlabgithubFor gitlab and github - both official and on-premise instances are supported.RequirementsPython 3.7+ - might work on older 3.x versions, but it’s not testedpython-jose
Package: openidcpy
OpenidcpyA package that implements the Authorization Flow client for the OpenID Connect relying party. The package can be used to fetch OpenID Connect tokens using Authorization Flow and validate them using JWKS. The client has been implemented with KeyCloak as the OpenID Connect Authorization Provider.UsageThe only class of use isOidcClientwhich can be imported in code as:fromopenidcpyimportOidcClientYou'd need to initialize this client as follows:discovery_url='The .well_known discovery endpoint'client_id='The client id assigned to the RP'client_secret='The client secret assigned to RP if the client is private, otherwise None'client=OidcClient(discovery_url=discovery_url,client_id=client_id,client_secret=client_secret)The client basically exposes 3 methods that, if called in sequence, complete the Authorization Flow. The first call is to create the authorization code url:response_type='code'# Always `code` for Authorization Flowredirect_uri='uri where the relying party is running'scopes=['openid','email','profile']# Array of requested scopesstate='Some random generated value that is returned in the redirect, prevents csrf'url=client.create_auth_url(response_type=response_type,redirect_uri=redirect_uri,scopes=scopes,state=state)You'll need to redirect your application to the above url. The redirection will cause the auth server's login page to be displayed. Once the user logs in, the browser is redirected to theredirect_uripassed into the above call with an authorization code. You'll need to exchange the code with the JWT token as follows:url='redirect_uri + query params, basically the endpoint on which the auth server redirected'redirect_uri='uri where the relying party is running'scopes=['openid','email','profile']# Array of requested scopesstate='Same value from the previous request'tokens=client.get_tokens_from_code(url=url,redirect_uri=redirect_uri,scopes=scopes,state=state)Now, depending on the scopes you used thetokensdictionary can have eitheraccess_token, theid_tokenor both.The next step is to validate these tokens, for which the client provides the following method:id_token=tokens['id_token']claims=client.validate_jwt(id_token)The method validates the signature of the token, the audience (whether the token was intended for you) and the expiration of the token.
Theclaimsdictionary will contain the decoded contents of the token. Based on the scopes you specified, it can contain theemailorpreferred_username.External Dependenciesrequests (2.20.0)python-jose (3.0.1)ContributionsContributions are strongly encouraged, since this is just a basic implementation of the Authorization and there's a lot more to OpenId Connect that can be added here. I will try to add the rest whenever I find the time but if I can't, feel free to add it yourself.
Package: openide
OpenIDEPython implementation of openide/Netbeans Platform conceptsIn a Very protozoic form right now. Checkout the nbm-selection-01 tutorial to grasp how to use the framework.Individual ContributorsA list of people who have contributed to OpenIDE in order of their first
contribution.Format:Name-or-Well-known-alias <email@domain.tld> (url)Axel Voitieraxel.voitier@gmail.comPlease, add yourself when you contribute!CHANGELOG0.0.1 - 30 June 2021Initial dump of codeWorking Netbeans Selection Tutorial part 1A setuptools egg-info hook to generate openide.yaml file from
decorated classes in our and clients modulesAn egg-info lookup instance loaderA global context (ie. focus aware) lookupThe main lookup of the application (loaded by Lookup.get_default())Some ability to decorate a class as a service, with singleton
auto-loading from default/main lookupBasic setup of an application, with a very basic life-cycleMinimal implementation of TopComponent:registrationopen actioncomponent lookupactivationshow/hide eventspreferred IDiconand few other propertiesA context (ie. focus) tracker, in charge of updating the global
context lookupA main window implementation, connecting all those parts to form an
application following which top components are declared in the local
installation. Does handle:locations of top components in the main
windowbasic dockingloads up declared actions in menusloads up top
components declared as open at startuptrack focus and update the
context trackerhandle opening, closing and activation of top
components
Package: openid-provider-pebble
Turn your Django app into an OpenID Provider!This app is a fork of the original django-openid-provider package. For now, it
remains API compatible with the original, documented at:http://django-openid-provider.readthedocs.org/. This fork is actively maintained
by Pebble and, as such, will remain compatible with the latest Django versions.Check for new releases and report bugs at:https://github.com/mypebble/openid-provider/Copyright (C) 2010 Roman Barczyński
Copyright (C) 2014 SF Software limited t/a PebbleLicensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://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.
Package: openid-selector
OVERVIEW-------------------This is a simple Javascript OpenID selector. It has been designed sothat users do not even need to know what OpenID is to use it, theysimply select their account by a recognisable logo.USAGE-------------------See demo.html sourceTROUBLESHOOTING----------------------------Please remember after you change list of providers, you must rungenerate-sprite.js <locale> to refresh sprite imagegenerate-sprite.js requires ImageMagick to be installed and worksonly in Windows (non-Windows users must run ./generate-sprite.sh or./generate-sprite.rb)Before running generate-sprite.js for the first time, check itssource code and correct line 16 (var imagemagick = '<...>';) topoint to ImageMagick install dir.Please also remember that sprites may be reused: if twolocalizations have the same provider list that differs only in text,it is reasonable to reuse the sprite: for example Germanlocalization is reusing sprite from English localization, Ukrainianlocalization is reusing sprite from Russian localization, etc.So, if provider list in root localization changes, localizationsthat reuse the sprite must be also changed, or unlinked or relinkedto new root localization.HOWTO-------------------1. how to create new (small) provider icona. launch web browser, go to http://<provider-site>/favicon.icoand save the image as <provider>.ico in ./images.small folderb. launch GIMP or Photoshop and save 16x16 rendition from theicon as <provider>.ico.gifc. use ImageMagick command likeconvert <provider>.ico <provider>.ico.png to convert the iconto PNG format (it might generate several files, just pick 16x16rendition and rename it as <provider>.ico.png w/o .1.)2. how to create new (large) provider imagea. grab provider logo image from its websiteb. resize the image not to exceed 90x30 rectc. save as the image as <provider>.gif in ./images.large folder3. how to plug-in facebook providerput the following code in providers_large or providers_small:facebook = {name: 'Facebook',url: "javascript:facebook_click();"}where facebook_click is something like:function facebook_click() {$('#<id of html fbconnect element>').click();}the same mechanism also applies if you want to plug-in any oauth orxauth providerLICENSE-------------------This code is licensed under the New BSD License.Authors=======andyjm@gmail.com - Project Ownerdavid.j.boden@googlemail.comandriy.gerasika@gmail.comrgomes.info@gmail.com - Packager
Package: open-imgs-downloader
Installpip install open-imgs-downloaderUsagedownload the files fromOpenImagescpu_counts = 4cls_file = "./class-descriptions-boxable.csv"anno_file = "./oidv6-train-annotations-bbox.csv"geting_class =["A","Person","Apple"]save_path = "data"from open_images.downloader import Downloader
downloader = Downloader(cpu_counts,cls_file,anno_file,save_path)
downloader.run(geting_class)
Package: openimis-be-calcrule-capitation-payment
openimis-be-calcrule-capitation_payment_pyThis repository holds the files of the openIMIS backend calculation rule capitation payment reference module.
It is dedicated to be deployed as a module ofopenimis-be_py. It is an
extended part of calculation moduleopenimis-be-calculation_pyand therefore that module is dependent on this core calculation module. This module contains additional calculation rules.ModelsNone (using no database approach for CalculationRule) - Calculation Rule is saved by defining class
extending the ABSCalculationClass from core module.
Package: openimis-be-calcrule-commission
calcrule to calculate the EO commission calcultiondescriptionThis calculation will, for the selected level and product, calculate how much the insurance need to pay the commission to EOit creates a bill based on the commissions part of the BR##designhttps://openimis.atlassian.net/wiki/spaces/OP/pages/3045818369/Payment+plan+calculation+rule+Commission
Package: openimis-be-calcrule-contribution-income-percentage
openimis-be-calculation-rule-fs_salary_procentage_pyThis repository holds the files of the openIMIS Backend calculation rule fs income percentage reference module.
It is dedicated to be deployed as a module ofopenimis-be_py. It is an
extended part of calculation moduleopenimis-be-calculation_pyand therefore that module is dependent on this core calculation module. This module contains additional calculation rules.ModelsNone (using no database approach for CalculationRule) - Calculation Rule is saved by defining class
extending the ABSCalculationClass from core module.Listened Django Signalssignal_get_rule_namesignal_get_rule_detailssignal_get_paramsignal_get_linked_classsignal_calculate_eventGraphQl QueriesNoneServicesNoneConfiguration options (can be changed via core.ModuleConfiguration)loading implemented rules from "calculation_rule.py" into global variable "CALCULATION_RULE"
Package: openimis-be-calcrule-contribution-legacy
openimis-be-calcrule-contribution-legacy_pyThis repository holds the files of the openIMIS backend calculation rule contribution legacy reference module.
It is dedicated to be deployed as a module ofopenimis-be_py. It is an
extended part of calculation moduleopenimis-be-calculation_pyand therefore that module is dependent on this core calculation module. This module contains additional calculation rules.ModelsNone (using no database approach for CalculationRule) - Calculation Rule is saved by defining class
extending the ABSCalculationClass from core module.
Package: openimis-be-calcrule-fees
Calcrule to calculate Paymen fees for payment sourceThis calculation will, for the selected level and product, calculate how much the insurance need to pay the payment platform for the fee for payment serviceit create bill for the payment platform based on the contribution made through that platform attached to invoice itemhttps://openimis.atlassian.net/wiki/spaces/OP/pages/3045818376/Payment+plan+calculation+rule+fees
Package: openimis-be-calcrule-third-party-payment
openimis-be-calcrule-third_party_payment_pyThis repository holds the files of the openIMIS backend calculation rule contribution legacy reference module.
It is dedicated to be deployed as a module ofopenimis-be_py. It is an
extended part of calculation moduleopenimis-be-calculation_pyand therefore that module is dependent on this core calculation module. This module contains additional calculation rules.ModelsNone (using no database approach for CalculationRule) - Calculation Rule is saved by defining class
extending the ABSCalculationClass from core module.
Package: openimis-be-calculation
openIMIS Backend Calculation reference moduleThis repository holds the files of the openIMIS Backend Calculation reference module.
It is dedicated to be deployed as a module ofopenimis-be_py.ModelsNone (using no database approach for CalculationRule) - Calculation Rule is saved by defining class
extending the ABSCalculationClass from core module.Listened Django Signalssignal_get_rule_namesignal_get_rule_detailssignal_get_paramsignal_get_linked_classsignal_calculate_eventGraphQl QueriescalculationRulesallow frontend to fetch the all calculation rules datacalculationRulesByClassNameallow frontend to fetch the calculation data based on its namecalculationParamsallow frontend to fetch the calculation parameterslinkedClassallow frontend to fetch the linked class related to chosen instanceServicesget_rule_name(class_name)return the names of calculation rulesget_rule_details(class_name)this function will send a signal and the rules will reply if they have
object matching the classname in their list of objectrun_calculation_rules(instance, context, user)trigger calculations so as to calculate based on provided parametersget_parameters(class_name, instance)return the ruleDetails that are valid to classname and related to instanceget_linked_class(class_name_list)List[ClassName] is send from FE, by checking the class used in page where the user
have accessreturn all the ListClassConfiguration options (can be changed via core.ModuleConfiguration)gql_query_calculation_rule_perms: required rights to call all graphQl queries defined for Calculation module (default: ["153001"])gql_mutation_update_calculation_rule_perms: required rights to update CalculationRule (default: ["153003"])
Package: openimis-be-claim-ai-quality
openIMIS Backend Claim AI Quality reference moduleThis repository holds the files of the openIMIS Backend Claim AI Quality reference module.
It is dedicated to be deployed as a module ofopenimis-be_py.ORM mapping:NoneListened Django SignalsSubmitClaimsMutationAdds 'claim_ai_quality' key to the json_ext field on claim submissions.If ClaimAiQualityConfig.event_based_activation is set to true AI adjudication is performed.EvaluateByAIMutationAdjudication is called usingafter_claim_ai_evaluation_validationsignal.ServicesAiQualityReportService, loading claims used for misclassification reportReportsmiscategorisation_reportGraphQL QueriesNoneGraphQL MutationsEvaluateByAIMutationUsed for manual AI Adjudication of selected claims throughafter_claim_ai_evaluation_validationsignal.gql_mutation_submit_claims_permspermission required.Additional Endpointsmiscategorisation_report: generating report regarding ai misclassification in  PDF formatReportsmiscategorisation_report: AI Evaluation accurracy and list of misclassified claimsConfiguration options (can be changed via core.ModuleConfiguration)Rest API Configurationrest_api_login_endpoint: Endpoint used for getting user authentication token.Default:http://localhost:8000/api/api_fhir_r4/login/,rest_api_bundle_evaluation_endpoint: Endpoint used for sending bundle of claims for evaluation.Default:http://localhost:8000/api/claim_ai/claim_bundle_evaluation/,rest_api_single_claim_evaluation_endpoint: Endpoint used for sending single claim for evaluation.Default:http://localhost:8000/api/claim_ai/claim_evaluation/,wait_for_evaluation: If set toFalsesystem doesn't wait for server response and have to use other method to
pull adjudication data.rest_api_user_login: Username of user used for AI Server JWT Authentication.rest_api_user_password: Username of user used for AI Server JWT Authentication.Remainingclaim_ai_username: User dedicated to perform DB operations executed in background by Claim AI Quality module.
By default it's_ClaimAIAdminadded in module migration.event_based_activation: Determines if AI evaluation should be done on claim submission (True) or
using scheduled job (True). Default:Falsebundle_size: number of claims in one bundle if scheduled job is used. Default:200,accepted_category_code: Code for Items/Services positively evaluated by AI. Default:0,rejected_category_code: Code for Items/Services negatively evaluated by AI. Default:1,reason_rejected_by_ai_code: FHIR Rejection reason code for claims rejected by AI. Default:-2,date_format: date format used in FHIR response. Default:%Y-%m-%d,misclassification_report_perms: List of permissions required to get Misclassification report.Default: [112001],evaluation_method: Method used for AI evaluation. If set torest_apiclaims are adjudicated using
REST API connection. If set tointegratedthen system is usingclaim_aimodule installed on same instance
as Claim AI Quality server.Default: (empty string). - ifclaim_aimodule is installed locally it uses this module. If it's
not installed REST API is used.openIMIS Modules Dependenciescoreclaimapi_fhir_r4locationreport
Package: openimis-be-contribution-plan
openIMIS Backend Contribution Plan reference moduleThis repository holds the files of the openIMIS Backend ContributionPlan and ContributionPlanBundle reference module.
It is dedicated to be deployed as a module ofopenimis-be_py.ORM mapping:tblContributionPlanBundle > ContributionPlanBundletblContributionPlan > ContributionPlantblContributionPlanBundleDetails > ContributionPlanBundleDetailsGraphQl QueriescontributionPlanBundlecontributionPlancontributionPlanBundleDetailsGraphQL Mutations - each mutation emits default signals and return standard error lists (cfr. openimis-be-core_py)createContributionPlanBundleupdateContributionPlanBundledeleteContributionPlanBundlereplaceContributionPlanBundlecreateContributionPlanupdateContributionPlandeleteContributionPlanreplaceContributionPlancreateContributionPlanBundleDetailsupdateContributionPlanBundleDetailsdeleteContributionPlanBundleDetailsServicesContributionPlanBundle - CRUD services, replaceContributionPlan - CRUD services, replaceContributionPlanBundleDetails - create, update, deleteConfiguration options (can be changed via core.ModuleConfiguration)gql_query_contributionplanbundle_perms: required rights to call contribution_plan_bundle GraphQL Query (default: ["151101"])gql_query_contributionplanbundle_admins_perms: required rights to call contribution_plan_bundle_admin GraphQL Query (default: [])gql_query_contributionplan_perms: required rights to call contribution_plan GraphQL Query (default: ["151201"])gql_query_contributionplan_admins_perms: required rights to call contribution_plan_admin GraphQL Query (default: [])gql_mutation_create_contributionplanbundle_perms: required rights to call createContributionPlanBundle GraphQL Mutation (default: ["151102"])gql_mutation_update_contributionplanbundle_perms: required rights to call updateContributionPlanBundle GraphQL Mutation (default: ["151103"])gql_mutation_delete_contributionplanbundle_perms: required rights to call deleteContributionPlanBundle GraphQL Mutation (default: ["151104"])gql_mutation_replace_contributionplanbundle_perms: required rights to call replaceContributionPlanBundle GraphQL Mutation (default: ["151106"])gql_mutation_create_contributionplan_perms: required rights to call createContributionPlan GraphQL Mutation (default: ["151202"])gql_mutation_update_contributionplan_perms: required rights to call updateContributionPlan GraphQL Mutation (default: ["151203"])gql_mutation_delete_contributionplan_perms: required rights to call deleteContributionPlan GraphQL Mutation (default: ["151204"])gql_mutation_replace_contributionplan_perms: required rights to call replaceContributionPlan GraphQL Mutation (default: ["151206"])
Package: openimis-be-controls
openIMIS Backend controls reference moduleThis repository holds the files of the OpenIMIS Backend Controls reference module.
It is dedicated to be deployed as a module ofopenimis-be_py.Requirementspipinstall-rrequirements.txtFor development, you also need to run the following:pip install -r requirements-dev.txtInstallationpipinstall-e.with the development requirementspipinstall-e.[dev]TestsThe tests can be run either with a standard pytest test harness or with the
one of the core module. In the first case, it's isolated and doesn't
require anything else that the present repo:pytestIn the second one, you need to download the core project (and prepare the test
database), install the controls module in itpip install -e <path to the controls module>, then you can run the tests:pythonmanage.pytest--keepcontrolsORM mappingDatabase table nameDjango ModeltblControlsControlListened Django SignalsNoneServicesNoneReports (template can be overloaded via report.ReportDefinition)NoneGraphQL Queriescontrolcontrol_str: full text search on Control name, usage, and adjustabilityAn example:{
  control{
    edges{
      node{
        name
      }
    }
  }
}GraphQL Mutations - each mutation emits default signals and return standard error lists (cfr. openimis-be-core_py)NoneConfiguration options (can be changed via core.ModuleConfiguration)NoneopenIMIS Modules DependenciesNone
Package: openimis-be-individual
openIMIS Backend individual reference moduleThis repository holds the files of the openIMIS Backend Individual reference module.
It is dedicated to be deployed as a module ofopenimis-be_py.ORM mapping:individual_individual, individual_historicalindividual > Individualindividual_individualdatasource, individual_historicalindividualdatasource > IndividualDataSourceindividual_individualdatasourceupload, individual_historicalindividualdatasourceupload > IndividualDataSourceUploadindividual_group, individual_historicalgroup > Groupindividual_groupindividual, individual_historicalgroupindividual > GroupIndividualGraphQl QueriesindividualindividualDataSourceindividualDataSourceUploadgroupgroupIndividualgroupExportindividualExportgroupIndividualExportGraphQL Mutations - each mutation emits default signals and return standard error lists (cfr. openimis-be-core_py)createIndividualupdateIndividualdeleteIndividualcreateGroupupdateGroupdeleteGroupaddIndividualToGroupeditIndividualInGroupremoveIndividualFromGroupcreateGroupIndividualsServicesIndividualcreateupdatedeleteIndividualDataSourcecreateupdatedeleteGroupcreateupdatedeletecreate_group_individualsupdate_group_individualsGroupIndividualServicecreateupdatedeleteConfiguration options (can be changed via core.ModuleConfiguration)gql_individual_search_perms: required rights to call individual GraphQL Query (default: ["159001"])gql_individual_create_perms: required rights to call createIndividual GraphQL Mutation (default: ["159002"])gql_individual_update_perms: required rights to call updateIndividual GraphQL Mutation (default: ["159003"])gql_individual_delete_perms: required rights to call deleteIndividual GraphQL Mutation (default: ["159004"])gql_group_search_perms: required rights to call group GraphQL Mutation (default: ["180001"])gql_group_create_perms: required rights to call createGroup and addIndividualToGroup and createGroupIndividuals GraphQL Mutation (default: ["180002"])gql_group_update_perms: required rights to call updateGroup and editIndividualInGroup GraphQL Mutation (default: ["180003"])gql_group_delete_perms: required rights to call deleteGroup and removeIndividualFromGroup GraphQL Mutation (default: ["180004"])openIMIS Modules Dependenciescore