Saravanan666/pypi-org huggingface dataset:
Package: alt-eval
alt-evalAn automatic lyrics transcription (ALT) evaluation toolkit, released with theJam-ALT benchmark.The package implements metrics designed to work well with lyrics formatted according to music industry standards (see theJam-ALT annotation guide), namely:Aword error rate(WER) computed on text tokenized in a way that accounts for non-standard spellings common in song lyrics.Acase error rate, measuring the rate of incorrectly predicted letter case.Precision,recallandF-scorefor symbols important for written lyrics:PunctuationParentheses (used to delimit background vocals)Line breaksSection breaks (i.e. double line breaks)UsageInstall the package withpip install alt-eval.To compute the metrics:fromalt_evalimportcompute_metricscompute_metrics(references,hypotheses)wherereferencesandhypothesesare lists of strings. To specify the language (English by default), use thelanguagesparameter, passing either a single language code, or a list of language codes corresponding to individual examples.For JamALT, use:fromdatasetsimportload_datasetdataset=load_dataset("audioshake/jam-alt")["test"]compute_metrics(dataset["text"],transcriptions,languages=dataset["language"])Usevisualize_errors=Trueto also get a list of HTML snippets that can be used to visualize the errors in each transcript.
Package: altf1be-google-analytics-helpers
altf1be_google_analytics_helpersHelpers for Google Analytics facilitating the setting of the categories, actions, labels, User Id and User Agents.Seehttps://bitbucket.org/altf1be/altf1be_google_analytics_helpersGoogle Analytics:https://analytics.google.comAuthor: Abdelkrim BOUJRAF,http://www.alt-f1.beUsageCreate a .env including this parameter COM_GOOGLE_ANALYTICS_TRACKING_IDexportCOM_GOOGLE_ANALYTICS_TRACKING_ID=G-XXXXXXXXXXInstall python-dotenvpipinstallpython-dotenvload the .env in your entry point (app.py, main.py, test.py)fromdotenvimportload_dotenv

load_dotenv()Run the code and check if the event is set on Google Analyticsfromaltf1be_google_analytics_helpersimportGoogleAnalyticsimportrequestsgoogleAnalytics=GoogleAnalytics()USER_ID:int,0ifyouDONOTstoreauser_idgoogleAnalytics.track_event(category="set a category",action="set an action",label="set a label",value=0,# Event value, must be an integer. i.e. the value of a basketua=request.headers.get("User-Agent"),)installationinstall the package onpypi.org:install :pip install altf1be_google_analytics_helpersupgrade :pip install altf1be_google_analytics_helpers --upgradeinstall the package ontest.pypi.org:install :pip install -i https://test.pypi.org/simple/altf1be_google_analytics_helpersupgrade :pip install -i https://test.pypi.org/simple/altf1be_google_analytics_helpers --upgradedependenciesSeerequirements.txtBuild this packagebuild the setup.pypython3 setup.py sdist bdist_wheelpython3 -m pip install --user --upgrade twine --use-feature=2020-resolverupload the library on TESTpypi.orgpython -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*Source :https://test.pypi.org/project/altf1be_helpersupload the library on PRODpypi.orgpython -m twine upload dist/*Source :https://pypi.org/project/altf1be_helpersDocumentation to build a Python packagePackaging Python Projectshttps://packaging.python.org/tutorials/packaging-projects/Managing Application Dependencieshttps://packaging.python.org/tutorials/managing-dependencies/#managing-dependenciesPackaging and distributing projectshttps://packaging.python.org/guides/distributing-packages-using-setuptools/#distributing-packagesLicenseCopyright (c) ALT-F1 SPRL, Abdelkrim BOUJRAF. All rights reserved.Licensed under the EUPL License, Version 1.2.See LICENSE in the project root for license information.
Package: altf1be-helpers
altf1be_helpersHelpers to deal with basic requirements of an application built bywww.alt-f1.be. Seehttps://bitbucket.org/altf1be/altf1be_helpersmanagement of a JSON File: Load, save, save with datetime.usageinstall the package onpypi.org:install :pip install altf1be_helpersupgrade :pip install altf1be_helpers --upgradeinstall the package ontest.pypi.org:install :pip install -i https://test.pypi.org/simple/altf1be_helpersupgrade :pip install -i https://test.pypi.org/simple/altf1be_helpers --upgradedependenciesSeerequirements.txtBuild the packagebuild the setup.pypython3 setup.py sdist bdist_wheelpython3 -m pip install --user --upgrade twineupload the library on TESTpypi.orgpython -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*Source :https://test.pypi.org/project/altf1be_helpersupload the library on PRODpypi.orgpython -m twine upload dist/*Source :https://pypi.org/project/altf1be_helperstest the library altf1be_helperscd altf1be_helperspython altf1be_helpers_unittest.pypython altf1be_json_helpers_unittest.pylocate the packagepython -c "from altf1be_helpers import AltF1BeHelpers as _; print(_.__path__)"does not work yetlist functions inside the modulethe packagepython -c "import altf1be_helpers as _; print(dir(_))"test the packagepython -c "from altf1be_helpers import AltF1BeHelpers; text='éê à iïî'; print(f'{AltF1BeHelpers.unicode_to_ascii(text)}')"result :ee a iiitest the library altf1be_helperscd altf1be_helperspython altf1be_json_helpers_unittest.pylocate the packagepython -c "from altf1be_json_helpers import AltF1BeJSONHelpers as _; print(_.__path__)"does not work yetlist functions inside the modulethe packagepython -c "import altf1be_helpers as _; print(dir(_))"test the packagepython -c 'import os;from altf1be_helpers import AltF1BeJSONHelpers; altF1BeJSONHelpers = AltF1BeJSONHelpers();data = altF1BeJSONHelpers.load(os.path.join("data", "altf1be_sample.json"));print(data)'result :{"name": "altf1be_json_helpers"}DocumentationPackaging Python Projectshttps://packaging.python.org/tutorials/packaging-projects/Managing Application Dependencieshttps://packaging.python.org/tutorials/managing-dependencies/#managing-dependenciesPackaging and distributing projectshttps://packaging.python.org/guides/distributing-packages-using-setuptools/#distributing-packagesLicenseCopyright (c) ALT-F1 SPRL, Abdelkrim Boujraf. All rights reserved.Licensed under the EUPL License, Version 1.2.See LICENSE in the project root for license information.
Package: altf1be-json-helpers
altf1be_json_helpersHelpers to deal with basic requirements of the management of a JSON File: Load, save, save with datetime. The library is built bywww.alt-f1.be. Seehttps://bitbucket.org/altf1be/altf1be_json_helpersThe classAltF1beJSONcounts a limited amount of methodsLoad a JSON fileSave a JSON file and create the directory where to store the JSON file if it does not existsSave a JSON file appended with a date time; e.g. 2020-06-19_20-45-42 (format YYYY-MM-DD_HH-MM-SS)usageinstall the package onpypi.org:install :pip install altf1be_json_helpersupgrade :pip install altf1be_json_helpers --upgradeinstall the package ontest.pypi.org:install :pip install -i https://test.pypi.org/simple/altf1be_json_helpersupgrade :pip install -i https://test.pypi.org/simple/altf1be_json_helpers --upgradedependenciesSeerequirements.txtBuild the packageinstall NodeJS packagesnpm installbuild the setup.pyClean and build the package :npm run clean-buildupload the library on TESTpypi.orgnpm run push-test:setup.pySource :https://test.pypi.org/project/altf1be_json_helpersupload the library on PRODpypi.orgnpm run push-prod:setup.pySource :https://pypi.org/project/altf1be_json_helperstest the librarycd altf1be_json_helperspython altf1be_json_helpers_unittest.pylocate the packagepython -c "from altf1be_json_helpers import AltF1BeJSONHelpers as _; print(_.__path__)"does not work yetlist functions inside the modulethe packagepython -c "import altf1be_json_helpers as _; print(dir(_))"test the packagepython -c 'import os;from altf1be_json_helpers import AltF1BeJSONHelpers; altF1BeJSONHelpers = AltF1BeJSONHelpers();data = altF1BeJSONHelpers.load(os.path.join("data", "altf1be_sample.json"));print(data)'result :{"name": "altf1be_json_helpers"}DocumentationPackaging Python Projectshttps://packaging.python.org/tutorials/packaging-projects/Managing Application Dependencieshttps://packaging.python.org/tutorials/managing-dependencies/#managing-dependenciesPackaging and distributing projectshttps://packaging.python.org/guides/distributing-packages-using-setuptools/#distributing-packagesLicenseCopyright (c) ALT-F1 SPRL, Abdelkrim Boujraf. All rights reserved.Licensed under the EUPL License, Version 1.2.See LICENSE in the project root for license information.
Package: altFACS
altFACSAuthor: David BrownLast Edited: 2020-August-07Aim:This package is intended to standardise and simplify the investigation of protein-protein interactions by flow cytometry.Explanation:In theHuang Labwe are interested in developing new tools to examine biological interactions. Split fluorescent proteins have proven to be a useful tool for the tagging and study of endogenous proteins in living cells, and we have been trying to maximise their utility. Appropriate use of a split fluorescent protein as a probe requires a good understanding of the complementation process, whereby the two halves of the split meet and fold to form the mature fluorescent protein. Complementation can be studied biochemically, however we can exploit the self-reporting nature of fluorescent proteins to study complementation in vivo by microscopy or or flow cytometry which offers a higher throughput.Flow cytometry and fluorescence activated cell sorting (FACS) are more frequently used to distinguish cell populations based on a characteristic intensity profile. In our case we often use it to study how proteins behave at a range of concentrations. This alternative approach to FACS is the main purpose of the altFACS package.Example Plots:Example altFACS Plots:A.Raw flow cytometry events.B.Scatter gating. Events fromAafter events saturating in any channel have been removed from all channels. Events likely to correspond to live cells have been gated based on a contour map.C.Singlet gating.Â Events fromBafter likely to contain more than one cell (below the line) are excluded.D.Negative control without transfection. Events fromCafter fluorescence gates have been set to contain 99% of the population.E.Transfected with CloGFP(1-10) only.F.Positive control with full length sfGFP::CTLA:T2A:mTagBFPG.Fitting of full length GFP in BFP+ cells. altFACS facilitates model fitting to flow cytometry data.H.CloGFP with wild type GFP11::CTLA:T2A:mTagBFP.I.CloGFP with Y9F mutant GFP11::CTLA:T2A:mTagBFP.J-L.Data from panelsG-Irescaled for comparison.We conclude that split CloGFP complementation efficiency is much less than 100%, and that the Y9F mutation in the GFP11 fragment has no impact of split CloGFP complementation efficiency.InstallationCurrently, altFACS is available on GitHub or on thetest.Pypisite.
Mostrequirementswill install automatically, but you may need to installfcsparserbefore installing altFACS.
Package: altflags
alt-flagsaltflagsallows you to easily map, parse and manipulate binary flagsWhy?The built in Python Flags and IntFlags didn't fit my needsSimple usage to handle binary flag mapping, parsing and manipulationNeeds to run super efficiently and quick (same thing?)This is my first public package, it's small and easy to maintainQuick Start1. Install with pip from PyPipython -m pip install altflags2. Create altflags, Flags classfrom altflags import Flags, flag

class Permissions(Flags):
    create_message = flag(0)
    delete_message = flag(1)
    edit_message = flag(2)

user_permissions = Permissions()3. Edit your flags# Set create_message and edit_message flags to true
user_permissions.create_message = True
user_permissions.edit_message = True

# print flags as binary
print("{:0b}".format(user_permissions.flags))
# >>> 101
# all flags are False (0) from initialization

# print flags as integer
print({:0n}.format(user_permissions.flags))
# >>> 54. Compare flagsuser2_permissions = Permission()
user2_permissions.create_message = True
user2_permissions.edit_message = True

print(user_permissions == user2_permissions)
# >>> True

user2_permissions.create_message = False
print(user_permissions == user2_permissions)
# >>> False5. Extend altflags with class methods that return pre-formatted flag objectsclass Permissions(Flags):
    create_message = flag(0)
    delete_message = flag(1)
    edit_message = flag(2)

    @classmethod
    def all(cls):
        new_cls = cls()
        new_cls.create_message = True
        new_cls.delete_message = True
        new_cls.edit_message = True
        return new_cls

user_permissions = Permissions.all()

print({:0b}.format(user_permissions))
# >>> 111

print({:0n}.format(user_permissions))
# >>> 7Notesflags(n: int)n argument specifies the bit position of your flag (Warning: These can be overwritten).
Package: alt-gym-wordle
gym-wordleA wordle environment for openai/gymInstallationInstallopenai-gymthen install this package withpip install -e .Usageimport gym 
import gym_wordle
env = gym.make('Wordle-v0')See thedocsfor more infoEnvironment detailsThis environment simulates a game of wordle using a wordle python clone fromhttps://github.com/bellerb/wordle_solverThe action space is a discrete space of 12972 numbers which corresponds to a word from a list of all allowed wordle guesses and answers
The observation space is a dict with the guesses and colors for the current game.
Guesses is an array ofshape(5,6) #5 letters and 6 rowswhere each element is a number from 0-26 where 0 is''and 26 iszColors is an array of the same shape, only each element is a number from 0-2 where 0 is a blank (or black or grey) square, 1 is a yellow square, and 2 is a green squareThe reward calculation is as follows:The agent gets 1-6 points depending on how fast the agent guesses the word. For example, getting the word on the first guesses rewards 6 points, getting the word on the second guess rewards 5 points, etcThe agent also is rewarded for colors in the current row (so the current guess).
Right now, the agent is rewarded 3 points for each green tile, and 1 point for each yellow tile.
No points are giving for grey tiles
Package: altify
Altify automizes the task of inserting alternative text attributes for
image tags. Altify uses Microsoft Computer Vision API’s deep learning
algorithms to caption images in an HTML file and returns a new HTML file
in which alt attributes are filled out with their corresponding
captions.Notice: Altify will now ignore any image tag whose alt attribute has
content or is just an empty string. (In compliance with standard web
practices)DependenciesPython 2.7BeautifulSoupInstall and Usage (Latest Version)1) Get a Microsoft API Key for Freehttps://www.microsoft.com/cognitive-services/en-us/sign-up.2) Install via pipOpen up terminal and enter:pip install altify3) Usealtify path_to_your_html api_key4) Enjoy!A new HTML file called altify.html is created next to the HTML file you
selected.How It was BuiltParses the html using BeautifulSoup.Finds all the image tags.Sends a request to Microsoft’s API to caption.Fills out the alt attributes for all the images.Writes an edited HTML file next to the file you selected.Captioned Images SamplesDonald Trump wearing a suit and tieA piano keyboardA squirrel eatingA close up of a cat looking at the cameraA woman wearing a red hatA small boat in a lake surrounded by mountainsDisclaimerHumans are currently better at captioning images than machines. Use
responsibly!
Package: altimate-datapilot
Assistant for Data TeamsFree software: MIT licenseInstallationpip install altimate-datapilotYou can also install the in-development version with:pip install https://github.com/AltimateAI/datapilot/archive/main.zipDocumentationhttps://datapilot.readthedocs.io/DevelopmentTo run all the tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.0.0 (2024-01-25)First release on PyPI.
Package: altinkaynak
AltinkaynakThis package is used for fetching altinkaynak.com rates based on TRY currency.
To use it, simpy do that;from altinkaynak import Altinkaynak
altin = Altinkaynak()

