Saravanan666/pypi-org huggingface dataset:
Package: luanspaceship
Luan SpaceshipA simple Python Command-Line Interface script that prints a variable-size spaceship!Explore the docs »View Demo·Report Bug·Request FeatureTable of ContentsAbout The ProjectInstallationPrerequisitesInstallingUsageLicenseContactAcknowledgmentsAbout The ProjectLuanspaceship is a really simple Command-Line Interface written in Python3 that prints an ASCII spaceship in function of a length given via flag. Aditionally, output can be copied into clipboard, change colors of spaceship printed (only for console visual purposes) and a couple of others functions.This is a little project written forScience & Commit // Workshop 2022.(back to top)InstallationThis simple project needs a few Python3 packages to run properly.Prerequisitespip(if you have already installedpipyou can ignore this subsection)If for some reason you have not installedpipwith Python3 (which would be... weird) try this:Download the script, fromhttps://bootstrap.pypa.io/get-pip.pyOpen a terminal/command prompt,cdto the folder containing theget-pip.pyfile and runOn Linux/MacOS:python3 get-pip.pyOn Windows:py get-pip.pyFor more options you can also checkofficial Python 'pip' documentation.InstallingOption 1:pip installpipinstallluanspaceshipOption 2: Install manuallyClone the repogitclonehttps://github.com/Panchitoz1/luanspaceship.gitEnsuresetuptoolspackage is updated:python3-mpipinstall--upgradesetuptoolsInstall usingsetup.pypython3setup.pyinstallThis should also install all package-dependences and program should run without problems.(Optional to fix 'Module error') If for some reason when run the program in terminal Python returns a Module error due to some packages not being found, try this:Ensure you are in the repo directory:cd/path/to/repo/LuanSpaceshipOnce there, simply run:pipinstall-rrequirements.txtand try re-running command from Step 3.(back to top)UsageFirst of all you can type in your terminal the following command:luanspaceshipIf everything runs fine it should print an ASCII spaceship with length 5 (which is default value if-lengthflag is not provided).For general purposes to print an ASCII spaceship of length<integer-number>we can simply run:luanspaceship-length<integer-number>Another example could be if you want to print an ASCII spaceship with length 8 and also want to copy the ASCII art result into your clipboard:luanspaceship-length8-clipboardYou can also change color combinations using-colorstyleflag and/or adding some attributes/styles when being displayed with-styleflag. For example:luanspaceship-colorstyleocean-styleblinkTo check all flags and functions available I recommend check short help-page running:luanspaceship-h(back to top)LicenseDistributed under the MIT License. CheckLICENSEfile for more information.(back to top)ContactFrancisco Carrasco Varela - email:ffcarrasco@uc.clProject Link:https://github.com/Panchitoz1/luanspaceship(back to top)AcknowledgmentsScience & Commit // Workshop 2022(back to top)
Package: luaparser
py-lua-parserA Lua parser and AST builder written in Python.It’s both a development library and a command line tool.Installation:The package can be installed throughpip:$ python3.6 -m pip install luaparserIt will install the shell command ‘luaparser’.OptionsThese are the command-line flags:Usage: luaparser [options] filenameCLI Options:
  --version                     Show program's version number and exit
  -h, --help                    Show this help message and exit
  -s, --source                  Source passed in a string
  -x, --xml                     Set output format to xml
  -o, --output                  Write output to fileQuickstartNode structureEach node contains the following data:classNode:"""Base class for AST node."""comments:Commentsfirst_token:Optional[Token]last_token:Optional[Token]start_char:Optional[int]stop_char:Optional[int]line:Optional[int]Working on AST treeMinimal exemple:fromluaparserimportastsrc="""
    local function sayHello()
      print('hello world !')
    end
    sayHello()
    """tree=ast.parse(src)print(ast.to_pretty_str(tree))will display:Chunk: {} 1 key
  body: {} 1 key
    Block: {} 1 key
      body: [] 2 items
        0: {} 1 key
          LocalFunction: {} 3 keys
            name: {} 1 key
              Name: {} 1 key
                id: "sayHello"
            args: [] 0 item
            body: [] 1 item
              0: {} 1 key
                Call: {} 2 keys
                  func: {} 1 key
                    Name: {} 1 key
                      id: "print"
                  args: [] 1 item
                    0: {} 1 key
                      String: {} 1 key
                        s: "hello world !"
        1: {} 1 key
          Call: {} 2 keys
            func: {} 1 key
              Name: {} 1 key
                id: "sayHello"
            args: [] 0 itemYou can run through the list of all the nodes in the tree using ast.walk(tree):fromluaparserimportastfromluaparserimportastnodestree=ast.parse("local foo = 'bar'")fornodeinast.walk(tree):ifisinstance(node,astnodes.Name):process(node)Alternatively, you can use a node visitor:fromluaparserimportastfromluaparserimportastnodessrc="local a = 42"classNumberVisitor(ast.ASTVisitor):defvisit_Number(self,node):print('Number value = '+str(node.n))tree=ast.parse(src)NumberVisitor().visit(tree)Rendering lua codeWarningExperimental featureexp=Chunk(Block([Forin(targets=[Name('k'),Name('v')],iter=[Invoke(source=Name('bar'),func=Name('foo'),args=[Number(42)])],body=Block([Call(func=Name('print'),args=[Name('k'),Name('v')])]),)]))print(ast.to_lua_source(exp))Will render:fork,vinbar:foo(42)doprint(k,v)endCommand lineGiven:localfunctionlog(msg)print(msg)endlog("hello world !")$luaparsersource.luaWill output:{"Chunk":{"body":{"Block":{"body":[{"LocalFunction":{"name":{"Name":{"id":"log"}},"args":[{"Name":{"id":"msg"}}],"body":{"Block":{"body":[{"Call":{"func":{"Name":{"id":"print"}},"args":[{"Name":{"id":"msg"}}]}}]}}}},{"Call":{"func":{"Name":{"id":"log"}},"args":[{"String":{"s":"hello world !"}}]}}]}}}}Command lineDocumentation can be built with Sphinx:$ cd doc
