Saravanan666/pypi-org huggingface dataset:
Package: aadinspector
aadinspectorThis package will help to validate azure b2c jwt token.📝 Table of ContentsAboutGetting StartedAuthors🧐 AboutThis package will help to validate azure b2c jwt token.🏁 Getting StartedDependancy & prerequisitePython >=3.6 should be installed."cryptography==37.0.4""PyJWT==2.4.0""requests==2.28.1"To Start experimenting this package you need to install it.pip install aadinspector# public key code should run only once on app start.
    pub_handler=  PublicKeyHandler("tenant_id")
    pub_handler.set_name_of_policy("name_of_policy")
    token="string"
    public_key= pub_handler.get_public_key(token)
    print(public_key)
    
    # token validation code should run for each request.
    jwt_validator = JWTValidator(public_key)
    is_valid, token = jwt_validator.validate(token)
    print(is_valid)
    print(token)✍️ AuthorsDinesh Kushwaha- Idea & Initial workSee also the list ofcontributorswho participated in this project.
Package: aa-discord-announcements
AA Discord AnnouncementsDiscord Announcements viaAlliance AuthWrite announcements and manage who can write announcements on your corporation or
alliance Discord through Alliance Auth.AA Discord AnnouncementsInstallation⚠️ Important ⚠️Step 1: Install the AppStep 2: Update Your AA SettingsStep 3: Finalizing the InstallationStep 4: Setting up PermissionStep 5: Setting up the AppChangelogTranslation StatusContributingInstallation⚠️ Important ⚠️This app is a plugin for Alliance Auth. If you don't have Alliance Auth running already,
please install it first before proceeding.
(See the officialAA installation guidefor details)NoteYou also want to make sure that you have theDiscord serviceinstalled, configured and activated before installing this app.Step 1: Install the AppMake sure you're in the virtual environment (venv) of your Alliance Auth installation.
Then install the latest version:pipinstallaa-discord-announcementsStep 2: Update Your AA SettingsConfigure your AA settings (local.py) as follows:Add"aa_discord_announcements",toINSTALLED_APPSStep 3: Finalizing the InstallationCopy static files and run migrationspythonmanage.pycollectstatic
pythonmanage.pymigrateRestart your supervisor services for AAStep 4: Setting up PermissionNow you can set up permissions in Alliance Auth for your users.
Addaa_discord_announcements | general | Can access this appto the states and/or
groups you would like to have access.Step 5: Setting up the AppIn your admin backend you'll find a new section calledDiscord Announcements.
This is where you set all your stuff up, like the webhooks you want to ping and who
can ping them. It's pretty straight forward, so you shouldn't have any issues. Go nuts!ChangelogSeeCHANGELOG.mdTranslation StatusDo you want to help translate this app into your language or improve the existing
translation? -Join our team of translators!ContributingDo you want to contribute to this project? That's cool!Please make sure to read theContribution Guidelines.(I promise, it's not much, just some basics)
Package: aa-discordnotify
Discord NotifyForward Alliance Auth notifications to users on DiscordContentsOverviewInstallationSettingsChange LogOverviewThis app automatically forwards Alliance Auth notifications to users on Discord.FeaturesAuth notifications appear instantly as DM on DiscordNotifications are colored according to their level (e.g. INFO = blue)Can be restricted to notifications for superusers only (e.g. to keep track of errors)ExampleInstallationStep 1 - Check preconditionsDiscord Notify is a plugin for Alliance Auth. If you don't have Alliance Auth running already, please install it first before proceeding. (see the officialAA installation guidefor details)Discord Notify needsDiscord Proxyto function. Please make sure the server is up and running on your system, before continuing.Please also make sure you have the Discord service installed and setup in Alliance Auth.Step 2 - Install appMake sure you are in the virtual environment (venv) of your Alliance Auth installation. Then install the newest release from PyPI:pipinstallaa-discordnotifyStep 3 - Configure Auth settingsConfigure your Auth settings (local.py) as follows:Add"discordnotify"toINSTALLED_APPSOptional: Add additional settings if you want to change any defaults. SeeSettingsfor the full list.Step 4 - Finalize App installationRestart your supervisor services for Auth (no migration required).Step 5 - Send test notificationTo test that your installation was successful you can create a test notification to yourself by navigating to the relative route/discordnotify/testin your browser. The absolute URL depends on your Auth site. Example: For an Auth site with the URLhttps://auth.example.comthe test URL would be:https://auth.example.com/discordnotify/testWhen everything was setup correctly, you will receive a test notification on Discord.Congratulations you are now ready to use Discord Notify!SettingsHere is a list of available settings for this app. They can be configured by adding them to your AA settings file (local.py).Note that all settings are optional and the app will use the documented default settings if they are not used.NameDescriptionDefaultDISCORDNOTIFY_ENABLEDSet this to False to disable this app temporarilyTrueDISCORDNOTIFY_DISCORDPROXY_PORTPort used to communicate with Discord Proxy.50051DISCORDNOTIFY_MARK_AS_VIEWEDWhen enabled will mark all notifications as viewed that have been successfully submitted to DiscordFalseDISCORDNOTIFY_SUPERUSER_ONLYWhen enabled only superusers will be get their notifications forwarded.False
Package: aad-jimmielin
Final Project Repo for Group 31Find our documentation on our websiteaad.fer.meNames:Matheus C. FernandesHaipeng LinBen Manning*TF: Johnathan JiangGit WorkflowCreate your own branch infeature/nameCommit changes and resolve merge conflicts bygit merge mainSubmit pull request tomainApprove and merge tomainCollaborative workflow in DeepnoteTo facilitate coding, we used a shared deepnote project to create shared commits under thegroup/*branches.Use Jupyter Notebook%%writefileto save into thecs107-FinalProjectfolder in Deepnote;Use the terminal togit commitstaged files as appropriate;Create the pull request and ask another teammate for approval.
Package: aa-drifters
Drifters for Alliance AuthDrifter wormhole tracker/manager plugin forAlliance Auth.FeaturesAA-Discordbot Cogs for recording the status of Jove Observatory systems and their contained Drifter holesCogs for recalling this information in a few waysPlanned FeaturesP2P Mapping using known holesPossible Pathfinder Integration/sync? To investigate usefullnessInstallationStep 1 - Django Eve UniverseDrifters is an App forAlliance Auth, Please make sure you have this installed. Drifters is not a standalone Django ApplicationDrifters needs the Appdjango-eveuniverseto function. Please make sure it is installed before continuing.Step 2 - Install apppipinstallaa-driftersStep 3 - Configure Auth settingsConfigure your Auth settings (local.py) as follows:Add'drifters'toINSTALLED_APPSAdd below lines to your settings file:## Settings for AA-Drifters# Cleanup TaskCELERYBEAT_SCHEDULE['drifters_garbage_collection']={'task':'drifters.tasks.garbage_collection','schedule':crontab(minute='*/15',hour='*'),}Step 4 - Maintain Alliance AuthRun migrationspython manage.py migrateGather your staticfilespython manage.py collectstaticRestart your projectsupervisorctl restart myauth:Step 5 - Pre-Load Django-EveUniversepython manage.py eveuniverse_load_data mapThis will load Regions, Constellations and Solar SystemsContributingMake sure you have signed theLicense Agreementby logging in athttps://developers.eveonline.combefore submitting any pull requests. All bug fixes or features must not include extra superfluous formatting changes.
Package: aad-token-verify
aad-token-verifyA python utility library to verify an Azure Active Directory OAuth token. Meant for resource servers serving secured API endpoints (eg FastAPI)Installpython3-mpipinstallaad-token-verifyUsageTo use stand alone, simply import the verify payload function and call.fromaad_token_verifyimportget_verified_payloadtoken_verifier=get_verified_payload(token,tenant_id="YOUR_TENANT_ID",audience_uris=["AUDIENCE_URI"])To use with FastAPI, there's some setup to get the Swagger docs to workfromfastapiimportDepends,FastAPIfromfastapi.openapi.modelsimportOAuthFlowImplicit,OAuthFlowsfromfastapi.middleware.corsimportCORSMiddlewarefromfastapi.securityimportOAuth2fromaad_token_verifyimportget_verified_payload# TODO Update these with your Tenant ID, Audience URI, and Client ID_TENANT_ID="ISSUER_TENANT_ID"_AUDIENCE_URI="https://YOUR_AUDIENCE_URI"_AAD_CLIENT_ID="CLIENT_ID"oauth2_scheme=OAuth2(flows=OAuthFlows(implicit=OAuthFlowImplicit(authorizationUrl=f"https://login.microsoftonline.com/{_TENANT_ID}/oauth2/v2.0/authorize",scopes={f"{_AUDIENCE_URI}/.default":"Custom Audience URI scope","openid":"OpenID scope","profile":"Profile scope","email":"email scope",},)))asyncdefget_current_user(auth_header:str=Depends(oauth2_scheme),# noqa: B008):scheme,_,token=auth_header.partition(" ")returnget_verified_payload(token,tenantId=_TENANT_ID,audience_uris=[_AUDIENCE_URI],)app=FastAPI()app.add_middleware(CORSMiddleware,allow_origins=["*"],allow_credentials=True,allow_methods=["*"],allow_headers=["*"],)app.swagger_ui_init_oauth={"usePkceWithAuthorizationCodeGrant":True,"clientId":_AAD_CLIENT_ID,"scopes":[f"{_AUDIENCE_URI}.default"],}@app.get("/")asyncdefsecured_endpoint(user=Depends(get_current_user)):returnuserContributingFeel free to submit issues and pull requests!
Package: aad-token-verify-kbr
aad-token-verifyA python utility library to verify an Azure Active Directory OAuth token. Meant for resource servers serving secured API endpoints (eg FastAPI)Installpython3-mpipinstallaad-token-verifyUsageTo use stand alone, simply import the verify payload function and call.fromaad_token_verifyimportget_verified_payloadtoken_verifier=get_verified_payload(token,tenant_id="YOUR_TENANT_ID",audience_uris=["AUDIENCE_URI"])To use with FastAPI, there's some setup to get the Swagger docs to workfromfastapiimportDepends,FastAPIfromfastapi.openapi.modelsimportOAuthFlowImplicit,OAuthFlowsfromfastapi.middleware.corsimportCORSMiddlewarefromfastapi.securityimportOAuth2fromaad_token_verifyimportget_verified_payload# TODO Update these with your Tenant ID, Audience URI, and Client ID_TENANT_ID="ISSUER_TENANT_ID"_AUDIENCE_URI="https://YOUR_AUDIENCE_URI"_AAD_CLIENT_ID="CLIENT_ID"oauth2_scheme=OAuth2(flows=OAuthFlows(implicit=OAuthFlowImplicit(authorizationUrl=f"https://login.microsoftonline.com/{_TENANT_ID}/oauth2/v2.0/authorize",scopes={f"{_AUDIENCE_URI}/.default":"Custom Audience URI scope","openid":"OpenID scope","profile":"Profile scope","email":"email scope",},)))asyncdefget_current_user(auth_header:str=Depends(oauth2_scheme),# noqa: B008):scheme,_,token=auth_header.partition(" ")returnget_verified_payload(token,tenantId=_TENANT_ID,audience_uris=[_AUDIENCE_URI],)app=FastAPI()app.add_middleware(CORSMiddleware,allow_origins=["*"],allow_credentials=True,allow_methods=["*"],allow_headers=["*"],)app.swagger_ui_init_oauth={"usePkceWithAuthorizationCodeGrant":True,"clientId":_AAD_CLIENT_ID,"scopes":[f"{_AUDIENCE_URI}.default"],}@app.get("/")asyncdefsecured_endpoint(user=Depends(get_current_user)):returnuserContributingFeel free to submit issues and pull requests!
Package: aaei
Air Adverse Effect IndexCalculate the relative toxicity effect(s) of different trace gas compounds withGenRAinstall withpipinstallaaeiOrpipinstallaaei".[Viz]"to include visualization capabilitiesExample code:mkdirhealth_effectscdhealth_effects
AEICopyExamples
AEIRunvizpiv=Batch_Report_Target.csvThis tool uses the output ofGenRAtoxicological Generalized Read-across Database/tool.One or more chemicals can be statistically analyzed, these statistics can be applied to measured or simulated chemical concentrations.SeeGithubfor more details.
Package: aa-esi-status
AA ESI StatusApp for Alliance Auth to show the current status of ESI and its end points.AA ESI StatusInstallationStep 1: Install the AppStep 2: Update Your AA SettingsStep 3: Finalizing the Installation(Optional) Public ViewsUpdatingChangelogTranslation StatusContributingInstallationNoteThis app is a plugin for Alliance Auth. If you don't have Alliance Auth running
already, please install it first before proceeding. (See the officialAA
installation guidefor details)AA ESI Status needs at leastAlliance Auth v3.6.1. Please make sure to meet
this conditionbeforeinstalling this app, otherwise an update to Alliance Auth
will be pulled in unsupervised.Step 1: Install the AppMake sure you're in the virtual environment (venv) of your Alliance Auth installation.
Then install the latest version:pipinstallaa-esi-statusStep 2: Update Your AA SettingsConfigure your AA settings (local.py) as follows:Add"esistatus",toINSTALLED_APPSStep 3: Finalizing the InstallationRun migrations & copy static files.pythonmanage.pycollectstatic
pythonmanage.pymigrateRestart your supervisor services for AA.(Optional) Public ViewsThis app supports AA's feature of public views, since the ESI status is not any
mission-critical information.
To allow users to view the time zone conversion page without the need to log in,
please add"esistatus",to the list ofAPPS_WITH_PUBLIC_VIEWSin yourlocal.py:# By default, apps are prevented from having public views for security reasons.# To allow specific apps to have public views, add them to APPS_WITH_PUBLIC_VIEWS#   » The format is the same as in INSTALLED_APPS#   » The app developer must also explicitly allow public views for their appAPPS_WITH_PUBLIC_VIEWS=["esistatus",# https://github.com/ppfeufer/aa-esi-status/]NoteIf you don't have a list forAPPS_WITH_PUBLIC_VIEWSyet, then add the whole
block from here. This feature has been added in Alliance Auth v3.6.0 so you
might not yet have this list in yourlocal.py.UpdatingTo update your existing installation of AA ESI Status, first enable your virtual
environment.Then run the following commands from your AA project directory (the one that
containsmanage.py).pipinstall-Uaa-esi-status
pythonmanage.pycollectstatic
pythonmanage.pymigrateNow restart your AA supervisor services.ChangelogSeeCHANGELOG.mdTranslation StatusDo you want to help translate this app into your language or improve the existing
translation? -Join our team of translators!ContributingDo you want to contribute to this project? That's cool!Please make sure to read theContribution Guidelines.(I promise, it's not much, just some basics)
Package: aa-fastapi-template
AA FastAPI TemplateA robust and sensible baseline for kick-starting any new FastAPI application. This template provides a comprehensive setup for developing high-performance web applications with FastAPI, including optional, opinionated development and testing dependencies to enhance your development workflow.As of v0.15.10 all dependencies are pinned. Testing and build quality are still a work in progress though. For now everything should work but please check theContributingsection below if you find issues.This package isn't really intended to be used in the same environment as other projects. Since the dependencies here are pinned care should be taken to avoid version conflicts pulled in for other packages.PrerequisitesPython 3.10 or higherpip (Python package installer)Usage# Using pip:
pip install aa-fastapi-template

