Saravanan666/pypi-org huggingface dataset:
Package: legit
Inspired by GitHub for Mac.The ConceptGitHub for Macis not just a Git client.Thiscommenton Hacker News
says it best:They haven’t re-created the git CLI tool in a GUI, they’ve created something different. They’ve created a tool that makes Git more accessible. Little things like auto-stashing when you switch branches will confuse git veterans, but it will make Git much easier to grok for newcomers because of the assumptions it makes about your Git workflow.Why not bring this innovation back to the command line?The Interfaceswitch <branch>Switches to specified branch.
Defaults to current branch.
Automatically stashes and unstashes any changes. (alias:sw)sync [<branch>]Synchronizes the given branch. Defaults to current branch.
Stash, Fetch, Auto-Merge/Rebase, Push, and Unstash.
You can only sync published branches. (alias:sy)publish [<branch>]Publishes specified branch to the remote. (alias:pub)unpublish <branch>Removes specified branch from the remote. (alias:unp)undoUn-does the last commit in git history.  (alias:un)branches [<wildcard pattern>]Display a list of available branches.
Allows wildcard pattern matching of branch name.The InstallationFromPyPIwith the Python package manager:pip install legitOr download a standalone Windows executable fromGitHub Releases.To install the cutting edge version from the git repository:git clone https://github.com/frostming/legit.git
cd legit
python setup.py installNote: if you encounteredPermission denied,
prependsudobefore thepiporpython setup.pycommand.You’ll then have the wonderfullegitcommand available. Run it within
a repository.To view usage and examples, runlegitwith no commands or options:legitTo install the git aliases, run the following command:legit --installTo uninstall the git aliases, run the following command:legit --uninstallCommand OptionsAll legit commands support--verboseand--fakeoptions.In order to view the git commands invoked by legit, use the--verboseoption:legit sync --verboseIf you want to see the git commands used by legit but don’t want them invoked, use the--fakeoption:legit publish --fakeCaveatsAll remote operations are carried out by the remote identified in$ git config legit.remote remotenameIf astash popmerge fails, Legit stops. I’d like to add checking for a failed merge, and undo the command with friendly error reporting.
Package: legitcli
LeGit CLILeGit aims to validate your git commits, based on scopes defined by you, such as
branch names or authors.InstallCurrently, the only way to install LeGit CLI is through Python'spip. Make
sure that your Python version is 3.8 or higher and run:pipinstalllegitcliAnd that's it, you can verify if installation was succesful by runninglegitversionUsageOpen a terminal on any git repository and runlegitsetupThis will add legit as a commit hook and will call it on every commit you
attempt to do. It will also create alegitrules.ymlfile which will dictate
which rules to apply(documentation on this is a WiP, for now, you can check somesamples)And that's it, you're set, any commits will do will first be validated using the
rules file!However, if you'd like to debug or do some tests mainly onlegitrules.yml, you
can run the following, which will have no impact on your commits (requires a
text file to be given, which would be the file with the commit message):legitvalidate--verbose--rules-filelegitrules.ymlCOMMIT_MESSAGE_TEXT_FILEFor ContributorsThis project usespoetryas its package manager. You don't necessarily needpoetryas you can simply install required packages withpipand run the
project directly from themainentry point. However,
you'll requirepoetryto run tests, and it makes life easier to use this
project.SetupYou can either:Run the setup script (can replacepython3with whatever command you use):python3./scripts/setup.pyOr, which is effectively the same, with less checks (can replacepython3with whatever command you use):python3-mvenv.venv
poetryenvuse.venv/bin/python
poetryinstall--withdevRunning CodeTo check that setup was successfuly, you can simply run:poetryrunlegitThis should output the command's help and usage. To test the main validation
flow, you can do something like below:poetryrunlegitvalidate--verbose--rules-fileresources/rulefiles/samples/simple.ymlresources/message/short_message.txtOverallpoetry run legitis equivalent tolegiton release, so you can use
this command to test anything as it would run on release.To run tests:poetryrunpytestFinally, to check that build works (does not include tests):poetrybuild
Package: legitfs
legitfs=======legit is a `FUSE <http://fuse.sourceforge.net/>`_-filesystem that mounts gitrepositories read only, allowing direct access to commits, tags and branchesthrough the filesystem. This allows you to browse old versions from inside yourfavorite editor, provided it doesn't produce a mess by trying to read the wholetree...legitfs is read-only and won't eat your data.legitfs 0.3 is the last version written for Python 2. legitfs 0.4 and onwardsare Python 3 only (they may run on 2.7, but are not tested on anything below3.3).Installation------------legitfs is available from PyPi::$ pip install legitfsIt uses fusepy_ which in turn means you need to have fuse development librariesand a C compiler installed. All other dependencies can work Python-only.Example usage-------------Try this in an empty directory after installing legitfs:::$ git clone git://github.com/mbr/simplekv.git$ git clone git://github.com/mitsuhiko/flask.gitCreate a mountpoint and mount the current directory:::$ mkdir _history$ legitfs _historylegitfs will run in the foreground (you can unmount with ``C-c``), so we cancontinue in another terminal::$ cd _history/$ lsflask  simplekv$ ls flask/.git/$ ls flask/.git/refs/heads/master$ ls flask/.git/refs/heads/master/treeartwork  CONTRIBUTING.rst  flask     MANIFEST.in  setup.cfg  tox.iniAUTHORS  docs              LICENSE   README       setup.pyCHANGES  examples          Makefile  scripts      tests``legitfs`` tries to recreate the directory-structure and also handles nestedrepositories or those that are in subdirectories. Of course, you can also mountjust one repository at the root.Objects are exposed in the ``objects/`` subdirectory, almost everything else isa symbolic link::$ cd flask/.git$ ls refs/tags0.1  0.10  0.10.1  0.2  0.3  0.3.1  0.4  0.5  0.6  0.6.1  0.7  0.7.1  0.7.20.8  0.8.1  0.9$ ls refs/tags/0.7/tree...$ head refs/tags/0.7/tree/README  -n 5// Flask //web development, one drop at a time
Package: legitindicators
Legit IndicatorsCollection of indicators that I used in my strategies.List of indicators:Simple Moving AverageExponential Moving AverageAverage True RangeSmoothed ATR - Super Smoother applied Average True RangeRolled Moving AverageAtrlimit - Average True Range implementation with a limit for using as a volatility indicatorSmoothed Atrlimit - Smoothed Average True Range implementation with a limit for using as a volatility indicatorRoofing Filter - Python implementation of the Roofing Filter indicator created by John EhlersSuper Smoother - Python implementation of the Super Smoother indicator created by John EhlersSZLADX - A low lagging upgrade of ADX indicator.True RangeDecycler - Python implementation of Simple Decycler indicator created by John EhlersDecycler Oscillator - Python implementation of Decycler Oscillator created by John EhlersHigh Pass FilterDamiani VolatmeterVoss - Python implementation of Voss indicator created by John EhlersHurst CoefficientKaufman Efficiency RatioEven Better Sine Wave - Python implementation of Even Better Sine Wave indicator created by John EhlersCube Transform - Python implementation of Cube Transform created by John EhlersSimple Harmonic OscillatorSmoothed Simple Harmonic Oscillator - Super Smoother applied Simple Harmonic OscillatorKaufman Adaptive Moving AverageLinear Regression CurveLinear Regression SlopeTrendFlex - Python implementation of TrendFlex indicator created by John EhlersCustom TrendFlex - Python implementation of TrendFlex indicator with customizable super smoother length, created by John EhlersAutomatic Gain Control - Python implementation of Automatic Gain Control created by John EhlersSmoothed SSL - Super Smoother Applied SSL indicatorBollinger Bands %BVolume Heat - A custom volume indicatorDouble Super Smoother - Two Super Smoother indicators for checking line crossesEMA Trailing - A trailing stop implementation using Exponantial Moving AverageMomentum Normalized - Normalized Momentum Indicator; Cube Transform appliedInstallationRun the following to install:pipinstalllegitindicators
Package: leglag
LegLagLegLag is an electronic structure theory program for exploring the unusual properties of one dimensional chemistry.
It was originally described in the paperMolecular electronic structure in one-dimensional Coulomb systems, and more background can be found in the following publications:P. F. Loos, C. J. Ball and P. M. W. Gill,Phys. Chem. Chem. Phys.17, 3196 (2015)C. J. Ball and P. M. W. Gill,Mol. Phys.113, 1843 (2015)C. J. Ball, P. F. Loos and P. M. W. Gill,Phys. Chem. Chem. Phys.19, 3987 (2017)
Package: leglib
LegLibLeglib is just a bunch of utility modules that I wrote and like to use. One very handy one is a rounding function that rounds to significant digits:leglib.fmt.sigdig.Source:https://github.com/joelegner/leglibInstallation$pipenvinstallleglibUsing>>>fromleglib.fmtimportsigdig>>>sigdig(3.843718473821748732184732)'3.84'>>>sigdig(3.843718473821748732184732,5)'3.84372'
Package: leglight
pyleglightA Python module designed to control theElgatobrand Lights. For use in automation or in lieu of theirControl Center app(when on a non-supported platform).About the lightsAs of this writing, the only compatible hardware is theElgato Key Light. This hardware operates on Wifi only, anounces itself on the network viamDNSand is controllable via JSONREST. As the lights are not-multicolored the only available controls are on/off, brightness (0-100), andcolor temperature(from 3000k to 7000k)ExamplesWhen you know the IP, you can do things manually:>>> import leglight
>>> myLight = leglight.LegLight('10.244.244.139',9123)
>>> print(myLight)
Elgato Light ABC12345689 @ 10.244.244.139:9123
>>> vars(myLight)
{'address': '10.244.244.139', 'port': 9123, 'name': '', 'server': '', 'productName': 'Elgato Key Light', 'hardwareBoardType': 53, 'firmwareBuildNumber': 192, 'firmwareVersion': '1.0.3', 'serialNumber': 'ABC12345689', 'display': 'Key Light One'}
>>> myLight.on()
>>> myLight.brightness(14)
>>> myLight.color(3500)
>>> myLight.off()
>>>Or you can use the discovery module:>>> import leglight
>>> allLights = leglight.discover(2)
>>> print(allLights)
[Elgato Light ABC987654321 @ 10.244.244.142:9123, Elgato Light ABC12345689 @ 10.244.244.139:9123]
>>> for light in allLights:
...     light.on()
...     light.brightness(5)
...     light.color(3400)LicenseMITCopyrightElgato, Key Light and other product names are copyright of their owner, CORSAIR.
Package: legoman
legomanSimple static website generator.Supports TOC, image captions, LaTeX, code highlighting and tables.DemoQuickstartpipinstalllegoman# in an empty directorylegomaninit
makehtml# run devserver (requires inotify-tools)makedevserverHow it worksFiles incontent/are rendered and copied tooutput/, so the directory structure of your rendered website matches the structure of your source files.For example, the democontent/:content
├── codehilite.css
├── index.j2
├── projects
│   ├── bar_proj
│   │   └── index.md
│   └── foo_proj
│       ├── cheetos_small.png
│       └── index.md
└── styles.cssyields thisoutput/output
├── codehilite.css
├── index.html
├── projects
│   ├── bar_proj
│   │   └── index.html
│   └── foo_proj
│       ├── cheetos_small.png
│       └── index.html
└── styles.cssCGILegoman can also render files individually, which is useful for CGI scripts on a webserver.TEMPLATE_DIR=/path/to/templates legoman_cgi example.mdOr for serving markdown with lighttpd:$HTTP["url"] =~ "\.md$" {
	setenv.set-environment = ("TEMPLATE_DIR" => "/path/to/templates/")
    cgi.assign = (
        ".md"  => "/path/to/legoman_cgi",
        ".j2"  => "/path/to/legoman_cgi",
    )
}UsageUsage: legoman [OPTIONS] COMMAND [ARGS]...