$ pip install -r requirements.txt
$ make html
Package: luapatt
A Python 3.3+ implementation of theLua language’spattern matching
functions. Lua’s pattern matching is simpler than regular expressions
and lacks several features that regexes have, such as|for
alternation, but also contains some features difficult or impossible to
duplicate in most regex flavors, such as the ability to easily match a
balanced pair of parentheses (or any two other characters).Installationpip install luapattDocumentationFor documentation on how pattern matching works, please read theLua
reference manual. This library contains the following differences from
stock Lua:%c,%g,%p, and their negated counterparts are not
available; attempting to use them will raise the built-inNotImplementedError.Other character classes that rely on the meaning of a character call
Python’sstr.is*family of methods, and so use the Unicode
definition of that meaning.String positions are zero-based instead of one-based, reflecting the
fact that Python is generally zero-based (as opposed to Lua, which
has one-based indexes). This affects position captures and the
indexes returned as the first two results fromfind().Function return values are combined into a tuple, as is standard with
Python. However, singleton tuples are not returned; the single value
is returned directly instead.gsub()doesnotreturn the number of substitutions by default,
instead returning only the new string. To get the count, pass the
named argumentcount=Trueto the call (which will result in a
2-tuple of the new string and the count).An extra function,set_escape_char(), is provided to change the
escape character. It takes one argument: the new escape character,
which must be astrobject of length 1. The escape character
cannot be set to any of the other special characters. While it is
possible to set it to a letter or number, this is not recommended as
it may interfere with other aspects of pattern matching, and doing so
may be disallowed in the future.NOTE:Becauseset_escape_charmodifies global state, it isnotthread-safe.Unlike Lua, which has no notion of a Unicode string and assumes all
characters are one byte in length, this library operates on full
Unicode strings (i.e.strobjects). If you pass bytes objects to
this library, the behavior is undefined.LicensingAs with Lua itself, this library is released under the MIT License.
Package: luaproject
luaprojectUse python package to manage lua&kong plugin, so that the plugin can be published to pypi server. A temporary solution for PYTHONER using lua&kong.InstallpipinstallluaprojectInstalled Command Utilsluaprojectcommand usageC:\Workspace>luaproject
Usage:luaproject[OPTIONS]COMMAND[ARGS]...

