Saravanan666/pypi-org huggingface dataset:
Package: lastfm-now
lastfm-nowShow what a user is currently playing.I created this to be displayed on my i3 status bar. Like this:Basic UsageIn order for this to work you will require a lastfm api key.  Grab onehereInstall from pypipip3 install lastfm-nowInstall from sourcecd lastfm-now-playing
pip3 install .Runlastfm-nowwill read the api key fromLASTFM_API_KEYenvironment variable. It can also be specified on the command line.
It can also read the username fromLASTFM_USERNAMEenvironment variable or can
be specified on the commandline.Environment variables - exampleexport LASTFM_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxx 
export LASTFM_USERNAME=bob123
lastfm-nowCommand line options - examplelastfm-now --apikey xxxxxxxxxxxxxxxxxxxxxxxx <username>CLI options-a, --apikey TEXT     Lastfm API key
  --log TEXT            Minimum log level to display [debug, info, warning, error, critical]
  --latch / --no-latch  Show most recently played track, even if not currently playing
  --prechars TEXT       Characters to be displayed before the output
  --postchars TEXT      Characters to be displayed after the output
  --help                Show this message and exit.i3 Status BarI am currently usingi3status-rsas its nice and simple.Here is how I configure it:~/.xsessionrcUse~/.xsessionrcto export API key.  This ensures the API key is available when X starts.export LASTFM_API_KEY=xxxxxxxxxxxxxxxxxxxxxi3status-rs config[[block]]
block = "custom"
command = "lastfm-now adamcathersides --prechars '♫ '"
interval = 5i3 config filebar {
        status_command i3status-rs ~/.config/i3/status.toml
}
Package: lastfmpy
lastfmpy - Last.FM API wrapper written in PythonMaintained byMyer (also known as myerfire, MyerFire)YouTubeTwittermyer#0001 on DiscordThis library is an async wrapper for thelast.fm API.FeaturesCurrently, any API methods that do not require the authentication process are supported.Installationlastfmpyis available from the official pYpI package index.python -m pip install -U lastfmpyDocumentationThere are relevant docstrings on the functions of the main wrapper class.Object attribute documentation may (?) be worked on but the code
inobjects.pyis easily readable.****There is no API method for a user's currently playing song. The way to get the currently playing song of a user is
to request recent tracks and check whether the first index of the list has the attributeplayingset to true.Quick StartfromlastfmpyimportLastFMimportasyncioAPI_KEY="hahagetbaited"# if it isn't obvious enough, replace this string# with your API key obtained by going to https://last.fm/api/applications and creating an applicationasyncdefmain():lastfm=awaitLastFM(API_KEY)recent=awaitlastfm.user.get_recent_tracks(user="myerfire")print(f"{recent.items[0].name}")if__name__=="__main__":asyncio.get_event_loop().run_until_complete(main())
Package: lastfm-py
lastfm-pyAn asynchronous Python Last.FM API wrapperInstallationThis project will be on PyPi once it is functionalLinuxpython3-mpipinstall-Ulastfm-pyWindowspy-mpipinstall-Ulastfm-pyExamplesGetting a user's recent scrobblesimportlastfmimportasyncioclient=lastfm.Client('client_key')# Replace with your client key (client_secret is optional)asyncdefmain():recent_tracks=awaitclient.get_recent_tracks("username",limit=5)print(recent_tracks[0].title)# prints the title of the users most recently scrobbled trackasyncio.run(main())
Package: lastfmtagupdater
lastfmtagupdaterThis programm uses tag information obtained from LastFM to update your files tags. Mainly intended for filling the genre tag.InstallSimply run the following:$ python setup.py installOr run directly with:$ python lastfmtagupdaterUsageAfter installation, run withlastfmtagupdater. Command line options may be enumerated by using the --help option.The default configuration file is [lastfm_tagger.conf]. Assuming that the configuration file points to your media directory, it's typically sufficient to simply run the above Python file without any options.Dependencies:Python3MutagenpyLastLastFM API Key (available athttp://www.last.fm/apiwithout any fuss)Changelog2022-12-21: v3.1.0. Removedsetup.py, addedpyproject.toml. Updatepylastdependency. Change to Python'sloggingmodule. Remove all traces of tag separators. Remove ability to save ad ID3v1. Some code cleanup.2022-12-15: v3.0.3. Write multiple values as multiple tags, remove configurable tag separator. Bump ID3 writing to v2.4.2022-12-12: v3.0.2. Add.opussupport.2018-07-20: v3.0.1. Updates to tag handling, more robust capitalization and duplicate checking. New configuration option: skipTags. Helps unclutter tags retrieved from LastFM.2016-03-21: Renamed to lastfmtagupdater, bumped version number to v3. Finish port to Python 3, added setup.py. Cleaned up code, removed Gui.2016-01-28: Update writing mp4.2014-11-30: Fix: correctly ignore writeUntaggedTag. Change: write ID3v2.3 tags instead of ID3v2.4.2014-11-30: Import of r17 lastfmtagextractor SVN repo @http://code.google.com/p/lastfmtagextractor~ Aaron McKee, May 2012
~ Brent Huisman, March 2016
Package: lastfmtools
LastFMToolsThis is repo of pythons scripts, i created over the past year or so that utilize
lastfm scrobbling feature, and public lastfm api to create visualizations of user listening history.
you can try using them at:LastFMTools.appTools:GIF-MosaicBubble-ChartColor-ChartOkay but what is LastFM in the first place?Last.fm is a music streaming and recommendation service that allows users to create personalized music profiles,
discover new music, and connect with other music enthusiasts.The scrobbling feature of Last.fm tracks the music you listen to on various platforms and records it on your profile.
This data is used to analyze your music taste and listening history.Can i test those scripts without having LastFM account?Sure, there'srandomfeature for every tool, that lets you use script without providing your
LastFM nickname, providing you with image created from profile of random lastfm userInstallationUse the package managerpipto install lastfmtools.pipinstalllastfmtoolsExample usage:importLastFMTools# creates bubble chart consisting of 50 most listened to albums, for user MyNickname, and# saves it as bubble.pngbubble_chart=BubbleChart("album",50,"bubble.png","MyNickname")# creates gif of mosaic pictures, thay displays 25 favorite albums for each month,# from november 2022, onwards, and saves it as File.gifgif_mosaic=GifMosaic("01-11-2022","month",5,"File.gif","MyNickName")# create mosaic that displays 16 album covers that# have biggest percentage of yellow, or similar colors in it, according to [CIE94](https://en.wikipedia.org/wiki/Color_difference#CIE94)color_mosaic=ColorMosaic(COLOR.YELLOW,4,"Yellow.png")ContributionIf you think there's anything to improve in those scripts,
then feel free to create issues and pull-requests,LicenseMIT
Package: lastfm-to-sqlite
lastfmScrapeLAST.FMuser's playlists to SQLite.Docs:https://lastfm.readthedocs.io/en/latest/Usagepip install lastfm-to-sqliteNow run CLI:lastfm export 244ec3b62b2501514191234eed07c75d lastfm_dump.db --user Way4MusicThat will use (or create) a SQLite database calledlastfm_dump.dband a table calledplaylistto export user's entire playlist.To scrape specific dates, use--start_dateand--end_date:lastfm export 244ec3b62b2501514191234eed07c75 lastfm_dump.db --user way4music --start_date 2021-08-21 --end_date 2021-09-01Python-based API works like this:from lastfm import LastFM

# specific date, ommit start_date and end_date to download all tracks
api = LastFM(
    api="244ec3b62b2501514191234eed07c75d",
    username="way4music",
    start_date="2021-08-21",
    end_date="2021-09-01"
)
data = api.fetch()
song = next(data)
print(song)
container = []
for item in data:
    container.append(item)
Package: lastfmtwitter
First you need to get app API credentials from last.fm and twitter.Then you need to create a secrets.json file with the following format:{"lastfm":{"key":"alphanumeric","secret":"alphanumeric"},"twitter":{"consumer_key":"alphanumeric","consumer_secret":"alphanumeric","token_key":"alphanumeric-alphanumeric","token_secret":"alphanumeric"}Currently you need to use the -j or –json option to link to a secrets file with your API secrets for last.fm and twitter.After installation via pip, you can run python -m lastfmtwitter.lastfm_twitterusage: python -m lastfmtwitter.lastfm_twitter [-h] [-w | -y] [-j JSON]optional arguments:-h,--helpshow this help message and exit-w,--weeklypost your top weekly artists (default)-y,--yearlypost your top yearly artists-jJSON,--jsonJSONoptional path to secrets.json file with api keysFor more documentation, visit:http://server.ericsbinaryworld.com/gpl_code/lastfmtwitter/index.html
Package: lastlogcsv
LastlogcsvConverter from /var/log/lastlog to csv file.Install from PyPIpip3installlastlogcsvInstall from Githubpip3installgit+https://github.com/Dashstrom/lastlogcsvUsageYou can run the script withlastlogcsvorpython3 -m lastlogcsvusage: lastlogcsv [-h] [-i INPUT] [-o OUTPUT] [-s {L,A}] [-e]

Converter file from /var/log/lastlog to csv file.

The output format is `uid,timestamp,tine,host`.
Exemple : `1000,1582898351,pts/0,192.168.56.1`

options:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        lastlog file, /var/log/lastlog by default on unix system
  -o OUTPUT, --output OUTPUT
                        destination for CSV file
  -s {L,A}, --struct {L,A}
                        'A' for actual struct, 'L' for legacy
  -e, --error           display complete error
Package: lastmile
LastMile AI Python LibraryThis library provides access to the LastMile AI API from Python. The code should reflect the same API endpoints documented here:https://lastmileai.dev/docs/apiAPI TokenThis library requires a LastMile AI API Token, which can be obtained fromhttps://lastmileai.dev/settings?page=tokens.Important note: this library should only be used from a server-side context, where the API key can be securely accessed. Using this library from client-side browser code will expose your private API key!Installationpip install lastmileaiUsageInitialize Library with API KeyThis library needs to be configured with your API Token (aka API key) obtained above. You can store the API key in an environment variable or alternative secure storage that can be accessed in your server-side code. For example, to initialize the library with the API key loaded from environment variable:importosfromlastmileaiimportLastMilelastmile=LastMile(api_key=os.environ["LASTMILEAI_API_KEY"])Completions -- Open AI ModelsOpenAI completions are supported out-of the box for ChatGPT and GPT3 models:completion=lastmile.create_openai_completion(completion_params={model:"text-davinci-003",prompt:"Your prompt here",})completion=lastmile.create_openai_chat_completion(completion_params={model:"gpt-3.5-turbo",messages:[{role:"user",content:"Your prompt here"},],})Completions -- Custom Modelscompletion=lastmile.create_openai_completion(completion_params={model:"text-davinci-003",prompt:"Your prompt here",},embedding_collection_id="clfpqyvpp004npmzgp1d4j4fw")Run testsAfter settingLASTMILEAI_API_KEYin your shell environment, run the following:pip3 install -e .
python3 -m unittest discover test
Package: lastmileai
LastMile AI Python LibraryThis library provides access to the LastMile AI API from Python. The code should reflect the same API endpoints documented here:https://lastmileai.dev/docs/apiAPI TokenThis library requires a LastMile AI API Token, which can be obtained fromhttps://lastmileai.dev/settings?page=tokens.Important note: this library should only be used from a server-side context, where the API key can be securely accessed. Using this library from client-side browser code will expose your private API key!Installationpip install lastmileaiUsageInitialize Library with API KeyThis library needs to be configured with your API Token (aka API key) obtained above. You can store the API key in an environment variable or alternative secure storage that can be accessed in your server-side code. For example, to initialize the library with the API key loaded from environment variable:importosfromlastmileaiimportLastMilelastmile=LastMile(api_key=os.environ["LASTMILEAI_API_KEY"])Completions -- Open AI ModelsOpenAI completions are supported out-of the box for ChatGPT and GPT3 models:completion=lastmile.create_openai_completion(completion_params={model:"text-davinci-003",prompt:"Your prompt here",})completion=lastmile.create_openai_chat_completion(completion_params={model:"gpt-3.5-turbo",messages:[{role:"user",content:"Your prompt here"},],})Completions -- Custom Modelscompletion=lastmile.create_openai_completion(completion_params={model:"text-davinci-003",prompt:"Your prompt here",},embedding_collection_id="clfpqyvpp004npmzgp1d4j4fw")Run testsAfter settingLASTMILEAI_API_KEYin your shell environment, run the following:pip3 install -e .
python3 -m unittest discover test
Package: last-model
LAST-modelolder MATLAB & Python versionThe version used in the publication XXX, written in MATLAB, as well as its port to Python
are currently kept in the example folder for reference. This Model is under heavy development
and will substantially change in the future. The older code will, however, be kept, but
maybe moved to another location. This will be stated here, in case you have been redirected here
from the aforementioned publication.LASTInstallYou can install LAST using pip:pipinstalllast_modelA more recent (and maybe more unstable) version might be available on Github.gitclonehttps://github.com/KIT-HYD/last_model.gitcdlast_model
pipinstall-rrequirements.txt
pythonsetup.pyinstallUsing pip is the recommended way.Using LASTWe will prepare a documentation soon. The Last model can be instantiated
using theLastclass and executed using theLast.runmethod.
Model setup and model parameters are specified in a JSON file. A sample
test file is supplied withlast_model.fromlast_modelimportLastlast=Last()last.run()Notes:Last is slow at the moment. We are working on an improved performanceLast is undocumented. This will be changed.Last is untested. We will provide unit tests with a future releaseLast is pre-alpha. Interfaces and internal workflow will change substantially.Last is not verbose, but it will learn speaking in a future release
Package: lastopt
lastopt=======lastopt is a Python utility for quickly creating command line utilities usingfunction and class introspection.Example-------```python#!/usr/bin/env pythonimport lastoptdef install(package, dependencies=False):print "install %s, with dependencies: %s" % (package, dependencies and 'yes' or 'no')class Env(object):def __init__(self, name):self.name = namedef start(self, package):print "starting %s.%s" % (self.name, package)lastopt.main([install, Env])```$ ./commandUsage: ./command COMMAND [ARGS]The available commands are:envinstall$ ./command install --helpUsage: ./command install <package> [options]Options:-h, --help          show this help message and exit--nodependencies    unset --dependencies-d, --dependencies   (default: False)$ ./command install redis -dinstall redis, with dependencies: yes$ ./command env productionUsage: ./command env production COMMAND [ARGS]The available commands are:start$ ./command env production start frontendstarting production.frontendHistory-------lastopt is directly inspired by Simon Willison's clever introspection hack froma few years back: https://github.com/simonw/optfunc
Package: lastpass-aws-login
lastpass-aws-login: AWS LastPass SAML CLITool for using AWS CLI with LastPass SAML.LastPass code from here:https://github.com/omnibrian/aws-lp, SAML and profile management code mostly from here:https://github.com/NitorCreations/adfs-aws-loginInstallationThis tool is published on pypi.org:pip install lastpass-aws-loginUsageYou will need to look up your SAML configuration ID for the AWS role you wish to join. This is in the generated launch URL in the LastPass console, it will look something similar tohttps://lastpass.com/saml/launch/cfg/25. In this case, the configuration ID is25, enter this number into the configurationRunThe executable is calledlastpass-aws-login. Log in with default profile by simply runninglastpass-aws-loginor specify a profile withlastpass-aws-login --profile [profile].Seelastpass-aws-login -hfor more options.If the environment variableLASTPASS_DEFAULT_PASSWORDis defined, that will be used as the password.ConfigureConfigure the profiles in$HOME/.aws/config. Following is an example with all supported configuration keys (and a few aws default ones):[profile example]
region=us-east-1
output=json
lastpass_default_username=test.user@example.com
lastpass_role_arn=arn:aws:iam::1234567890:role/DeployRole
lastpass_session_duration=8
lastpass_saml_id=25
Package: lastpass-hibp
lastpass-hibpis a simple cli tool to check
all the lastpass password if they are leaked
onhttps://haveibeenpwned.com/without sending them
the actual password.Installpip install lastpass-hibp

# or as a user
pip install --user lastpass-hibpExample usage:❯ lastpass-hibp --mfa
LastPass Username: xxxxxx
LastPass Password: xxxxxx
YubiKey/Authenticator code: xxxxxx
Number of accounts: 10
100% (10 of 10) |#######################| Elapsed Time: 0:00:00 Time:  0:00:00

❯ lastpass-hibp --help
Usage: lastpass-hibp [OPTIONS]

Options:
  --mfa / --no-mfa  Ask for MFA by default.
  --output TEXT     Output file
  --username TEXT   LastPass Username
  --password TEXT   LastPass Username !!! NOT RECOMMENDED
  --help            Show this message and exit.
Package: lastpasslib
A library able to retrieve and decrypt all items in lastpass along with their change history and attachments.Documentation:https://lastpasslib.readthedocs.org/en/latestProject FeaturesCan completely decrypt all secrets, attachments, and all history of every field that supports it.Can save the blob locally.Can save attachments of secrets.Exposes share info to and from people.Project InspirationInitial inspiration was taken fromhttps://github.com/konomae/lastpass-python. More features were needed and I could not
really follow the design of that project so well, so I ended up rewriting all of it with a new design that made sense to
me and implemented all the required features on that. This project is now quite further that the original project feature wise.During my reverse engineering efforts I also foundhttps://github.com/cfbao/lastpass-vault-parser/blob/master/lastpass-vault-format.mdsadly a little too late. Also extended my model further than the documentation of that project.History0.0.1 (08-02-2023)First code creation0.1.0 (11-02-2023)Initial release0.2.0 (17-02-2023)Implement retrieving secrets by group and shared folder.0.3.0 (17-02-2023)Implement friendly interface to retrieve passwords and secure notes by group and shared folder.0.4.0 (19-02-2023)Implement folder grouping and retrieval.0.5.0 (24-02-2023)Implement folder filtering out on secret parsing.0.6.0 (24-02-2023)Implement a consistent interface for update datetime reporting.0.7.0 (01-03-2023)Implement root folder, personal folders and shared folders. Report on password change for secure notes that support it.0.7.1 (01-03-2023)Expose only one level of personal folders.0.7.2 (01-03-2023)Refactor to match on full share name.0.7.3 (08-03-2023)Decouple decrypted vault from vault functionality.0.7.4 (08-03-2023)Decouple decrypted vault from vault functionality.0.7.5 (13-03-2023)Hide possible logout error.0.7.6 (20-03-2023)Testing release.0.7.7 (21-03-2023)Implement better error messages on some faults.0.8.0 (08-06-2023)Implement support for yubikey MFA1.0.0 (04-09-2023)Implementing creating and moving of secrets.1.0.1 (07-09-2023)Fix typo error.1.1.0 (11-09-2023)Implement session refresh. Fix attachment retrieval for attachments in shared folders. Properly identify the attachment mode (text, binary)1.1.1 (01-11-2023)Release testing.1.1.2 (07-11-2023)testing release
Package: lastpass-python
Original:lastpass-rubyThis is unofficial LastPass APIInstall$pipinstalllastpass-pythonExample# coding: utf-8importlastpassvault=lastpass.Vault.open_remote(username,password)foriinvault.accounts:print(i.id,i.username,i.password,i.url)TestingInstall test dependencies$pipinstall-rrequirements.txtRun tests with$nosetestsor test all environments and pep8 with tox$toxReleasing$pipinstalltwine$pythonsetup.pysdist$twineuploaddist/*LicenseThe MIT License
Package: lastpassreportingcli
A tool to report on state of secret rotation based on a cutoff day, by default the incident of lastpass day.Documentation:https://lastpassreportingcli.readthedocs.org/en/latestDevelopment WorkflowThe workflow supports the following stepslinttestbuilddocumentuploadgraphThese actions are supported out of the box by the corresponding scripts under _CI/scripts directory with sane defaults based on best practices.
Sourcing setup_aliases.ps1 for windows powershell or setup_aliases.sh in bash on Mac or Linux will provide with handy aliases for the shell of all those commands prepended with an underscore.The bootstrap script creates a .venv directory inside the project directory hosting the virtual environment. It uses pipenv for that.
It is called by all other scripts before they do anything. So one could simple start by calling _lint and that would set up everything before it tried to actually lint the projectOnce the code is ready to be delivered the _tag script should be called accepting one of three arguments, patch, minor, major following the semantic versioning scheme.
So for the initial delivery one would call$ _tag –minorwhich would bump the version of the project to 0.1.0 tag it in git and do a push and also ask for the change and automagically update HISTORY.rst with the version and the change provided.So the full workflow after git is initialized is:repeat as necessary (of course it could be test - code - lint :) )codelinttestcommit and pushdevelop more through the code-lint-test cycletag (with the appropriate argument)buildupload (if you want to host your package in pypi)document (of course this could be run at any point)Important InformationThis template is based on pipenv. In order to be compatible with requirements.txt so the actual created package can be used by any part of the existing python ecosystem some hacks were needed.
So when building a package out of thisdo notsimple call$ python setup.py sdist bdist_eggas this will produce an unusable artifact with files missing.Instead use the provided build and upload scripts that create all the necessary files in the artifact.Project FeaturesTODOHistory0.0.1 (10-03-2023)First code creation0.1.0 (24-03-2023)Initial official release.0.2.0 (31-03-2023)Add secret type on the export report.0.3.0 (31-03-2023)Implement whitelisting of secrets argument.0.3.1 (31-03-2023)Remove debugging statement.0.3.2 (31-03-2023)Simplify secret disregarding.0.3.3 (08-06-2023)Bump dependecies for yubikey support.
Package: lastplayer
lastplayerSimple program that keeps track of the last used MPRIS2 players.How?It prints the order of the players, from most recent to last recent, on a single
line onstdoutany time a player appears or disappears. The most recent list
of players is also written at/tmp/lastplayer.Why?You can use this program to control from keybinds the most recently opened multimedia player, using for example a program likeplayerctl.Using the same technique, you may control another player based on the order of
when it was started.ExampleStartlastplayerbeforehand:lastplayer&Toggle the playing state of the most recent player:#!/bin/shplayer="$(cat/tmp/lastplayer|head-n1)"playerctl-p$playerplay-pause