Options:
  --debug
  --content_dir PATH
  --output_dir PATH
  --template_dir PATH
  --help               Show this message and exit.

Commands:
  build   generate content
  init    initialize project
  single  render single fileSee alsoHugo- similar idea, but written in Go and uses Go's templating engineDozens of other static website generators
Package: lego-mp-skeleton
lego-micropython-skeletonBranchBuild StatusTest StatusTest CoverageCode GradeMasterDevNOTE: We have recently dropped support for python 2.7, please make sure you are developing on a machine with python >3.4DocumentationWe have recently merged out previous repolego-micropython-docswith this repo to simplify the updating process. You can find the docs hosted athttps://klutzybubbles.github.io/lego-micropython-skeleton/AboutSkeleton to help with linting programs using the MicroPython functions built for Lego EV3 MindstormsMaster branch is the branch that has been tested from python 3.4 to 3.7 based off of the functions that are listed in the documentation for lego ev3 python.Dev branch is for development to tests or updates in the ev3 python docs that need to be tested, although this package doesn't have any working code it is highly reccomended that you stick with the master branch so you dont get confused during developmentThis package contains NO WORKING CODE! all functions returnVersionsVersion spec MAJOR.MINOR.PATCH.(dev)YYYYMMDDBB with BB being the build number for that day (1-1000)InstallationBecause this project has no working code, there is no need to include it on the EV3 brick itself. Doing so will break the functionality of the project on the EV3.So to install the skeleton, on the development machine typepip install --upgrade lego-mp-skeleton, Generally development builds are not needed but if you would like to use them just add--preto the installation command.PyPiYou can find this project hosted on PyPi here:https://pypi.org/project/lego-mp-skeleton/ContributingContributing is easy :DFork the dev branchMake your changesMake a pull request into devLicenseI am in no way affiliated with Lego nor do i have any affiliation with the EV3 or EV3Dev platforms, this is a standalone package to help aid in developing Lego EV3 MicroPython programs.
Package: legos.apod
legos.apodFetch xkcd comics right from chat using this xkcd lego.Usage!apodreturns the latest photo!apod ror!apod randomwill return a random photo!apod [yyyy-mm-dd]will return the photo of corresponding dateAPI KeyThe NASA api has strict limits. These can be mitigated by getting anapi key. To add your api_key, send it in with adding your APOD as a baseplate child. It should look like this:baseplate_proxy.add_child(APOD, key=your_api_key_goes_here)Installationcd into the current directorypip3 install .This is a Lego designed for use withLegobot, so you'll get Legobot along with this. To deploy it, import the package and add it to the active legos like so:# This is the legobot stufffromLegobotimportLego# This is your legofromlegos.apodimportAPOD# Legobot stuff herelock=threading.Lock()baseplate=Lego.start(None,lock)baseplate_proxy=baseplate.proxy()# Add your legobaseplate_proxy.add_child(APOD,key=your_api_key_goes_here)TweakingWhile you can use this one as-is, you could also add a localized version to your Legobot deployment by grabbingapod.pyand deploying it as a local module.Example of a Legobot instance with local modulesContributingAs always, pull requests are welcome.
Package: legos.fact-sphere
# legos.fact-sphere[![Travis](https://img.shields.io/travis/drewpearce/legos.fact_sphere.svg)]() [![PyPI](https://img.shields.io/pypi/pyversions/legos.fact_sphere.svg)]() [![PyPI](https://img.shields.io/pypi/v/legos.fact_sphere.svg)]()[![PyPI](https://img.shields.io/pypi/wheel/legos.fact_sphere.svg)]() [![PyPI](https://img.shields.io/pypi/l/legos.fact_sphere.svg)]() [![PyPI](https://img.shields.io/pypi/status/legos.fact_sphere.svg)]()Fetch a random "fact" from the Portal2 Fact Sphere## Usage- `!fact` returns a random fact## InstallationYou can install locally (by cloning the repo) or from PyPi### Localcd into the current directory`pip3 install .`### From PyPi`pip3 install legos.fact_sphere`### Add to LegobotThis is a Lego designed for use with [Legobot](https://github.com/Legobot/Legobot), so you'll get Legobot along with this. To deploy it, import the package and add it to the active legos like so:```python# This is the legobot stufffrom Legobot import Lego# This is your legofrom legos.fact_sphere import FactSphere# Legobot stuff herelock = threading.Lock()baseplate = Lego.start(None, lock)baseplate_proxy = baseplate.proxy()# Add your legobaseplate_proxy.add_child(FactSphere)```## TweakingWhile you can use this one as-is, you could also add a localized version to your Legobot deployment by grabbing [fact_sphere.py](legos/fact_sphere.py) and deploying it as a local module. [Example of a Legobot instance with local modules](https://github.com/voxpupuli/thevoxfox/)## ContributingAs always, pull requests are welcome.
Package: legos.memes
legos.memesAutomatically create memes based on phrasing in this memes lego. Built using thememegen API, with inspiration derived from theHubot memecaptain API implementationThe Lego module system and Legobot are a FOSS project lovingly crafted byBren Briggsand friends. All code borrowed from Legobot is his (C).UsageAutodetectThis lego is invoked simply by speaking in meme phrases. Currently the following memes are supported (case insensitive.)y u no...Generates a Y U No guy meme with your text on it.yo dawg...Generates an Xzibit Yo Dawg meme with your message text on it.what if I told you...Generates a Morpheus What if I told you meme with your message text on it.one does not simply...Generates a Boromir One does not simply meme with your message text on it.brace yourselves...Generates a Ned Stark brace yourselves meme with your message text on it.why not bothGenerates a Why don't we have both girl meme.ermahgerd...Generates a Ermahgerd! girl meme with your message text on it.NO!Generates a Grumpy Cat meme.i have no idea what i'm doingGenerates a Computer Dog meme.it's a trapGenerates an Admiral Ackbar meme.can't... if you don't ...Generates a Roll Safe meme with your message on it.Manual InvocationYou can also generate memes manuall through the syntax<keyword>: <top line text>, <bottom line text>If you only want one line of text, simply don't include the comma.Example:fry: not sure if ai, or really fast coderwould generate this meme:You can get a list of keywords in chat via!help memes listor you can visitMeme Keyword ListCustom TemplatesYou can generate memes with a custom image as well. Simply pass in a dictionary to the keywordconfigwhen adding the lego to the baseplate.baseplate_proxy.add_child(Memes,font='impact',config={'templates':{'code':{'name':'My Custom Template','custom':'http://...'}}})code is the code you want to use to trigger the custom templatename is whatever name you want to usecustom is the url to the custom background templateInstallationpip3 install legos.memesThis is a Lego designed for use withLegobot, so you'll get Legobot along with this. To deploy it, import the package and add it to the active legos like so:# This is the legobot stufffromLegobotimportLego# This is your legofromlegos.memesimportMemes# Legobot stuff herelock=threading.Lock()baseplate=Lego.start(None,lock)baseplate_proxy=baseplate.proxy()# Add your legobaseplate_proxy.add_child(Memes,font='impact')# font adding is optionalTweakingWhile you can use this one as-is, you could also add a localized version to your Legobot deployment by grabbingmemes.pyand deploying is as a local module.Example of a Legobot instance with local modulesContributingAs always, pull requests are welcome.
Package: lego-store-availability
LEGO™ store availabilityCheck the availability of Lego™ product in stores.DisclamerThis tools is not related in any way to LEGO™ and all of it's trademark.This tools is not designed for malicious usage and any individual or group using it this way is responsible for is own actions.Installpip3installlego-store-availabilityUsageFirst you need to create aStoreobject :fromlego_store_availabilityimportStorestore=Store(lang="fr-fr")Then request aProduct:fromlego_store_availabilityimportProductproduct=Product(id="ahsoka-tano-40539")product.load(store)print(product.name,product.availability)ExampleYou can use the example inexample folder:PYTHONPATH=src/python3example/main.pyexample/config.ymlResult :LeTajMahal21056==>instock
AhsokaTano™40539==>outofstock
DoctorWho21304==>outofstockContributeClone or fork the repository.Install dev dependencies withpip3 install -r dev-requirements.txtDevelop your feature or fixLint withpylintTest it withpytestundertests/directoryMock HTTP requests withresponsesPush & create a Pull Request ondevelopbranchWait for the CI (Github Action) to exit in success state
Package: legos.wtf
Wikipedia Top Finder====================|Travis| |PyPI| |PyPI||PyPI| |PyPI| |PyPI|Ever wish you could do an "I'm feeling lucky" search on Wikipedia rightfrom chat? Want to be able to pull up a wikipedia link right there inthe group and settle the debate once and for all? This module willsearch the English langauge Wikipedia for the query you provide andreturn the URL for the top matching page.Usage-----This lego listens for ``!wtf`` at the beginning of a message andprocesses everything after it as a query.Example: ``!wtf python`` will returnhttps://en.wikipedia.org/wiki/PythonInstallation------------``pip3 install legos.wtf``This is a Lego designed for use with`Legobot <https://github.com/bbriggs/Legobot>`__, so you'll get Legobotalong with this. To deploy it, import the package and add it to theactive legos like so:.. code:: python# This is the legobot stufffrom Legobot import Lego# This is your legofrom legos.wtf import WikipediaTopFinder# Legobot stuff herelock = threading.Lock()baseplate = Lego.start(None, lock)baseplate_proxy = baseplate.proxy()# Add your legobaseplate_proxy.add_child(WikipediaTopFinder)Tweaking--------While you can use this one as-is, you could also add a localized versionto your Legobot deployment by grabbing `wtf.py <legos/wtf.py>`__ anddeploying is as a local module. `Example of a Legobot instance withlocal modules <https://github.com/voxpupuli/thevoxfox/>`__Contributing------------As always, pull requests are welcome... |Travis| image:: https://img.shields.io/travis/bbriggs/legos.wtf.svg:target:.. |PyPI| image:: https://img.shields.io/pypi/pyversions/legos.wtf.svg:target:.. |PyPI| image:: https://img.shields.io/pypi/v/legos.wtf.svg:target:.. |PyPI| image:: https://img.shields.io/pypi/wheel/legos.wtf.svg:target:.. |PyPI| image:: https://img.shields.io/pypi/l/legos.wtf.svg:target:.. |PyPI| image:: https://img.shields.io/pypi/status/legos.wtf.svg:target: