Saravanan666/pypi-org huggingface dataset:
Package: lasso.releasers
PDS Lasso ReleasersThe PDS Lasso Releasers handle automatic "release" of software to artifact repositories, publishing packages for general availability. It's part of the "Lasso" family of products.Please visit our website at:https://nasa-pds.github.io/lasso-releasersIt may have useful information for developers and end-users.PrerequisitesThis software executes thegitcommand and sogitmust be installed on the system prior to invoking this software.User QuickstartInstall with:pip install lasso-releasersTo execute, run:(put your run commands here)Code of ConductAll users and developers of the NASA-PDS software are expected to abide by ourCode of Conduct. Please read this to ensure you understand the expectations of our community.DevelopmentTo develop this project, use your favorite text editor, or an integrated development environment with Python support, such asPyCharm.ContributingFor information on how to contribute to NASA-PDS codebases please take a look at ourContributing guidelines.InstallationInstall in editable mode and with extra developer dependencies into your virtual environment of choice:pip install --editable '.[dev]'Configure thepre-commithooks:pre-commit install
pre-commit install -t pre-push
pre-commit install -t prepare-commit-msg
pre-commit install -t commit-msgThese hooks check code formatting and also aborts commits that contain secrets such as passwords or API keys. However, a one time setup is required in your global Git configuration. Seethe wiki entry on Git Secretsto learn how.PackagingTo isolate and be able to re-produce the environment for this package, you should use aPython Virtual Environment. To do so, run:python3 -m venv venvThen exclusively usevenv/bin/python,venv/bin/pip, etc. Or, "activate" the virtual environment by sourcing the appropriate script in thevenv/bindirectory.If you havetoxinstalled and would like it to create your environment and install dependencies for you run:tox --devenv <name you'd like for env> -e devDependencies for development are specified as thedevextras_requireinsetup.cfg; they are installed into the virtual environment as follows:pip install --editable '.[dev]'All the source code is in a sub-directory undersrc.ToolingThedevextras_requireincluded in the template repo installsblack,flake8(plus some plugins), andmypyalong with default configuration for all of them. You can run all of these (and more!) with:tox -e lint
Package: lasso.reports
PDS Lasso ReportsThe PDS Lasso Reports package provides utilities to generates various kinds of reports. It provides three commands:git-pingwhich "pings" a branch by making an empty commit+push to itsummarieswhich generates build summary tables in various formatspds-planwhich creates planning board reportsPlease visit our website at:https://nasa-pds.github.io/lasso-reportsIt may have useful information for developers and end-users.PrerequisitesInstalling this software requiresgitto be present on the target systme.User QuickstartInstall with:pip install lasso-reportsTo execute, run:(put your run commands here)Code of ConductAll users and developers of the NASA-PDS software are expected to abide by ourCode of Conduct. Please read this to ensure you understand the expectations of our community.DevelopmentTo develop this project, use your favorite text editor, or an integrated development environment with Python support, such asPyCharm.ContributingFor information on how to contribute to NASA-PDS codebases please take a look at ourContributing guidelines.InstallationInstall in editable mode and with extra developer dependencies into your virtual environment of choice:pip install --editable '.[dev]'Configure thepre-commithooks:pre-commit install
pre-commit install -t pre-push
pre-commit install -t prepare-commit-msg
pre-commit install -t commit-msgThese hooks check code formatting and also aborts commits that contain secrets such as passwords or API keys. However, a one time setup is required in your global Git configuration. Seethe wiki entry on Git Secretsto learn how.PackagingTo isolate and be able to re-produce the environment for this package, you should use aPython Virtual Environment. To do so, run:python3 -m venv venvThen exclusively usevenv/bin/python,venv/bin/pip, etc. Or, "activate" the virtual environment by sourcing the appropriate script in thevenv/bindirectory.If you havetoxinstalled and would like it to create your environment and install dependencies for you run:tox --devenv <name you'd like for env> -e devDependencies for development are specified as thedevextras_requireinsetup.cfg; they are installed into the virtual environment as follows:pip install --editable '.[dev]'All the source code is in a sub-directory undersrc.ToolingThedevextras_requireincluded in the template repo installsblack,flake8(plus some plugins), andmypyalong with default configuration for all of them. You can run all of these (and more!) with:tox -e lint
Package: lasso.requirements
PDS Lasso RequirementsThe PDS Lasso Requirements generates requirements reports of software projects based on GitHub issues. It's part of the "Lasso" family of products.Please visit our website at:https://nasa-pds.github.io/lasso-requirementsIt may have useful information for developers and end-users.PrerequisitesInstalling this software requiresgitto be present on the target systme.User QuickstartInstall with:pip install lasso-requirementsTo execute, run:(put your run commands here)Code of ConductAll users and developers of the NASA-PDS software are expected to abide by ourCode of Conduct. Please read this to ensure you understand the expectations of our community.DevelopmentTo develop this project, use your favorite text editor, or an integrated development environment with Python support, such asPyCharm.ContributingFor information on how to contribute to NASA-PDS codebases please take a look at ourContributing guidelines.InstallationInstall in editable mode and with extra developer dependencies into your virtual environment of choice:pip install --editable '.[dev]'Configure thepre-commithooks:pre-commit install
pre-commit install -t pre-push
pre-commit install -t prepare-commit-msg
pre-commit install -t commit-msgThese hooks check code formatting and also aborts commits that contain secrets such as passwords or API keys. However, a one time setup is required in your global Git configuration. Seethe wiki entry on Git Secretsto learn how.PackagingTo isolate and be able to re-produce the environment for this package, you should use aPython Virtual Environment. To do so, run:python3 -m venv venvThen exclusively usevenv/bin/python,venv/bin/pip, etc. Or, "activate" the virtual environment by sourcing the appropriate script in thevenv/bindirectory.If you havetoxinstalled and would like it to create your environment and install dependencies for you run:tox --devenv <name you'd like for env> -e devDependencies for development are specified as thedevextras_requireinsetup.cfg; they are installed into the virtual environment as follows:pip install --editable '.[dev]'All the source code is in a sub-directory undersrc.ToolingThedevextras_requireincluded in the template repo installsblack,flake8(plus some plugins), andmypyalong with default configuration for all of them. You can run all of these (and more!) with:tox -e lint
Package: last2libre
last2libreUtility to export Last.fm / Libre.fm history and import history into Libre.fm / Gnu.fmAboutlast2libre is a utility to export and import scrobble / listen history from Last.fm and Gnu.fm sites (e.g. Libre.fm).
You can export history from Last.fm, Libre.fm, or a Gnu.fm instance to a text file.
After, you can import this data to Libre.fm or a Gnu.fm instance to replicate history between two different platforms.
These scripts make music listening history more accessible and also could enable study of a specific user's listening trends.UsageDetailed usage instructions coming soon (updated documentation expected with v1.0.0 release).How to contributeSeeCONTRIBUTING.md.LegalProject licensed under theGNU Public License v3.
last2libre was originally written by Jonas Haraldsson (@kabniel).
last2libre is currently maintained by Justin W. Flory (@jwflory).
Package: lastapi
lastapiThe Omni REST API ClientThis is still WIP, but I've got prototype working which is for the update DNS function using CloudFlare API.The project is written in Python 3. You can install dependencies withpip3 install --user -r requirements.txtWalk-throughREST API schemaThe schema is defined inschemas/cloudflare.yaml---
Name: cloudflare
Base:
  Protocol: https
  Host: api.cloudflare.com