#Get all rates based on TRY currrency
altin.get_try_currencies()

#Or how much unit EUR cost equal to 1 unit USD 
altin.get_rate("USD","EUR")

#Or other provided rates
altin.get_rate("AFG","TRY")ChangelogWhen you callget_try_currencies()andget_rate()functions, they return currency date as string (eg; 2022-00-00T00:00:00.000Z), not timezone aware datetime object. It is because of the python version compatibility issues.
Package: altitudo
# AltitudoPython package to find the elevation / altitude at a given geo coordinate.## Usage:### Via Python:```python>>> from altitudo import altitudo>>> altitudo(lat=39.90974, lon=-106.17188)  # Returns meters by default... 2624.0>>> # Request more than a single coordinate>>> altitudo(lat=[39.90974, 62.52417], lon=[-106.17188, 10.02487])... [{"lat": 39.90974, "lon": -106.17188, "elevation": 2624.0},{"lat": 62.52417, "lon": 10.02487, "elevation": 1111.0}]```### Via CLI```altitudo -- 39.90974 -106.171882624.0```---[![](https://img.shields.io/pypi/v/altitudo.svg)](https://pypi.python.org/pypi/altitudo)[![](https://img.shields.io/travis/milesgranger/altitudo.svg)](https://travis-ci.org/milesgranger/altitudo)[![](https://readthedocs.org/projects/altitudo/badge/?version=latest)](https://altitudo.readthedocs.io/en/latest/?badge=latest)[![](https://pyup.io/repos/github/milesgranger/altitudo/shield.svg)](https://pyup.io/repos/github/milesgranger/altitudo/)Package to get elevation / altitude from a given geo coordinate* Free software: The Unlicense* Documentation: https://altitudo.readthedocs.io.=======History=======0.1.0 (2018-10-07)------------------* First release on PyPI.
Package: altmetric
Altmetricis a Python wrapper forAltmetric API v1 <http://api.altmetric.com/>.Installationpip install altmetricUsageFetching details by identifiersfrom altmetric import Altmetric
a = Altmetric()
a.id("108989")
a.doi("10.1126/science.1173146")
a.ads("2009sci...325..578w")
a.arxiv("1212.4819")
a.pmid("19644114")


