Saravanan666/pypi-org huggingface dataset:
Package: ausfin
Australian Finance ScrapersThis repository provides a number of scrapers which connect to various Australian financial
institutions to get the current account balance. Available scrapers are:28 DegreesAcornsBTCMarketsCommbank (Bank)Commbank (Shares)ING DirectRatesetterSuncorp Bank (Bank)Suncorp Bank (Shares)UbankUnisuperPrerequisitesPython 3.6Google ChromeInstallationInstall Chrome Driver (https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver)Install this package withpip install -e .UsageBalanceRun as follows:ausfinbalance[source]-u[username]-p[password]eg.ausfinbalanceacorns-uusername-ppasswordSource must be one of:28degrees-creditacorns-investmentbtcmarkets-investmentcommbank-bankcommbank-investmenting-bankratesetter-investmentsuncorpbank-banksuncorpbank-superubank-bankunisuper-superNet WorthSave a config file in the format, for example asconfig.json:{"accounts":[{"source":"28degrees-credit","username":"ausername","password":"apassword"},{"source":"anothersource","username":"adifferentusername","password":"adifferentpassword"}]}Then:ausfinnet-worth-cconfig.json
Package: auslfe.formonline.content
IntroductionA simple Page-like content type for Plone, to be used withauslfe.formonline.pfgadapterIt provides two possible profiles:A basic ones (”Form Online: contents configuration”), that simply provide proper interface and workflow
for use the “Form Online Adapter”.An more complete ones (“Form Online: include FormOnline type”) will also register a new
content type that automatically use the proper workflow.This product also include the complete notification by e-mail system of the workflow.CreditsDeveloped with the support of:Azienda USL FerraraS. Anna Hospital, FerraraAll of them supports thePloneGov initiative.AuthorsThis product was developed by RedTurtle Technology team.Changelog0.8.1 (2012-10-03)fixed incomplete translations for the new workflow [keul]0.8.0 (2012-09-17)a new workflow has been added (simple workflow) [nicola.senno]0.7.0 (2012-07-12)fix translation of mail_text_rejected, missed literal block [fdelia]fix error with comment “Literal block expected; none found” in notification email [fdelia]changed sendNotificationMail for get subject and text of email from the fields of FormOnlineAdapter [fdelia]hide this from quickinstaller tool [keul]0.6.0 (2012-02-15)fixed e-mail layout [keul]when a workflow comment is given, it’s added to the response e-mail
when rejecting it [keul]0.5.1 (2012-01-20)fixed error while retrieving e-mail [keul]Generic Setup profile version was not updated [keul]0.5.0 (2012-01-20)downgraded to debug level the print of token URL message (when used) [keul]fixed workflow’s worklist with right state id (if anybody still using it) [keul]fixed workflow reject/retract transitions [keul]the owner of the form is notified when the form is accepted and rejected [keul]supported notification also for anonymous submitters [keul]0.4.0 (2012-01-11)fixed typo in translations [keul]added a soft dependency onauslfe.formonline.tokenaccess[keul]0.3.0 (2011-12-13)First pubic releaseadded support for “Site Administrator” role
(thisnotmean that we tested this on Plone 4.1) yet [keul]removed CMF skins directory (having it only for customize thegetNotAddableTypesscript was not a good idea [keul]splitted the GS profile in two, a default core ones and another ones for register also
the Page-like content. In this way a use couldnotuse the FormOnline content [keul]FormOnline content set as not searchable and not shown in navigation [keul]removed the useless FormOnline view, transforming it to a viewlet registered for all
content types marked asIFormOnline[keul]0.2.0 (2011-05-06)enabled versioning [keul]changes to the content workflow [keul]i18n fixes [keul]some workflow changes [keul]FormOnline content has its own view [keul]added warning messages to the FormOnline view [keul]0.1.0 (2010-07-19)Initial release [fdelia]
Package: auslfe.formonline.tokenaccess
IntroductionEnable anonymous use ofauslfe.formonline.pfgadapterfeatures using e-mail containing a secret token.
Token feature came fromcollective.powertokensuite.How to installSimply addauslfe.formonline.tokenaccessto your buildout:[instance]
recipe = plone.recipe.zope2instance
...
eggs =
    Plone
    ...
    auslfe.formonline.pfgadapter
    auslfe.formonline.tokenaccessHow to useauslfe.formonline.pfgadapter(version 0.4 or better) already check your Zope installation looking forauslfe.formonline.tokenaccess. If it is found you’ll get some new features:The “Overseer e-mail” can also not be an internal e-mail (a new check option in the PFG adapter
“Overseer must be a site member” will be found).An external overseer can now access a special site’s page, where he can see the sent form and approve it.The overseer will receive the common confirmation e-mail with a special link that show the document (even if
in not accessible state). Note thatthis link is permanently valid.
From this view other two links are shown, one for approve and another for reject the document.Please notethat the e-mail sent to the external overseer is a clean way to bypass Plone security. If
this e-mail and data inside is used by a malicous user, he will be able to see reserver data and approve it.CreditsDeveloped with the support ofS. Anna Hospital, Ferrara;
S. Anna Hospital supports thePloneGov initiative.AuthorsThis product was developed by RedTurtle Technology team.Changelog0.3.1 (2012-02-15)bad dependency of last version fixed0.3.0 (2012-02-15)changed approvation viewlet layout: now a form is given to the user [keul]you are forced to give a comment when rejecting a request [keul]0.2.0 (2012-01-20)a view section were duplicated [keul]the token view can now also reject the content [keul]0.1.1 (2012-01-15)fixed disabling columns on Plone 4 [keul]internal changes due to changes done inauslfe.formonline.tokenaccess0.4.1 [keul]0.1.0 (2012-01-11)Initial release
Package: aus-local-councils
aus-local-councilsThis Python packagage returns lists of all local councils in Australia, sorted by state/territory.A list of all Australian local councils can be found in aus_councils.jsonSetupInstall required packages withpip3:pip3 install -r requirements.txtUsageYou can get the list of councils for a jurisdiction like this (South Australia is used here for example purposes):importjsonimportaus_local_councils.sacouncil_list=aus_local_councils.sa.councilsprint(json.dumps(council_list,indent=2))This would print out a formatted list of all the local councils in South Australia.
Package: ausmints_calculator
CalculatorThis calculator is a library than can be used for simple arithmetic operations.
A calculator object should be created from the Calculator class defined inside the module. The object will have a "memory" attribute which will be operated upon and returned by the Calculator methods.InstallationUse the package managerpipto install ausmints_calculator.pipinstallausmints_calculatorUsagefromausmints_calculatorimportCalculatorcalc=Calculator()calc.memory# returns 0calc.add(5)# returns 5calc.squared()# returns 25calc.reset_memory()# returns 0For more extensive examples see thetestfileDockerA Dockerfile is added that can be used to create python 3.8 environment with the calculator module already installedRoadmapA functionality that saves and remembers the "memory" variable between sessions could be created.Functionality that allows the user to save various results into a different memory variable (maybe a dict type). These values could be later accessed and set as active.ChangelogLicenseMIT
Package: auspex
Auspex, the automated system for python-based experiments, is a framework for performing laboratory measurements. Auspex was developed by a group that primarily performs measurements on superconducting qubits and magnetic memory elements, but its underpinnings are sufficiently general to allow for extension to arbitrary equipment and experiments. Using several layers of abstraction, we attempt to meet the following goals:Instrument drivers should be easy to write.Measurement code should be flexible and reusable.Data acquisition and processing should be pipelined, asynchronous, and reconfigurable.Experiments should be adaptive, not always pre-defined.FeaturesEasy driver specification using metaprogramming.Fast multiprocessing pipeline for digitizer (or other) data.Tight integration with QGL for quantum experiment definition.Qubit calibration routines.Run within Jupyter notebooks.Easy pipeline specification and graphical display of pipelines.Separate zmq/matplotlib plotting clients for local or remote use.Custom high-performance file format (numpy mmaps) with full data axis descriptors and metadata.Regrettably in-notebook plotting is difficult to implement for more than simple 1D sweeps. Notebook caching and
javascript interface limitations make returning large amounts of data impractical. Final plots
may be displayedDocumentationFull documentation can be found atreadthedocs.FundingThis software is based in part upon work supported by the Office of the Director
of National Intelligence (ODNI), Intelligence Advanced Research Projects
Activity (IARPA), via contract W911NF-14-C0089 and Army Research Office contract
No. W911NF-14-1-0114. The views and conclusions contained herein are those of
the authors and should not be interpreted as necessarily representing the
official policies or endorsements, either expressed or implied, of the ODNI,
IARPA, or the U.S. Government.
Package: auspostgen
Australia Post Barcode GeneratorA simple barcode generator currently only supporting x64 linux written for python.This library makes use of the provided C library provided by Australia Post to generate the barcode value
and Pillow is used to generate the barcode image. This is quite fast approx 10000 unique barcode images generated in 30 seconds.Installationpython-mpipinstallauspostgenUsagefromauspostgenimportbuild_barcode,write_barcode_to_image_filebarcode=build_barcode('11','59564391')write_barcode_to_image_file(barcode,'./my-barcode37.png')barcode=build_barcode('59','59564391','11ABA')write_barcode_to_image_file(barcode,'./my-barcode52.png')barcode=build_barcode('62','59564391','11ABA11ABA')write_barcode_to_image_file(barcode,'./my-barcode67.png',dpi=(600,600))
Package: aussieaddress
AusAddressMatchAddress Matching for Australian Addresses. Compare Address A to Address B.FunctionalityMatch postcodeMatch state (abbreviated and non abbreviated)Account for abbreviations ieStreetandStRemove "noise" ieUnittowerauRemove punctuationUsagefrom aussieaddress import Address


address1 = "U54 Loggins St, Kennytown, QLD 4123"
address2 = "U54 Loggins Street Kennytown 4123 Queensland"

# Initalise the Address Class
matcher = Address(address1=address1, address2=address2)

# Run Matching
matcher.run()

result = matcher.matched

# Show all options
print(matcher.__str__())OptionsYou can turn off postcode_check and state_check functionality, on by defaultmatcher.postcode_check = False
matcher.state_check = FalseYou can also set the match threshold which by default is 75matcher.threshold = 80Updaing Replacements and RemovalsTo check the current removalsmatcher.removalsAdding a new removalmatcher.removals = "Plank"To check the current replacementsmatcher.replacementsAdding a new replacementmatcher.replacements = ["Stroad", "strd"]Note: with replacements each array is checked individually, with index 0 becoming the replacement valueIe.["Street", "st"]with123 test stwill become123 test streetAuthorsJack Jorgensen
Package: aussiebb
What is this?This is a simple python API for the Aussie Broadband customer portal. There's
a lot more that can be done with the portal than what I have implemented here,
but this was enough to get me what I wanted for now (graphing for usage in
prometheus and grafana).Feel free to drop me a line atmikal@stillhq.comif you want to help expand
this.InstallationYou should run this in a venv. Do something like this:$ python3 -m venv ~/virtualenvs/aussiebb
$ . ~/virtualenvs/aussiebb/bin/activate
$ pip install -U pip
$ pip install -U -r requirements.txtUsageA usage example in example.py, but here are the high points. First, install aussiebb from pypi:$ pip install aussiebbThis code uses environment variables to get your username and password, so set those up:$ export AUSSIE_USERNAME="fred"
$ export AUSSIE_PASSWORD="banana"Now run the example:$ python examples/example.pyYou should get output like this (for an example service of course):$ python3 example.py 
You have 0 tickets open
You have 2 orders

+------+--------+---------------+--------------------+-------------+-----------------+--------------------+
| Type |   ID   | Download (MB) |     Remaining      | Upload (MB) | Current Outages |      Bolt ons      |
+------+--------+---------------+--------------------+-------------+-----------------+--------------------+
| NBN  | 451493 |     450486    | Unlimited, 24 days |    22537    |        0        | Static IP ($10.00) |
+------+--------+---------------+--------------------+-------------+-----------------+--------------------+
Package: austere3d
AutostereogramAn autostereogram creates the visual illusion of a three-dimensional
scene from a single two-dimensional image [1]. The packageaustere3d(AUtoSTEREogram) creates such images based on two input files (a
seamless wallpaper and a depth map):Dependencies:The packageaustere3dneeds the python modulesmatplotlib,numpy,PIL,scipy,tkFileDialog,Tkinter,tkMessageBox, andttk.Installation:First, install the package with pip:pip3 install austere3dNext, find the location where the installed files are:pip3 show -f austere3dThe location could be something like$HOME/.local/lib/python3.6/site-packages/austere3d. Copy the wholeaustere3ddirectory to a place where you have read and write access.Usage:This package provides three possibilities to create autostereograms: a
command line tool, a GUI, and a GIMP plugin.Command line version:Run the commandaustere.pyto create an autostereogram from the wallpaperquilt.pngand the
depthmapcube.png. The output will be saved in theoutputsubdirectory.Change the definitions ofwallpaperfileanddepthmapfilein the
python script to create other pictures. In addition, the values ofd_invert,d_factorandsymmetrycan be used to change the created
images.GUI:Run the commandaustere-gui.pyto start the GUI. Select one of the wallpaper images from thewallpaperdirectory and one of the depthmap images from thedepthmapdirectory.GIMP plugin:Copy the fileaustere-plugin.pyinto your GIMP plug-ins directory
(e.g., $HOME/.gimp-2.8/plug-ins).Start GIMP. Open a wallpaper image (must be RGB mode without
transparency, i.e., no alpha channel). Open a depthmap image (must be
Grayscale mode). Then select the new itemAutostereogram...in theFilters/Rendermenu.The GIMP plug-in is slower than the command line version or the GUI.Implementation:The algorithm used byaustere3dis based on an article in the German
edition of Scientific American from 1995 [2].See depthmap/README for more information about depth maps.See wallpaper/README for more information about seamless wallpapers.References:[1] Wikipedia. Autostereogramhttps://en.wikipedia.org/wiki/Autostereogram[2] M. Simeth and R. Sander. Mathematische Unterhaltungen: Der kleine
Hobbit und das Autostereogramm. Spektrum der Wissenschaft, Jan.,
10-15 (1995)http://www.spektrum.de/magazin/der-kleine-hobbit-und-das-autostereogramm/822061
Package: australianscalendar
🇯🇵澳洲节假日判断某年某月某一天是不是工作日/节假日。
支持 2023~2024年安装pip install australianscalendar升级pip install -U australianscalendar澳洲的公众假期无调休，假期预测相比较很容易样例importdatetime# 判断 2023年1月1号 是不是节假日fromaustralians_calendarimportis_holiday,is_workdaynew_year=datetime.date(2023,1,1)assertis_workday(new_year)isFalseassertis_holiday(new_year)isTrue# 或者在判断的同时，获取节日名importaustralians_calendarascalendar# 也可以这样 importon_holiday,holiday_name=calendar.get_holiday_detail(new_year)asserton_holidayisTrueassertholiday_name==calendar.Holiday.new_years_day.value其它语言假如你没法使用Python，
你也可以转译现成的常量文件来获取最全的节假日安排表。贡献代码Fork + Clone 项目到本地修改节假日定义执行脚本自动生成常量文件提交PR致谢本项目参考了LKI的chinese-calendar,感谢开发者的付出
Package: ausweather
ausweatherDownload Australian weather data from theBureau of
MeteorologyviaSILOusing PythonInstallationInstall from the command line:python-mpipinstall-UausweatherExample of how to useIn a Python interpreter session:>>>importausweatherTo use this package to download annual rainfall data for Kent Town, first you
need to find the station number using the BoMWeather Station
Directory. Then you can use thefetch_bom_station_from_silo(station_number, email_address)function to
return a dictionary:>>>data=ausweather.fetch_bom_station_from_silo(23090,'kinverarity@hotmail.com')station#: 23090 name: ADELAIDE (KENT TOWN) title: 23090 ADELAIDE (KENT TOWN) (fetched from SILO on 2020-03-04 16:23:26.395696)>>>data.keys()dict_keys(['silo_returned','station_no','station_name','title','df','annual','srn'])The data is stored in this dictionary under the key "df":>>>data['df'].info()<class'pandas.core.frame.DataFrame'>RangeIndex:25677entries,1to25677Datacolumns(total28columns):Date25677non-nulldatetime64[ns]Day25677non-nullint32Date225677non-nullobjectT.Max25677non-nullfloat64Smx25677non-nullint32T.Min25677non-nullfloat64Smn25677non-nullint32Rain25677non-nullfloat64Srn25677non-nullint32Evap25677non-nullfloat64Sev25677non-nullobjectRadn25677non-nullfloat64Ssl25677non-nullint32VP25677non-nullfloat64Svp25677non-nullint32RHmaxT25677non-nullfloat64RHminT25677non-nullfloat64FAO5625677non-nullfloat64Mlake25677non-nullfloat64Mpot25677non-nullfloat64Mact25677non-nullfloat64Mwet25677non-nullfloat64Span25677non-nullfloat64Ssp25677non-nullint32EvSp25677non-nullfloat64Ses25677non-nullint32MSLPres25677non-nullfloat64Sp25677non-nullint32dtypes:datetime64[ns](1),float64(16),int32(9),object(2)memoryusage:4.6+MBTo see annual rainfall, you can group-by thedt.yearaccessor of the "Date"
column:>>>df=data["df"]>>>df.groupby(df.Date.dt.year).Rain.sum()Date1950426.91951677.91952584.91953601.01954439.6...2016820.82017536.22018429.82019376.32020101.6Name:Rain,Length:71,dtype:float64LicenseReleased under theMIT License.Version historyVersion 0.2.1 (3 Mar 2020)Fix bug for whitespace in BoM station nameVersion 0.2.0 (3 Mar 2020)Update, many changes.Version 0.1.0 (11 Feb 2020)Initial release
Package: autest
Reusable Gold testing system, or autest for short, is a testing system targeted toward gold file, command line process testing.GoalsEasy to write and add testsExtensible system to allow:
* Adding new functionality for testing your application
* Batch commands as a new function to make it easier to write tests
* Define custom report outputsPrecise as possible error messages to make it easy to see what is wrong fastSandbox to make it easy to see what failed and reproduce out of test systemFlexible gold file syntax to make it easier to ignore text that is not importantRun on python 2 or 3Non-GoalsThe Reusable Gold testing system is not about making another unit testing framework.
Package: auth0_fastapi
Auth0 FastAPIThis library provides a simple and elegant way to validateAuth0tokens in your API and keep your endpoints protected.Benefits of using this library:Token validation, ensure the access tokens are properly structured, and signed.Support of scopes for permission based authorization.Automatic swagger UI support, just enter your token and test your endpoints.Super easy to use.Installationpip install auth0_fastapiExample usagefromfastapiimportFastAPI,Depends,Securityfromauth0_fastapiimportAuth0JWTBearerTokenValidatorauth=Auth0JWTBearerTokenValidator(domain="<your-auth0-domain>",audience="<your-auth0-api-audience>",issuer="<your-auth0-issuer>")app=FastAPI()@app.get("/public")defget_public():return{"message":"Anyone can access"}@app.get("/protected",dependencies=[Security(auth.get_authenticated_user)])defget_protected():return{"message":"Any authenticated user can access"}@app.get("/secured",dependencies=[Security(auth.get_authenticated_user,scopes=['read:secure'])])defget_secured():return{"message":"Only users with permission 'read:secure' can access"}@app.get("/get-token-payload")defget_token_payload(token_payload=Security(auth.get_authenticated_user)):return{"message":token_payload}DisclaimerThis is not an official plugin, it is however used in production by my own applications and follows best practices.Please report any issues you encounter, happy coding!
Package: auth0-jwt-validator
Python Auth0 JWT ValidatorDocumentation:https://immersa-co.github.io/python-auth0-jwt-validatorSource Code:https://github.com/immersa-co/python-auth0-jwt-validatorGetting StartedThe package is framework agnostic, so we need to implement it on each framework
since each framework handles the requests and responses in different ways.RequirementsPython 3.8+InstallationFrom PyPipip install auth0-jwt-validatorExamplesFlask ExamplefromfunctoolsimportwrapsfromflaskimportFlask,request,jsonifyfromauth0_jwt_validatorimport(get_token,AccessTokenVerifier,MissingClaimError,InvalidClaimError,)app=Flask(__name__)auth0_jwks_uri="https://<auth0-tenant>.us.auth0.com/.well-known/jwks.json"issuer="https://<auth0-tenant>.us.auth0.com/"audience="https://<auth0-tenant>.us.auth0.com/api/v2/"access_token_verifier=AccessTokenVerifier(auth0_jwks_uri,issuer,audience)@app.errorhandler(MissingClaimError)defmissing_claim_error_handler(e:MissingClaimError):returne.description,401@app.errorhandler(InvalidClaimError)defmissing_claim_error_handler(e:InvalidClaimError):returne.description,401defget_bearer_token(authorization:str|None)->str|None:returnget_token(authorization)defget_access_token_payload(bearer_token:str|None)->dict:returnaccess_token_verifier.verify(bearer_token)defroute_get_access_token_payload(f):@wraps(f)def_route_get_access_token_payload(*args,**kwargs):authorization=request.headers.get("authorization")bearer_token=get_bearer_token(authorization)access_token_payload=get_access_token_payload(bearer_token)returnf(*args,**kwargs,access_token_payload=access_token_payload)return_route_get_access_token_payload@app.get("/")@route_get_access_token_payloaddefindex(access_token_payload:dict):returnjsonify({"access_token_payload":access_token_payload})Fast API ExamplefromfastapiimportFastAPI,Header,Request,HTTPException,Dependsfromfastapi.exception_handlersimporthttp_exception_handlerfromauth0_jwt_validatorimport(get_token,AccessTokenVerifier,MissingClaimError,InvalidClaimError,)app=FastAPI()auth0_jwks_uri="https://<auth0-tenant>.us.auth0.com/.well-known/jwks.json"issuer="https://<auth0-tenant>.us.auth0.com/"audience="https://<auth0-tenant>.us.auth0.com/api/v2/"access_token_verifier=AccessTokenVerifier(auth0_jwks_uri,issuer,audience)@app.exception_handler(MissingClaimError)defmissing_claim_error_handler(request:Request,exc:MissingClaimError):returnawaithttp_exception_handler(request,HTTPException(status_code=401,detail=exc.description))@app.exception_handler(InvalidClaimError)defmissing_claim_error_handler(request:Request,exc:InvalidClaimError):returnawaithttp_exception_handler(request,HTTPException(status_code=401,detail=exc.description))asyncdefget_bearer_token(authorization:str|None=Header(default=None),)->str|None:returnget_token(authorization)asyncdefget_access_token_payload(bearer_token:str|None=Depends(get_bearer_token),)->dict:returnaccess_token_verifier.verify(bearer_token)@app.get("/")asyncdefindex(access_token_payload:dict=Depends(get_access_token_payload)):return{"access_token_payload":access_token_payload}
Package: auth0rization
auth0rizationA library to provide simple methods to validate and use Auth0 JWT tokens.Installationpip install auth0rizationExample usageimport json
import auth0rization

access_token = "<access_token>"

validator = auth0rization.Validator(
   domain="<auth0_domain>",
   audience="<audience>"
)

access = validator.validate(access_token, "read:example")

profile = access.user_profile()

print(json.dumps(profile, indent=2))
Package: auth1api
auth1apiauth1api provides methods to access your Auth1 instance.Example Usage:fromauth1apiimportAuth1Clientclient=Auth1Client("http://localhost:8080")client.register("username","hello@world.com","foobar")token,exp_time=client.login("username",None,None,"foobar")ifclient.check_auth_token(token):print("Login success!")else:print("Login failure.")