Saravanan666/pypi-org huggingface dataset:
Package: ukbaccessrepo
UKB_Wrapper_RepoThis library has been designed to provide convenient access to UKB dataset to users of PSC and Openmind7 clusters by leveraging Datalad package. Datalad allows its users to store large datasets in a distributed manner and faciliate easier collaboration. Currently the repo has modules dedicated to three types of data stored within the UKB dataset namely Scalar, Genetic and Bulk data types. The library also serves as a directory for all the unique categories and field ids which are part of UKB dataset.Datalad is designed as a tool to version control large datasets in a manner quite similar to Git but limited to either a single network, HPC cluster. This library has been designed to help the end user make use the principles of datalad to access data stored on a different cluster and even with limited knowledge of how datalad works.Additionally this repository also houses the notebook files related to this project showcasing exploratory data analysis done on multiple categories.The modules are currently designed to give access to the necessary data through the use of maximum of three-four lines of code.Import relevant modules and initilize objectsfrom UKBRepo.UKBRepo import module_scalar_data_handler as scalar_module

scalar_handler_object=scalar_module.scalar_data_handler()Pick the main category to which your datatype belongs (T1_Images/Freesurfer/Diet/Smoking)scalar_handler_object.display_all_ukb_categories()Fetch relevant field for that Categorybulk_handler_object.get_field_ids_for_category(Category_Name)Retrive the list of subjects who have those particular field idsbulk_handler_object.get_subject_list_field_ids(Field_Id_List)Retrive relevant data for the subjectsbulk_handler_object.get_data_bulk(Field_Id,subject_id)After executing the funtion of data retrival,the output user receives depends upon the type of data bieng requested. In case of scalar data the user will recive the actual data in the output whereas in case of bulk data it will be the path where the fetched bulk data files have been stored.RequirementsDataladGit-annexPandasNumpyRefrenceshttp://handbook.datalad.org/en/latest/
Package: ukb-api
UKB_APIThis library has been designed to provide convenient access to UKB dataset to users of PSC and Openmind7 clusters by leveraging Datalad package. Datalad allows its users to store large datasets in a distributed manner and faciliate easier collaboration. Currently the repo has modules dedicated to three types of data stored within the UKB dataset namely Scalar, Genetic and Bulk data types. The library also serves as a directory for all the unique categories and field ids which are part of UKB dataset.Datalad is designed as a tool to version control large datasets in a manner quite similar to Git but limited to either a single network, HPC cluster. This library has been designed to help the end user make use the principles of datalad to access data stored on a different cluster and even with limited knowledge of how datalad works.Additionally this repository also houses the notebook files related to this project showcasing exploratory data analysis done on multiple categories.The modules are currently designed to give access to the necessary data through the use of maximum of three-four lines of code.Documentation[Documentation for this repo can be found here]Installationpip install ukb-api==0.370Import relevant modules and initilize objectsfrom UKBRepo.UKBRepo import module_scalar_data_handler as scalar_module