a = Altmetric("you_api_key")
a.fetch("doi","10.1126/science.1173146")Querying the database::from altmetric import Altmetric
a = Altmetric()
a.citations(‘1d’)
a.citations(‘1d’, page=2)Catching Errorsfrom altmetric import Altmetric
a = Altmetric()
try:
    rsp = a.doi("10.1234/foo")
    if rsp is None:
        print "DOI not found"
    else:
        print rsp['altmetric_id']
except AltmetricHTTPException, e:
    if e.status_code == 403:
        print "You aren't authorized for this call"
    elif e.status_code == 420:
        print "You are being rate limited"
    elif e.status_code == 502:
        print "The API version you are using is currently down for maintenance."
    elif e.status_code == 404:
        print "Invalid API function"
        print e.msgAPI ReferencePlease seehttp://api.altmetric.com/for detailed reference on response object
and parameters.
Package: altmo
AltMoAlternativeMobilities is a CLI tool which helps map alternative mobilities with Open Street Map data.
Specifically, this tool helps you map walkability and bikeability averages as a surface for an area of intent
(usually a city or a region).It relies on the following external services to work:A PostgreSQL database within extensionspostgis,hstoreandtablefuncenabledAn Open Street Map database imported into this databaseA running instance aVahalla(used for calculating network routing)A GeoJSON file of the boundary you would like to gather data for (should fit inside OSM data)For a full description of how to use this tool, you are encouraged to visithttps://altmo.readthedocs.io/en/latest/index.html.
Package: alt-model-checkpoint
alt-model-checkpointAn adapter callback for KerasModelCheckpointthat allows checkpointing
an alternate model (often submodel of a multi-GPU model).Installationpipinstallalt-model-checkpointUsageYou must provide your own Keras or Tensorflow installation.SeePipfilefor preferred versions.If using the Keras bundled in Tensorflow:fromalt_model_checkpoint.tensorflowimportAltModelCheckpointIf using Keras standalone:fromalt_model_checkpoint.kerasimportAltModelCheckpointCommon usage involving multi-GPU models built with Kerasmulti_gpu_model():fromalt_model_checkpoint.kerasimportAltModelCheckpointfromkeras.modelsimportModelfromkeras.utilsimportmulti_gpu_modeldefcompile_model(m):"""Implement with your model compile logic; both base and GPU models should be compiled identically"""m.compile(...)base_model=Model(...)gpu_model=multi_gpu_model(base_model)compile_model(base_model)compile_model(gpu_model)gpu_model.fit(...,callbacks=[AltModelCheckpoint('save/path/for/model.hdf5',base_model)])Constructor argsfilepathModel save file path; seeunderlying ModelCheckpoint docsfor details.alternate_modelKeras model to save instead of the default. This is used especially when training multi-gpu models built with Keras
multi_gpu_model(). In that case, you would pass the original "template model" to be saved each checkpoint.inherit_optimizerIf TRUE (default), saves the optimizer of the base model (e.g. a multi-gpu model) with the alternate model. This is
necessary if you want to be able to resume training on a saved alternate model. If FALSE, the alternate model's
optimizer will be saved as-is.*args, **kwargsThese are passed as-is to the underlyingModelCheckpointconstructor.Dev environment setupInstallpipenv.Runmake test(runsmake test-buildautomatically to ensure deps)
Package: alto
This Django app allows you to browse the urlpatterns, views, and templates for
your project, see their source code, and open that code in your favorite editor[*].Planned features include the ability to browse and search for models, template
tags, filters, and celery tasks.At some point, Alto may become aLight Tableplugin.Alto is ALPHA software. It may or may not work with your project. Bug reports
without patches are unlikely to be fixed for now, so unless you’re ready to work
on it, you should hold off for a few releases.RequirementsPython 2.7Django 1.4Other versions may work, but have not been tested.Installationpip install altoSetupAdd'alto'to yourINSTALLED_APPSAdd'alto.middleware.AltoMiddleware'to yourMIDDLEWARE_CLASSESVisithttp://127.0.0.1:8000/_alto/ConfigurationSetALTO_URL_SCHEMEin your Django settings. The default is'mvim'for
opening files in MacVim.'txmt'will work for TextMate, and if you installSublHandler,'subl'will open Sublime Text 2.ThanksAlto is inspired byBret Victor’s talk, “Inventing on Principle” and byLight Table.[*]As long as your favorite editor is MacVim, TextMate or Sublime Text 2. In theory, any editor that can be made to open a file from a custom url scheme will work.
Package: altocumulus
Command line utilities for running workflows onTerraorCromwellincluding:Run a Terra method, and bulk add/delete methods on Terra.Submit WDL workflow jobs to a sever running Cromwell, as well as check jobs’ status, abort jobs, and get logs.Replace local file paths with remote Cloud (Google Cloud or Amazon AWS) bucket URIs, and automatically upload referenced files to Cloud buckets.Parse monitoring log files to determine optimal instance type and disk space.Important tools used by Altocumulus:FireCloud SwaggerDockstore SwaggerFireCloud Service Selector(FISS). In particular,fiss/firecloud/api.py.