Options:--helpShowthismessageandexit.

Commands:initInitluaproject.Exampleexample files.
./example
./example/src
./example/src/.rockspec
./example/src/lua
./example/src/lua/handler.lua
./example/src/lua/schema.lua
./example/__init__.py
./LICENSE
./manage_example.py
./MANIFEST.in
./README.md
./requirements.txt
./setup.pycontent of .rockspecpackage = "example"
version = "0.1.0-1"
source = {
    url = "example-0.1.0-1.zip"
}
description = {
    summary = "lua plugin example",
}
dependencies = {
    "lua >= 5.1, < 5.4",
}
build = {
    type = "builtin",
    modules = {
        ["kong.plugins.example.handler"] = "lua/handler.lua",
        ["kong.plugins.example.schema"] = "lua/schema.lua",
    }
}content of example_manager.pyimportosfromluaprojectimportLuaProjectManagerimportexampleapplication_root=os.path.abspath(os.path.dirname(example.__file__))manager=LuaProjectManager(application_root).get_manager()if__name__=="__main__":manager()content of setup.pysetup(
    ...
    entry_points={
        "console_scripts": [
            "manage-example = manage_example:manager",
        ]
    },
)usage of manage-exampleUsage:manage-example[OPTIONS]COMMAND[ARGS]...

Options:--helpShowthismessageandexit.

Commands:installCreatealuapackageandtheninstallit.packCreatealuapackage.Releasesv0.3.3 2020/11/06Remove luaproject.get_version in example/setup.py to fix install problem.v0.3.2 2020/08/27Add default .gitignore in lua project template.v0.3.1 2020/08/27Fix setup.py, add py_module parameter to fix luaproject not installed problem.Fix template content replace problem.v0.3.0 2020/08/26Rename from kong-plugin-local-manager to luaproject.manage-example.pack command add username parameter to create a rockspec file that can use in uploading tohttps://luarocks.org/.Auto calc sdist version from .rockspec file.v0.2.0 2020/07/31Add kong-plugin-local-manager command tools.v0.1.0 2020/07/30First release.
Package: lua-resty-fastutils
lua-resty-fastutilsCollection of simple utils.Installpipinstalllua-resty-fastutilsLUA Modulesresty.fastutils.httpclientutilsapi_callresty.fastutils.kongutilsset_request_headerget_request_dataresty.fastutils.redisutilsget_redissismemberget_json_dataInstalled Command Utilsmanage-lua-resty-fastutilsUsageUsage:manage-lua-resty-fastutils[OPTIONS]COMMAND[ARGS]...

Options:--helpShowthismessageandexit.

Commands:installCreatealuapackageandtheninstallit.packCreatealuapackage.Releases0.5.9-1 2021/03/08get_request_data support different field name for bodies, queries, headers, cookies.0.5.6-1 2020/11/12Noop.0.5.4-1 2020/11/04Rename resty.fastutils.httputils to resty.fastutils.httpclientutils.Fix redisutils.Change httpclientutils and redisutils' response data structure to (success, result, error_message).Add kongutils.0.2.0-1 2020/08/27First release under new framework.
Package: luascli
OverviewThis is a CLI tool that helps you to get LUAS Irish Transport information. This tool is based on theLuas Forecasting APIintegrated with theOpen Street Map APIluascliis licensed under the MIT license.DisclaimerThis project contains Irish Public Sector Data licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) licence. You can find more information about the license atOpen License.DemoBasic informationThis CLI uses the following format:luas command <arguments> [parameters]where<argument>: commands can have arguments and/or optional parameters. The most comonn is the<stop>which means the abbreviated stop name. You can get it fromstopscommand. Another one is<line>which could be red/green.How to installpip install luascliUsageUsage: luas [OPTIONS] COMMAND [ARGS]...

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  address  Display the address of the Luas stop
  fare     Calculate the fare price for adults and child between stops
  map      Launch Openstreet map URL with the stop location
  status   Check if the Luas stop is operational
  stops    List luas line stop names and its abbreviations (used in other commands)
  time     Display the the inbound/outbout timetable of a particualr luas stopExamples:# Show all red luas stops and their abbreviations (to be used with other commands)