scalar_handler_object=scalar_module.scalar_data_handler()Pick the main category to which your datatype belongs (T1_Images/Freesurfer/Diet/Smoking)scalar_handler_object.display_all_ukb_categories()Fetch relevant field for that Categorybulk_handler_object.get_field_ids_for_category(Category_Name)Retrive the list of subjects who have those particular field idsbulk_handler_object.get_subject_list_field_ids(Field_Id_List)Retrive relevant data for the subjectsbulk_handler_object.get_data_bulk(Field_Id,subject_id)After executing the funtion of data retrival,the output user receives depends upon the type of data bieng requested. In case of scalar data the user will recive the actual data in the output whereas in case of bulk data it will be the path where the fetched bulk data files have been stored.RequirementsDataladGit-annexPandasNumpyRefrenceshttp://handbook.datalad.org/en/latest/
Package: ukbiobank-tools
All rights reserved.Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.Description: UNKNOWN
Platform: UNKNOWN
Provides-Extra: docs
Package: ukb-loader
UK Biobank data loaderThis repository provides a library and set of utilities for the efficient loading of phenotype and genotype data from theUK Biobank.Features include:Loading quantitative and categorical phenotypes, includeding self-reported phenotypes and phenotypes based onICD-10 disease codes.Fast parallelized loading that leverages chunked and compressedZarr arrays.Utilities for splitting the dataset samples randomly, or based on a predefined structure.UsageFirst, the UKB dataset needs to be converted into the Zarr format with the desired test/train/validation split. For this, use the providedconversion script.For examples on loading various types of phenotypes, seethis example notebook.
Package: ukboards
UK BoardsQuery UK company and charity board networks.Free software: MIT LicenseDocumentation:https://ukboards.readthedocs.io.FeaturesCommand line interface for querying JSON data from the Companies House APISupport forhttps://developer.companieshouse.gov.uk/api/docs/Support forhttps://apps.charitycommission.gov.uk/Showcharity/API/SearchCharitiesV1/Docs/DevGuideHome.aspxOption to load keys for both APIs from a local.envfileSupport for loading company and charity IDs from a CSV fileAlpha support for exporting networkx json files of board interlock structuresFor ContributorsPlease note that this repository is participating in a study into sustainability of open source projects. Data will be gathered about this repository for approximately the next 12 months, starting from 13 May 2021.Data collected will include number of contributors, number ofPull Requests(PRs), time taken to close/merge these PRs, and issues closed.For more information, please visitthe informational pageor download theparticipant information sheet.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.5.3 (2021-04-09)Reconfigure travis-ci0.5.2 (2021-04-09)Add Zenodo badge to READMERemove remaining references to uk-boardsUpdate dependencies0.5.1 (2021-03-08)Add utility for attaching auxilary data to nodes0.5.0 (2020-12-20)Add classes for joint queries of companies and charitiesFix issues with Companies House paginationChange library name from uk-boards to ukboards following PEP-8Alpha-level customisation of networkx JSON network formatOptions for adding geospatial data from postcodes.io0.4.0 (2020-01-07)Refactor Companies House queries into separate query functionsAdd a CompanyNetworkClient class for cacheable network queries0.3.0 (2019-12-18)Add Charity Commission API querying via zeep libraryInclude Charity Commision API specificationRefactor command line interface0.2.0 (2019-11-18)First use of bump2version0.1.4 (2019-11-18)Fix PyPI versioning0.1.3 (2019-11-18)Release on PyPI0.1.2 (2019-11-17)Enable basic command line query of Companies HouseEnable codecov0.1.1 (2019-11-13)Improve function and variable namesExpand docstring of companies_house_queryExpand type hintingpytest-remotedata plugin test for optional real query test0.1.0 (2019-11-11)First release on PyPI.Basic tests of querying from companies house
Package: uk-charts-api
UK-Charts-APIA repo for the refactor of a set of private scripts that build a sqlite database of the metadata for all Official UK Chart entriesThe code here is to be used to scrape theUK Official Top 40, then get the metadata from deezer and then downloaded if the user provides a way to do this.A working example that simply downloads (if downloader provided) all tracks from the UK Charts from its beginning and writes their metadata to a Sqlite database can be found atexample.py.
Package: uk-covid19
Software Development Kit (SDK) for PythonThis is a Python SDK for the COVID-19 API, as published by Public Health England
onCoronavirus (COVID-19) in the UK.DocumentationComprehensive documentations and examples for this library is available on thedocumentations website.SDK for other languagesSimilar libraries are also available forJavaScript,R,.Net, andElixir.The APIThe API supplies the latest data for the COVID-19 outbreak in the United Kingdom. The
endpoint for the data provided using this SDK is:https://api.coronavirus.data.gov.uk/v1/dataSee theDevelopers Guidefor additional information on the API and see a list of
latest metrics.InstallationPython 3.7+ is required to install and use this library.To install, please run:pipinstalluk-covid19You may install the library for a specific version of Python as follows:python-mpipinstalluk-covid19You can simply replacepythonwith a specific version for which you wish to install
the library - e.g.python3orpython3.8.Developed and maintained byPublic Health England.Copyright (c) 2020, Public Health England.
Package: ukds
ukdsA Python package for working with datasets from the UK Data Service (UKDS).Any problems?Please raise an Issue on GitHubTo install:pip install ukdsQuick Demo(This demonstration uses the following dataset:Gershuny, J., Sullivan, O. (2017). United Kingdom Time Use Survey, 2014-2015. Centre for Time Use Research, University of Oxford. [data collection]. UK Data Service. SN: 8128,http://doi.org/10.5255/UKDA-SN-8128-1)The following code reads a UK Data Service .tab data file and its associated .rtf data dictionary file, and converts them to a Pandas DataFrame:importukdsdt=UKDS.DataTable(fp_tab=r'.../uktus15_household.tab'fp_dd=r'.../uktus15_household_ukda_data_dictionary.rtf')df=dt.get_dataframe()The DataFrame looks like this:User GuideThe ukds package provides two classes:TheDataTableclassThe DataTable class converts a UKDS .tab data file and .rtf data dictionary file into a single Pandas DataFrame ready for further analysis.Importing the DataTable classfromukdsimportDataTableCreating an instance of DataTable and reading in the data file and the datadictionary fileEither:dt=DataTable()dt.read_tab(r'.../uktus15_household.tab')df.read_datadictionary(r'.../uktus15_household_ukda_data_dictionary.rtf')or:dt=DataTable(fp_tab=r'.../uktus15_household.tab',fp_dd=r'.../uktus15_household_ukda_data_dictionary.rtf')AttributesAs the files are read in, a number of attributes are populated. These are:dt.tab# a pandas.DataFrame objectdt.datadictionary# a ukds.DataDictionary objectget_dataframe methodThe methodget_dataframeis available which converts the information in thetabanddatadictionaryattributes into a new pandas DataFrame.dt=df.get_dataframe()See thedatatable_demo.ipynbJupyter Notebook in the 'demo' section for more information.TheDataDictionaryclassTheDataDictionaryclass provides access to UKDS .rtf data dictionary files.Importing the DataDictionary classfromukdsimportDataDictionaryCreating an instance of DataTable and reading in the data file and the datadictionary fileEither:dd=DataDictionary()dd.read_rtf(r'.../uktus15_household_ukda_data_dictionary.rtf')or:dd=DataDictionary(fp_dd=r'.../uktus15_household_ukda_data_dictionary.rtf')AttributesAs the file are read in, a number of attributes are populated. These are:dt.rtf# a string of the raw contents of the rtf filedt.variablelist# a list of dictionaries with the variable informationget_variable_dict methodReturns a dictionary with the information for a single variable. For example:serial=dd.get_variable_dict('serial')returns:{'pos':'1','variable':'serial','variable_label':'Household number','variable_type':'numeric','SPSS_measurement_level':'SCALE','SPSS_user_missing_values':'','value_labels':''}get_variable_names methodReturns a list of the variable names:dd.get_variable_names()See thedatadictionary_demo.ipynbJupyter Notebook in the 'demo' section for more examples based on this class.
Package: uk-election-timetables
uk-election-timetablesThis library encapsulates timetable legislation for elections run in the United Kingdom and its devolved administrations.The election timetable varies based on:Type of Post- Parliamentary, Local, devolved Government, etc.Country- The United Kingdom has up to four different rules for the same type of election, one for each country.Calendar- each country has their own unique set of Bank Holidays.Usage (publishing of candidate lists)fromdatetimeimportdatefromuk_election_timetables.elections.uk_parliamentimportUKParliamentElectionelection=UKParliamentElection(date(2019,2,21))print(election.sopn_publish_date)# date(2019, 1, 25)Updating Bank Holiday DatesThis project checks daily for additions to the government bank holiday dataset athttps://www.gov.uk/bank-holidays.json. When an addition is identified in the .gov file, this project will automatically create a GitHub issue to update our local bank holiday dataset.To updatebank-holidays.jsonwith additions from the government supplied file, run the following within your venv:python manage_bank_holidays.py --updateDocumentationHosted by readthedocs athttps://uk-election-timetables.readthedocs.io/Installationpip install uk_election_timetablesTestpytestSupported Election TypesLocalUnited Kingdom ParliamentScottish ParliamentSenedd CymruNorthern Ireland AssemblyMayoralMayoral (London)Greater London AssemblyPolice and Crime commissioner
Package: uk-fuel-prices-api
UK Fuel PricesPull UK Fuel Price data from sources listedhere. Please note the data is not complete, and does not include pricing for every fuel station in the UK. More information is available at the link.InstallationThe package is available to install withpippipinstalluk-fuel-prices-apiExampleInitialiseImport the package, and retrieve price information.get_prices()should be called whenever you want to update the pricing data. Please bear in mind that at this time, most companies are only updating their data feeds every 24 hours.fromuk_fuel_prices_apiimportUKFuelPricesApiapi=UKFuelPricesApi();awaitapi.get_prices()SearchSearch for all stations matching valueawaitapi.search("searchstring")# Only return first 5 resultsawaitapi.search("searchstring",5)Site IDGet single Station by known site_idstation=awaitapi.get_site_id("siteid")NearestGet n stations nearest to lat lnt pointlat,lng=53.743175,-1.882085# Halifax Essonearest_stations=api.nearestN(lat,lng)Stations Within a Given RadiusGet all fuel stations within a radium (in km) of lat lng ptlat,lng=53.743175,-1.882085# Halifax Essoradius=5stations=api.stationsWithinRadius(lat,lng,radius)Sort Stations by PriceSort list of stations by price.Currentlyfuel_typeshould be"E10" (petrol)"E5" (petrol)"B7" (diesel)"SDV" (super-grade diesel)# Get some stationslat,lng=53.743175,-1.882085radius=10stations=api.stationsWithinRadius(lat,lng,radius)# Sort by E10 pricefuel_type="E10"sorted_stations=api.sortByPrice(stations,fuel_type)
Package: ukhotides
UKHO TidesThis package provides a client wrapper for theAdmiralty Tidal APIendpoints.Installationpip install ukhotidesAPI KeyTo call the API you will need an API key from the Admiralty Maritime Data Solutions developer portal. Followtheir guideon how to do so and select one of theUK Tidal APIproducts - theDiscoverytier is free (the paid APIs have not been tested for this package).UsagefromukhotidesimportUkhoTidesfromaiohttpimportClientSessionsession=ClientSession()client=UkhoTides(session,"<api_key>")# Get all stationsstations=awaitclient.async_get_stations()# Get stations with name filterstations=awaitclient.async_get_stations("StationName")# Get station by idstation=awaitclient.async_get_station("0001")# Get tidal events for station by idevents=awaitclient.async_get_tidal_events("0001")# Get 4 days of tidal events for station by idevents=awaitclient.async_get_tidal_events("0001",4)There are also several premium endpoints exposed, however these are built based on the documentation and have not been tested.### Premium API Endpoints ###### UNTESTED ###fromukhotidesimportUkhoTides,ApiLevelfromaiohttpimportClientSessionfromdatetimeimportdatetimesession=ClientSession()client=UkhoTides(session,"<api_key>",ApiLevel.Premium)# Get tidal events for a station between a given date rangestart_date=datetime(2020,1,1)end_date=datetime(2020,1,30)events=awaitclient.async_get_tidal_events_for_date_range("0001",start_date,end_date)# Get tide height for a station for a given datetimedate_time=datetime(2020,1,1)height=awaitclient.async_get_tidal_height("0001",date_time)# Get tide heights for a station between a given date range and at a given intervalinterval_in_minutes=60start_date=datetime(2020,1,1)end_date=datetime(2020,1,1,2)heights=awaitclient.async_get_tidal_heights("0001",start_date,end_date,interval_in_minutes)TODOBetter docs (sorry)Webhooks to automate distribution and versioning
Package: uking-saves
Parse and update BOTW saves in PythonThis is a simple library for parsing and updating BOTW save files in Python.I
did not write more than a couple lines of this code. It is taken almost wholly
from Mr. Cheeze'ssave.pyscript located on hisBOTW tools repo,
to be simply converted into a library (with permission).Simple usage examples:importuking_savessave_file=uking_saves.parse_file("blah/game_data.sav")//Parsethesavesave_file["MainField_WeaponDrop_1609063018"]=True//Setaflagvalueuking_saves.update_file("blah/game_data.sav",save_file)//Saveupdateddata
Package: uk-invitation-letter
UK visa invitation letter generatorWrites aUK Standard Visitorvisa invitation letter for you.RequirementsPython 3 with pipLaTeX with OpenType font support, e.g. XeLaTeXUsageInstall the package.pip3installuk-invitation-letterCreatedata.ymlconfig file.Example:inviter:!entityname:Kayleigh H Welchaddress:!addresslines:-75 Hertingfordbury Road-Newton NG13 8QY# UK auto-addedphone:"07758888305"email:noreply@temporary-mail.netemployer:!entityname:Jstory UK Ltdaddress:!addresslines:-89 Well Lane-Patterdale CA11 0LQembassy:!entityname:British Consulate General New Yorkaddress:!addresslines:-885 2nd Ave-New York-NY 10017-United Statesinvitee:!entityname:# <first name> [<other names>]+ <last name>, use `~` for a non-breaking space-Joseph Brodsky-Maria Sozzanipronoun:null# they/them/their by defaultrelationship:friendstrip:!triparrival_date:2020-01-01departure_date:2020-01-31reason:a short tripreturn_reason:nullreturn_country:the USfinancial_support:falseRun the generator.LATEX_BINARY=<pathtolatexbinary>uk-invitation-letterThe output will be saved tobuild/invitation.pdf.
Package: ukkonen
ukkonenImplementation of bounded Levenshtein distance (Ukkonen)portthis is a port ofukkonenfrom javascript to c++ / python via cffi.installationpipinstallukkonenwheels should be available on pypi in most casesapidistance(s1: str, s2: str, k: int) -> intcompute the edit distance, bounded byk>>>importukkonen>>>ukkonen.distance('hello','world',5)4>>>ukkonen.distance('hello','world',2)2
Package: ukkonen-rs
ukkonenImplementation of a bounded Levenshtein distance by Esko Ukkonen in "Algorithms for approximate string matching" in Rust, with Python bindings.The implementation is based on theJS implementation. You can find the license in theLICENSEfile.Installpipinstallukkonen-rsBuildFirst you should install Rust from rustup.rs.
Then, you can build a wheel for your platform and install it:pipinstallmaturin
maturinbuild--release--cargo-extra-args="--features python"pipinstall--no-index--find-links=target/wheelsukkonen_rs
Package: ukmdb_amqp
UKMDB AMQPAdvanced Messaging in UKMDB.Free software: GPLv3 licenseDocumentation:https://ukmdb_amqp.readthedocs.org.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.3 (2016-07-14)Miscellaneousbetter know how in bumpversion.0.0.2 (2016-07-14)Miscellaneoustest for bumpversion.0.0.1 (2016-07-13)First release on PyPI.
Package: ukmdb_audit
UKMDB auditUKMDB audit and logging interface.Free software: GPLv3 licenseDocumentation:https://ukmdb_audit.readthedocs.org.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.1 (2016-07-13)First release on PyPI.
Package: ukmdb_checkmk
UKMDB checkmkUKMDB check_mk translation.Free software: GPLv3 licenseDocumentation:https://ukmdb_checkmk.readthedocs.org.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.1 (2016-07-13)First release on PyPI.
Package: ukmdb_cli
UKMDB CLIUKMDB Command Line Interface.Free software: GPLv3 licenseDocumentation:https://ukmdb_cli.readthedocs.org.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.1 (2016-07-13)First release on PyPI.
Package: ukmdb_db
UKMDB DBUKMDB Database Interface.Free software: GPLv3 licenseDocumentation:https://ukmdb_db.readthedocs.org.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.1 (2016-07-13)First release on PyPI.
Package: ukmdb_graph
UKMDB graphUKMDB graph database adapter.Free software: GPLv3 licenseDocumentation:https://ukmdb_graph.readthedocs.org.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.1 (2016-07-13)First release on PyPI.
Package: ukmdb_itop
UKMDB itopUKMDB itop adapter.Free software: GPLv3 licenseDocumentation:https://ukmdb_itop.readthedocs.org.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.1 (2016-07-13)First release on PyPI.
Package: ukmdb_settings
UKMDB SettingsSettings module in context of UKMDB.Free software: GPLv3 licenseDocumentation:https://ukmdb_settings.readthedocs.org.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.1 (2016-07-13)First release on PyPI.
Package: ukmdb_uuid
UKMDB UUIDUKMDB UUID translation.Free software: GPLv3 licenseDocumentation:https://ukmdb_uuid.readthedocs.org.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.1 (2016-07-13)First release on PyPI.
Package: ukmdb_worker
UKMDB WorkerUKMDB Worker processes.Free software: GPLv3 licenseDocumentation:https://ukmdb_worker.readthedocs.org.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.1 (2016-07-13)First release on PyPI.
Package: uk-mod-check
A python library for checking the validitiy of UK bank account detailsExample usage:importuk_mod_checkassertuk_mod_check.validate(40004,78111815)==uk_mod_check.ValidationResult(result=True,known_sort_code=True,substitute_sort_code=None)assertuk_mod_check.validate(309070,12345668)==uk_mod_check.ValidationResult(result=True,known_sort_code=True,substitute_sort_code=309634)