# tests
pip install aa-fastapi-template[tests]

# dev
pip install aa-fastapi-template[dev]The base package provides the essential tools for creating FastAPI applications.While[tests]adds testing libraries, the[dev]option installs both the testing and development tools.Package OptionsIncluded within each package are:aa-fastapi-templateaa-fastapi-template[tests]aa-fastapi-template[dev]asyncpg+ aa-fastapi-template+ aa-fastapi-template[tests]environshypothesisblackfastapipytesthttpxmypypytest-covisortpsycopg2-binarypytest-emojiruffpydanticpytest-mdtypespython-dotenvpytest-mocktypes-tomlsqlalchemypytest-xdistsqlmodeltoxuvicornContributingWe welcome contributions to the AA FastAPI Template! If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.Issues: Use theGitHub Issues pagePull Requests: Submit pull requests with your changes/fixes.
Package: aafigure
This package provides a moduleaafigure, that can be used from other
programs, and a command line toolaafigure.Example, test.txt:+-----+   ^
    |     |   |
--->+     +---o--->
    |     |   |
    +-----+   VCommand:aafigure test.txt -t svg -o test.svgPlease see documentation for examples.http://aafigure.readthedocs.io/
Package: aa-fleet
Fleet plugin app for Alliance AuthThis is an fleet plugin app forAlliance Auth(AA).FeaturesAlliance Fleet offers the following main features:Create a fleet advert on authRestrict fleet advert to some AuthGroupsSet MOTD and Free Move from authAutomaticly kill the fleet advert if the creator is out of fleet or changed fleetInvite any character related to the user on authFC View with an aggregation of ships in fleet with variation each 60 secondsInstallation1. Install appInstall into your Alliance Auth virtual envrionment from githubpipinstallaa-fleet2. Update Eve Online appupdate the Eve Online app used for authentication in your AA installation to include the following scopes:esi-fleets.read_fleet.v1
esi-fleets.write_fleet.v13. Configure AA settingsConfigure your AA settings ('local.py') as follows:Add'fleet'toINSTALLED_APPAdd these lines to the bottom of your settings file:#settings for fleetCELERYBEAT_SCHEDULE['fleet_check_fleet_adverts']={'task':'fleet.tasks.check_fleet_adverts','schedule':crontab(minute='*/1'),}4. Finalize installation into AARun migrations & copy static filespythonmanage.pymigrate
pythonmanage.pycollectstaticRestart your supervisor services for AA5. Setup permissionsNow you can access Alliance Auth and setup permissions for your users. See sectionPermissionsbelow for details.UpdatingTo update your existing installation of Alliance Fleet first enable your virtual environment.Then run the following commands from your AA project directory (the one that containsmanage.py).pipinstall-Uaa-fleetpythonmanage.pymigratepythonmanage.pycollectstaticFinally restart your AA supervisor services.PermissionsThis is an overview of all permissions used by this app:NamePurposeCodeCan add / manage fleetsLet a user create and update fleet informationmanageCan access this appEnabling the app for a user. This permission should be enabled for everyone who is allowed to use the app (e.g. Member state)fleet_access
Package: aa-fleetfinder
AA Fleet FinderControl access to your fleets through Alliance Auth.AA Fleet FinderInstallationStep 1: Install the PackageStep 2: Configure Alliance AuthStep 3: Add the Scheduled TaskStep 4: Finalizing the InstallationStep 4: Setup PermissionsChangelogTranslation StatusContributingInstallationStep 1: Install the PackageMake sure you're in the virtual environment (venv) of your Alliance Auth installation Then install the latest release directly from PyPi.pipinstallaa-fleetfinderStep 2: Configure Alliance AuthThis is fairly simple, just add the following to theINSTALLED_APPSof yourlocal.pyConfigure your AA settings (local.py) as follows:Add"fleetfinder",toINSTALLED_APPSStep 3: Add the Scheduled TaskTo set up the scheduled task, add the following code to yourlocal.py:# AA Fleetfinder - https://github.com/ppfeufer/aa-fleetfinderif"fleetfinder"inINSTALLED_APPS:CELERYBEAT_SCHEDULE["fleetfinder_check_fleet_adverts"]={"task":"fleetfinder.tasks.check_fleet_adverts","schedule":crontab(minute="*/1"),}Step 4: Finalizing the InstallationRun static files collection and migrationspythonmanage.pycollectstatic
pythonmanage.pymigrateStep 4: Setup PermissionsNow it's time to set up access permissions for your new Fleetfinder module.IDDescriptionNotesaccess_fleetfinderCan access the Fleetfinder moduleYour line members should have this permission, together with everyone you want to have access to he module.manage_fleetsCan manage fleetsEveryone with this permission can open and edit fleetsChangelogSeeCHANGELOG.mdTranslation StatusDo you want to help translate this app into your language or improve the existing
translation? -Join our team of translators!ContributingYou want to contribute to this project? That's cool!Please make sure to read theContribution Guidelines.(I promise, it's not much, just some basics)
Package: aafragpy
aafragpyPython implementation of secondary particle production model AAFrag (based on QGSJEt-II-04m). The code is modified after the original AAFrag code written on Fortran [1].This package allows to quickly reconstruct the differential cross-sections of secondary gammas, leptons, and hadrons producing in a result of hadronic interaction between primary hadrons and different targets.The package allows to calculate the spectrum of products knowing the spectra of primary particles and the composition of the target in the wide energy range from hundreds of MeV to EeVs.Additional consideration of low-energy nuclear interactions is also possible using Kamae et al. 2006 [2] and Kafexhiu et al. 2014 [3] codes.InstallationThe package is easy to install using pip:pip install aafragpyInteractive TutorialTutorial of package usage is given in interactive Jupiter Notebook.You can also get started quickly using cloud serviceBinderto run the tutorial in
your web browser within a remote server:Comments are welcome!If you are using aafragpy, please cite us as:S. Koldobskiy, M. Kachelrieß, A. Lskavyan, A. Neronov, S. Ostapchenko, and D. V. Semikoz, “Energy spectra of secondaries in proton-proton interactions,”Phys. Rev. D, vol. 104, no. 12, p. 123027, 2021,arXiv:2110.00496.References:[1] M. Kachelrieß, I. V. Moskalenko, and S. Ostapchenko, “AAfrag: Interpolation routines for Monte Carlo results on secondary production in proton-proton, proton-nucleus and nucleus-nucleus interactions,”Comput. Phys. Commun., vol. 245, p. 106846, 2019.[2] T. Kamae, N. Karlsson, T. Mizuno, T. Abe, and T. Koi, “Parameterization of γ, e+-, and Neutrino Spectra Produced by p-p Interaction in Astronomical Environments,”Astrophys. J., vol. 647, no. 1, pp. 692–708, 2006.[3] E. Kafexhiu, F. Aharonian, A. M. Taylor, and G. S. Vila, “Parametrization of gamma-ray production cross-sections for pp interactions in a broad proton energy range from the kinematic threshold to PeV energies,”Phys. Rev. D, vol. 90, no. 12, pp. 1–19, 2014.