luas stops red

# Show the operational status of Citywest stop
luas status cit

# Show in your browser, the location of Citywest Luas Stop
luas map cit

# Display the address of a luas stop
luas address cit

# Display the inbound/outbound time table on Citiwest luas stop in json format
luas time cit --format json

# Calculate Luas Fare
luas fare cit jer --adults 2 --children 1
Package: luas.py
# Introduction[![Build Status](https://travis-ci.org/ronanmu/luas.py.svg?branch=master)](https://travis-ci.org/ronanmu/luas.py) [![Coverage Status](https://coveralls.io/repos/ronanmu/luas.py/badge.svg)](https://coveralls.io/r/ronanmu/luas.py) [![PyPI version](https://badge.fury.io/py/luas.py.svg)](https://badge.fury.io/py/luas.py)luas.py is a python module providing an interface to the the Luas Forecasting API from [data.gov.ie](https://data.gov.ie/dataset/luas-forecasting-api/resource/078346e0-fe7f-4e71-9c51-21c78520dc3d).luas.py is licensed under the MIT license.Getting started===============This module permits you to request:* details for all trams at a stop* trams in a particular direction at a stopIt validates that the stop names exist in data set available at [data.gov.ie](https://data.gov.ie/dataset/luas-network-2012-stops-itm). Note that the stop abbreviation or name can used when querying the Luas API, e.g.:```commandline'BAL' or 'Balally''RAN' or 'Ranelagh''MYS' or 'Mayor Square - NCI'```Requirements------------luas.py requires:* requests>=2.0Install-------```commandlinepip install luas.py```# Usage```pythonimport luas.apifrom luas.api import LuasLine, LuasDirectionluas_client = luas.api.LuasClient()# This will return the status text for the Green Linegreen_line_status = luas_client.line_status(LuasLine.Green)# This will return the next tram from Balally, in the default direction (inbound)next_bal = luas_client.next_tram('BAL')# This will return the next outbound tram from Ranelaghnext_ran = luas_client.next_tram('RAN', LuasDirection.Outbound)# Return raw JSON for a stopstop_details = luas_client.stop_details('Balally')```Developer=========luas.py is hosted by Github at https://github.com/ronanmu/luas.py.Code has been tested with the following before commit:```commandlineflake8 luaspylint luascoverage run --source luas -m unittest discover tests```Copyright (c) 2018 Ronan Murray.
Package: luatables
luatablesLua tables in PythonExample usage:fromluatableimportTabletbl=Table()tbl["x"]=5tbl.y=45print(tbl)#> {'x': 5, 'y': 45}print(tbl.x)#> 5tbl.z={}tbl.z.hi="Hi!"print(tbl)#> {'x': 5, 'y': 45, 'z': {'hi': 'Hi!'}}print(tbl.z.hi)#> "Hi!"print(tbl["z"]["hi"])#> "Hi!"These function identically to Lua tables, except that metatables are not supported.
Package: lubar
Basic usage:importtimefromlubarimportProgressBartotal=100bar=ProgressBar(total)foriinbar(range(total)):time.sleep(0.05)Keyword Arguments:size: size of the progress bar (default to37)description: progress description (default to'')file: file object to print progress bar to it (default tosys.stdout)progressed_char: progress character (default to'#')remained_char: remain character (default to'.')enclosing_chars: characters to enclose progress bar between them (default to('[', ']'))join_char: character to join progress bar parts (default to'  ')Note: All attributes can be updated at run time. I designed this progress bar to train deep learning models in PyTorch. I needed a progress bar to update it description in training loops to print model's losses values.Special credit toeusoubrasileiro. I designed this progress based on his answer inStack Overflow
Package: lubepy
LubepyLubepyis a library that provides a set of basic calculations related to machinery lubrication. It's thought to be used by machinery lubrication technicians and engineers to quickly solve urgent lubrication problems on field.InstallationYou might want to create a Pythonvirtualenvbefore you installLubepy. If so, you can run the following commands:$python3-mvenvvenv
$sourcevenv/bin/activate(venv)$Once you have thevirtualenvin place and activated, you can installLubepyas follows:On Linux systems:(venv)$pipinstalllubepyUsage ExamplesSay you need to find the viscosity index of an oil. The oil has a viscosity at 40ºC of 104.7 cSt and a viscosity at 100ºC of 13.9 cSt. You can do something like this:fromlubepy.lube.viscosityimportviscosity_indexviscosity_index(104.7,13.9)# Output: 134The viscosity index of an oil gives you an idea of how fast the viscosity diminishes when the temperature increases.Now, suppose you have an oil with a viscosity index of 130 and a viscosity at 40ºC of 112 cSt. You need to know what will be the viscosity of your oil at 100ºC degrees. To solve this problem you can do something like this:fromlubepy.lube.viscosityimportviscosity_at_100viscosity_at_100(112,130)# Output: 14.38Most engines work at 100ºC, so it's important to know what will be the viscosity of an engine oil at 100ºC to have an idea of how well this oil will protect your engine.There are a lot more calculations that you can perform withLubepy. Unfortunately, they're not documented yet. If you want to get some additional information about the calculations implemented byLubepy, then you can do something like this:>>>fromlubepy.lubeimportviscosity>>>help(viscosity)# Output
Help on module lubepy.lube.viscosity in lubepy.lube:

NAME
    lubepy.lube.viscosity - This module provides viscosity calculations.

FUNCTIONS
    viscosity_at_100(viscosity40: float, index: float) -> float
        Calculate the Kinematic Viscosity (KV) at 100°C.

        Valid for viscosities between 2 and 500 cSt at 100°C.

    viscosity_at_40(viscosity100: float, index: float) -> float
...AuthorsLeodanis Pozo Ramos – Twitter:@lpozo78– E-mail:lpozor78@gmail.comAlexis Vega Jimenez: Provided formulas and theoretical support.Contribute to the CodeMake a fork (https://github.com/lpozo/lubepy/fork)Clone your fork locally (git clone https://github.com/your_user_name/lubepy.git)Create your feature branch (git checkout -b feature_awesome_feature)Commit your changes (git commit -am "Add some awesome feature")Push to the branch (git push -u origin feature_awesome_feature)Create a new Pull Request against thedevelopbranchWait for code review and feedbackLicenseLubepy is distributed under the GNU General Pubic License, v2. SeeLICENSEfor more information.
Package: luca
Thelucacommand lets you manage your finances
using the same tools you use to manage the rest of your life:
plain-text files, version control, and the command line.The name is pronouncedlew-chabecause it is Italian.
The tool is named for Luca Pacioli,
the Franciscan friar credited with the invention
of double-entry bookkeeping.Project resources:DocumentationSource code on GitHubIssue tracker on GitHub
Package: luca-klio-lambda-sdk
luca-klio-lambda-sdkThe python package luca-klio-lambda-sdk is both a library and SDK for lambda functions used in conjunction with Klio a product ofLuca Medical Systems.KlioKlioemploys a robust, secure, cloud-based platform for managing QA data. QA data can be accessed from any computer with internet access and a valid account. Say goodbye to local server installations, operating system restrictions, and hassles with software upgrades.Klio’s robust backend permits data mining to monitor and predict machine performance. Both data and procedures are tracked for usage, leading to clinical standardization.UsageThis library contains various built in functions to help you connect AWS lambda’s to your Klio data and allow for indepth analysis.LicenseThe luca-klio-lambda-sdk library and SDK are licensed under the MIT License.This license granting you permission to use, share and modify the software at no additional cost and comes with no restrictions on commercial use except the work must be attributed. See the license or read this faq for more information.FAQ:https://www.tawesoft.co.uk/kb/article/mit-license-faq
Package: lucam
Lucam is a Python library that provides two interfaces to the Lumenera(r)
LuCam API:API, a low level ctypes interface to the lucamapi.dll version 5,
exposing the definitions/declarations found in the lucam.h C header.Lucam, a high level object interface wrapping most of the ctypes
interface, featuring exception based error handling and numpy.array type
images.Author:Christoph GohlkeLicense:BSD 3-ClauseVersion:2022.9.27RequirementsCPython >= 3.7Numpy 1.15Lumenera USB camera and drivers 5.0Revisions2022.9.27Update metadata.2021.6.6Remove support for Python 3.6 (NEP 29).2020.1.1Remove support for Python 2.7 and 3.5.Notes“Lumenera” is a registered trademark of Lumenera Corporation (1).Lucam is no longer being actively developed.Lucam has been tested with the Lu165M monochrome camera on Windows only.Some LuCam API functions are not available in the Lucam wrapper due to
lack of documentation or hardware for testing.Naming of functions, methods, and constants that have an equivalent in
the LuCam API follows the LuCam API conventions, else PEP8 is followed.ReferencesLumenera CorporationLumenera USB Camera API Reference Manual Release 5.0. Lumenera Corporation.Examples>>> from lucam import Lucam
>>> camera = Lucam()
>>> image = camera.TakeSnapshot()
>>> camera.SaveImage(image, 'test.tif')
>>> camera.CameraClose()Refer to the test() function at the end of the module for more examples.
Package: lucas
lib-namestep to commit:
    step rename:
        rename:
        ./
        |__src/
            |__packge_name/
        to your package name
    step edit:
        edit:
            ./
            |__setup.cfg
        name, version, author, author_email
    step build:
        step-1:
            make a pypi account
        step-2:
            run code on command line:
                Unix/macOS:
                    python3 -m pip install --upgrade build
                    python3 -m pip install --upgrade twine
                    python3 -m build
                    twine upload dist/*
                Windows:
                    py -m pip install --upgrade build
                    py -m pip install --upgrade twine
                    py -m build
                    twine upload dist/*Uploading distributions tohttps://test.pypi.org/legacy/Enter your username:[your username]Enter your password:[your password, this is hidden]Uploadingpackage-name-version-py3-none-any.whl100%|█████████████████████| 4.65k/4.65k [00:01<00:00, 2.88kB/s]Uploadingpackage-name-version.tar.gz100%|█████████████████████| 4.25k/4.25k [00:01<00:00, 3.05kB/s]
Package: lucasex1
lucasex1lucasex1Ã© um simples pacote para exibir nÃºmeros de 1 a 9 em Python.DependÃªnciasPython 3.6ou posteriorPacotenumpyComeÃ§ando o usoVocÃª vai precisar instalar o pacotelucasex1, para isso basta executar:pip install lucasex1FunÃ§Ã£oexibir ()- Mostra nÃºmeros de 1 a 9
Package: lucasmcgregor.knightstour
Knights Tour 0.1.xA very simple implementation of the knights tour. Intended to create a lot of data work with a little bit of code.InstallationUse poetry to install packageTo run a tour:poetryrunknightstourUsagefromlucasmcgregor.knightstour.KnightstourimportKnightstourfromlucasmcgregor.knightstour.TourReporterimportTourReportertours=TourReporter(logging=False)board=Chessboard(x_size=8,y_size=8,reporter=tours)board.solve_board()print("moves checked:{0}".format(tours.moves))print("we found{0}tours".format(tours.tours_count))LicenseMIT