Headers:
  X-Auth-Key: ${auth_key}
  X-Auth-Email: ${auth_email}
  Content-Type: application/json

Actions:
  update_dns:
    Path:
      - /client/v4/zones/
      - ${zone_id}
      - /dns_records/
      - ${dns_id}
    Method: PUT
    Payload:
      type: ${dns_type}
      name: ${dns_name}
      content: ${dns_content}
      ttl: 1
      proxied: trueThis will be verified againstschemas/schema.yamlusing pykwalify.Global parametersGlobal parameters for the API, usually API key and account stuff, are inschemas/cloudflare-params.yaml.example. You should duplicate it and remove the.examplesuffix and put in real credential.---
auth_key: sample-api-key
auth_email: raynix@some.emailInvoking an Action in the schemaTo invoke theupdate_dnsaction defined in the schema, run:./lapi --schema schemas/cloudflare --func update_dns --vars zone_id=xxx,dns_id=xxx,dns_type=A,dns_name=mydomain.com,dns_content=1.2.3.4Please comment or raise an issue if this doesn't work for you.
Package: last-asr
LAttice-based Speech Transducer (LAST)This is not an officially supported Google product.The LAttice-based Speech Transducer (LAST) is a JAX library for building
lattice-based speech transducer models, such asGNAT.To start using LAST, simply runpip install --upgrade last-asr. For more
information, check outhttps://last-asr.readthedocs.io.
Package: lastbox
Last.fm submission script for Rockbox’ scrobbler.log. Nothing special.Doesn’t require any additional libraries except Python 2.7 installation.Installationpip install lastboxor` git clonehttps://github.com/Mendor/lastboxcd lastbox python setup.py install `UsageConnect (and mount) your player to the computer.Runlastboxcommand.If it is run for the first time, it will ask you for username and password (the password isn’t kept anywhere so no need to worry).If there are artists you’ve never listened before, Lastbox will ask if you really want to submit their tracks (I hope, one day Rockbox scrobbler will support ‘Album artist` tags).That’s all.LicenseMIT
Package: last-fm-api-client
Last.FM API ClientA partially complete Python wrapper for the Last.FM API that implements the functions that I need for my Album of the day website.The wrapper usespydanticmodels to parse responses which allows better type validation.Implemented API methodsThe followingLast.FM API methodsare implemented:album.getInfo- get information about an albumartist.getInfo- get information about an artisttag.getInfo- get information about a taguser.getRecentTracks- retrieve scrobblesChangelog:v.0.2.5: Minor code quality changes. The module will also work with Pydantic versions that are notv2.x.x.v0.2.4: Improved deserialization for multiple fields and cases where the album only has one tag.
This change throws things around a little bit - you do not no longer have to check that items are singular
or a list, the module will handle that for you.Breaking changes_ List fields will now always return a list.
_ Multiple fields are now optional and may returnNone.v0.2.3: Fixed a bug that crashed the deserialization if an album only had one tag, which made
Last.FM return a dictionary rather than a list containing the tag.v0.2.2: Fixed a bug related to the loading of album images.Breaking changesThe fieldImage.sizeis now optional and may returnNone.v0.2.1: Fixed empty album text being converted to None.v0.2.0: Better handling of unset/empty Last.FM values.Breaking changes:The fieldAlbum.Tracksis now optional and may returnNone.Same applies for all image fields.v0.1.0: Initial release
Package: lastfmapi-py
LastFMGet charts, top artists and top songs WITHOUT LastFM APIUsageGet stats (charts)We provide many filters and options to customize. Geo filter is only one, that doesn't have a specific enum (class).fromlastfmimport*print(get_charts(SearchType.artists))print(get_charts(SearchType.tracks,geo_filter="si",music_type_filter=MusicTypeFilter.electronic,limit=1,year_filter=YearFilter.t2010s))SearchWe also provide searching.fromlastfmimport*print(search("Glass Animals",search_type=SearchType.all))
Package: lastfm-backup-cli
lastfm-backup-cliSuper-simple CLI tool for backing up Last.fm scrobbling data into CSV fileinstallationpre-requisites: Python 3.7 or newer, pipinstallation:pip install --user lastfm-backup-clior, if your default Python is 2.x:python3 -m pip install --user lastfm-backup-cliusageget your LastFM API keyhererun:lastfm-backup <PATH TO BACKUP CSV FILE> --user <YOUR LASTFM USERNAME> --api-key <YOUR API KEY> --time-from <DATE OF FIRST SCROBBLE IN BACKUP FILE> --time-to <DATE OF LAST SCROBBLE IN BACKUP FILE>example:lastfm-backup lastfm-backup-2021-01.csv --user Rezult --api-key <YOUR API KEY> --time-from 2021-01-01 --time-to 2021-02-01you can also set env variables:LASTFM_API_KEYandLASTFM_USERoutputoutput CSV file structure is:<SCROBBLE DATE>,<SCROBBLE TIME (UTC)>,<ARTIST>,<TITLE>
...output CSV example:2021-05-26,06:05:49,Alice Coltrane,Journey in Satchidananda
2021-05-25,14:16:08,London Music Works,"S.T.A.Y. (From ""Interstellar"")"
2021-05-25,13:18:39,Pantha du Prince,Silentium Larix
2021-05-25,13:11:10,Avenade,Have It Your Way
2021-05-25,13:03:51,Four Tet,Planet
2021-05-25,12:57:58,Songs: Ohia,Steve Albini's Blues
2021-05-25,12:52:31,Andy Stott,It Should Be Usoptionsusage: lastfm-backup [-h] [--user USER] [--api-key API_KEY] [--time-from TIME_FROM] [--time-to TIME_TO] [-d] file

Super-simple CLI tool for backing up Last.fm scrobbling data

positional arguments:
  file                  CSV file path where backup should be written to. Defaults to lastfm.csv

optional arguments:
  -h, --help            show this help message and exit
  --user USER           The last.fm username to fetch the recent tracks of.Might be provided by env variable LASTFM_USER
  --api_key API_KEY     A Last.fm API key. Might be provided by env variable LASTFM_API_KEY
  --time-from TIME_FROM
                        Beginning timestamp of a range - only display scrobbles after this time. Must be in UTC. Example: 2021-05-13
  --time-to TIME_TO     End timestamp of a range - only display scrobbles before this time. Must be in UTC. Example: 2021-05-15
  -d, --debug           Enable more verbose logging
Package: lastfmclient
Python client for theLast.fm APIwith a
pythonic interface. Also includes an async variant of the client forTornado.UsageRegularfromlastfmclientimportLastfmClientapi=LastfmClient(api_key=KEY,api_secret=SECRET,session_key=session_key)resp=api.track.update_now_playing(track='Paranoid Android',artist='Radiohead',album='OK Computer',)printrespAsynchronous (usestornado.httpclient.AsyncHTTPClient)importtornado.webimporttornado.genfromlastfmclient.asyncimportAsyncLastfmClientclassScrobbler(tornado.web.RequestHandler):@tornado.gen.coroutinedefpost(self):api=AsyncLastfmClient(api_key=KEY,api_secret=SECRET,session_key=session_key)resp=yieldapi.track.update_now_playing(track='Paranoid Android',artist='Radiohead',album='OK Computer',)self.finish(resp)See alsoexamples.Client methodsAll the methods the Last.fm API provides are mirrored in the client with
rich docstrings and arguments description. This code is actually generated
directly from the online API documentation pages
(see./generate.py,./api.json, and./lastfmclient/api.py).The defined methods be updated to the current version of the documentation via:$pipinstall-rrequirements.txtlxml# 1. Generate fresh api.json from docs at http://www.last.fm/api:$makespec# 2. Generate `lastfm/api.py` from `api.json`:$makecode# Or, all the above in one step:$makeContactJakub Roztočilhttp://github.com/jakubroztocilhttp://twitter.com/jakubroztociljakub@subtleapps.com
Package: lastfm-cli-scrobbler
Last.fm CLI ScrobblerThis is a simple Last.fm command-line scrobbler written in Python.InstallationPyPipipinstalllastfm-cli-scrobblerGitHub repopipinstallgit+https://github.com/maximtrp/lastfm-cli-scrobbler.gitUsageAfter the installation, two commands will be available:scrobble(my own API implementation) andscrobble2(pylastAPI implementation).$scrobble-h
Usage:scrobble[FILES]Options:-h,--helpshowthishelpmessageandexitPylast-based version is probably more stable, but my own implementation of Last.fm API returns the full log (and shows a cross instead of a check if a track was ignored):$scrobble{01..04}*.flac
Scrobblingreport:[v]Shuttle358-Ash[v]Shuttle358-Chessa[v]Shuttle358-Blast[v]Shuttle358-Duh
Package: lastfmcollagegenerator
lastfm-collage-generatorPython library to create Last.fm collages from user's top albums.It supports different configurations like the grid size or the period.FeaturesChoose the number of rows and columns (for now, up to 5)Choose the period to calculate the top (7day, 1month, 3month, 6month, 12month, overall. Default: 7day)InstallationInstall lastfmcollagegenerator with pippipinstalllastfmcollagegeneratorOptionsEntity values"album", "artist", "track"Period values"7day", "1month", "3month", "6month", "12month", "overall"Usage/Examplesfromlastfmcollagegenerator.collage_generatorimportCollageGeneratorcollage_generator=CollageGenerator(lastfm_api_key="YOUR_API_KEY",lastfm_api_secret="YOUR_API_SECRET")# Returns a PIL Image objectimage=collage_generator.generate(entity="album",username="username",cols=5,rows=5,period="7day")image.save("5x5 album collage.png","png")# Or just call the method directlyimage=collage_generator.generate_top_albums_collage(username="username",cols=5,rows=5,period="7day")image.save("5x5 album collage.png","png")LicenseMITAuthors@paurieraf
Package: lastfmget
LastFmGetLastFmGet is a Python package for accessingLast.fmscrobble data using the public API.Provides functions for calling specific Last.fm API methodsMust use a cfg YAML file and call lastfmget.init() before useGets a response from the API in JSON and returns a Python dictionaryExamples of the response for each method shown indata/dumpUse _raw method verions for more direct access to the Last.fm APIInstallationpip install lastfmgetDependenciespython3.10requestsrequests_cache (used only if configured in api_cfg.yaml)pyyamlDocumentationlastfmgetUsageImportimport lastfmgetConfiglastfmget.init('api_cfg.yaml')api_cfg.yaml example (data/example_api_cfg.yaml)api_url: http://ws.audioscrobbler.com/2.0/
api_key: <API KEY>
user_agent: <USER AGENT>
call_rate: 5 # Calls per second
cache:
  enable: true
  dir: .cache
  backend: sqlite
  lifetime: 120 # Seconds
# or (defaults)
cache:
  enable: true
# or (disable)
cache:
  enable: falseFieldDescriptionapi_urlAPI root URL, should be 'http://ws.audioscrobbler.com/2.0/'api_keyYour private API key. Seehereuser_agentIdentifiable user agent for requestscall_rateMax API requests per secondcacheenable: use requests_cachedir: (optional) cache locationbackend: (optional) sqlite recommendedlifetime: (optional) expire_after time in secondsCode ExamplesGetting user information using the user.getInfo method>>> info = lastfmget.user_info('D3r3k523')
>>> info['playcount']
161602
>>> info['user']['url']
'https://www.last.fm/user/D3r3k523'Getting a user's top 10 artists using the user.getTopArtists method>>> topartists = lastfmget.user_top_artists('D3r3k523', 10)
>>> [ artist['name'] for artist in topartists ]
['Radiohead', 'Converge', 'Pink Floyd', 'Queens of the Stone Age', 'Bon Iver', 'Thee Oh Sees', 'Tame Impala', 'Arcade Fire', 'Beach House', 'Mastodon']Example ProjectsLastFmTimelinePlaylistRankerTestsLast.fm API Methods AvailableFunctionLast.fm API methodlastfmget.user_infouser.getInfolastfmget.user_recent_tracksuser.getRecentTrackslastfmget.user_top_artistsuser.getTopArtistslastfmget.user_top_albumsuser.getTopAlbumslastfmget.user_top_tracksuser.getTopTrackslastfmget.user_weekly_chart_listuser.getWeeklyChartListlastfmget.user_weekly_artist_chartuser.getWeeklyArtistChartlastfmget.user_weekly_album_chartuser.getWeeklyAlbumChartlastfmget.user_weekly_track_chartuser.getWeeklyTrackChartLast.fm API ReferenceIntroductionTerms of Service
Package: last.fm-memories
This small program lists music you had listened before from Last.fm (or Libre.fm).
Note that it requires Python 3.7 or later.  It can be installed usingpip:pip install last.fm-memoriesYou need a Last.fm API key first, and can get one fromhere.  The first time
you run this program, it asks an API key pair (or you could configure it
through-k/--api-keyand-s/--api-secretoptions).The following command lists albums you had listened the year before last:last.fm-memories $YOUR_LASTFM_NAME artists --back 24For more usages:last.fm-memories --help
Package: lastfm-mpris2-scrobbler
🎵 Last.fm scrobblerA Last.fm scrobbler via MPRIS2 in Linux, implemented viapylastandmpris2Modified based ondbus-scrobblerFeaturesscrobble music to Last.fm if one of the conditions are met:played for 4 minsplayed for half the lengthupdate now playing statusoffline scrobble cache supportWhat is MPRIS2?MPRIS (Media Player Remote Interfacing Specification) is a standard D-Bus (Desktop Bus) interface that allows applications to communicate with and control media players running on a Linux desktop environment.Thus, this scrobbler is a general-purpose one under the Linux desktop environment, supporting scrobble music from media players without a built-in Last.fm scrobbling feature.Check if your media player supports MPRIS2 via (make sure the player is running):lastfm-mpris2-scrobbler--list-playersThe uri names of players will be shownInstallationThere're two options available now:grab the stand-alone binary fromrelease pageor, via PyPIpipinstalllastfm-mpris2-scrobblerConfigurationsThe program expects aconfig.yamlfile and can be placed wherever you like, for example~/.config/lastfm-mpris2-scrobbler/Example and detailed information can be found inconfig.yaml.example:# username for that serviceuser_name:foo# md5 hash of your password (obtained via `echo -n password | md5sum`)password_hash:abc123492abccf4f1997f7ccaabc123b# last.fm api, which can be created via https://www.last.fm/api/account/createapi_key:11111111111111111111111111111111api_secret:11111111111111111111111111111111# the app's uri you want to scrobble# use `lastfm-mpris2-scrobbler --list-players` to check the uri nameapplication_whitelist:["org.mpris.MediaPlayer2.harmonoid"]# app's log levellog_level:DEBUGUsagelastfm-mpris2-scrobbler-cPATH_TO_YOUR_CONFIG/config.yamlFor more options, see:lastfm-mpris2-scrobbler--helpIf you want to run it as a daemon service, here's a systemd service in user space for reference:[Unit]Description=Last.fm scrobbler via MPRIS2Documentation=https://github.com/Ladbaby/lastfm-scrobbler[Service]ExecStart=PATH_TO_YOUR_BIN/lastfm-mpris2-scrobbler -c PATH_TO_YOUR_CONFIG/config.yaml[Install]WantedBy=default.targetYou'll have to place the service file under~/.config/systemd/user/and name it likescrobbler.serviceTo run the daemon:systemctl--userstartscrobbler.serviceTo run at user login:systemctl--userenablescrobbler.serviceAlternativesIf you'd like a scrobbler similar to this, there're some choices. I recommand taking a look atscrobblez. It additionally provides Spotify related improvement, but doesn't provide stand-alone binary build for installation.Also, althoughrescrobbledmay also work, in my case it raised "Dbus error: argument type mismatch".Known IssuesIf the music title contains unwanted substring (like.mp3), then Last.fm won't accept the scrobbleThe program can now remove some of the unwanted substrings, including:.mp3.ogg.wav.acc.flac