Saravanan666/pypi-org huggingface dataset:
Package: lmtk
lmtkInteractively play with GPT-based tools from the terminalDescription(TODO: Update README with information about other modes, config profiles, scripting, JS sandbox, and Jupyter integration)ChatGPT needs a power-user mode.lmtkgives you a terminal UI for interacting with ChatGPT and other GPT-based tools.The default mode,synth-chat, uses a ChatGPT-like chatbot built directly from GPT-3. It supports features not possible with ChatGPT, including:Writing the prefix of the next responseGiving instructions that will always be followed and never forgettenThis project is still in theearly stagesof development. It will have bugs and frequent breaking changes.InstallFor now, Python >=3.9 is required. Usepip3instead ofpipif necessary.pipinstall-Ulmtk[extras]If you are having trouble with the TensorFlow dependency, you can exclude it:pipinstall-UlmtkThis will disable automatic code syntax detection, but mostlmtkmodes are good about manual syntax annotation.If you don't have an OpenAI API keycreate one hereand set it:exportOPENAI_API_KEY="<your api key>"Usagelmtk@thread-name[-mmode-name]Uselmtk modesto list available REPL modes andlmtk threadsto list open threads.Inside the REPL, type.helpfor a list of commands and keyboard shortcuts.TipsConversation SeedsConversation seeds give you extremely strong influence over the chatbot's behavior..seed You must write your message using only lowercase lettersAll future responses will only use lowercase letters (usually). Seeds are never forgotten. Seeds are best phrased as statements of fact or commands. See.helpfor examples.Forced Response PrefixIf you aren't getting a response you like, you can directly specify how the next response must start using:>. For example, if you send:Give me Pong in Pygame :> Here is the code:Then the response will start withHere is the code:.Useful CommandsSee.helpfor a full list, but these are some particularly important commands:.clearorC-x + C-cto clear the screen.exitorC-dto exit the REPL.neworC-x + C-nto reset the thread.redoorC-x + C-rto resample the response.undoorC-x + C-uto rewrite your most recent messageCustom ModesAdd a Python file thatlooks like thisto$LMTK_CONFIG_PATH/plugins/. By default this will be~/.config/lmtk/plugins/.Seelmtk/modesfor more complete examples.DevelopmentTo installlmtkfrom source:gitclonegit@github.com:veered/lmtk.gitcdlmtk
pipinstall-Uflit
flitinstall-sScreenshot
Package: lmu
Legendre Memory Units: Continuous-Time Representation in Recurrent Neural NetworksNoteThis is a metapackage for installing LMU implementations. It does not contain any
code itself. See the list of implementations below.PaperThe LMU is a novel memory cell for recurrent neural
networks that dynamically maintains information across long windows of time using
relatively few resources. It has been shown to perform as well as standard LSTM or
other RNN-based models in a variety of tasks, generally with fewer internal parameters
(seethis paperfor more details). For the Permuted Sequential MNIST (psMNIST) task in particular, it has been demonstrated to outperform the current state-of-the-art results. See the note below for instructions on how to get access to this model.The LMU is mathematically derived to orthogonalize its continuous-time history – doing
so by solvingdcoupled ordinary differential equations (ODEs), whose phase space
linearly maps onto sliding windows of time via the Legendre polynomials up to degreed− 1 (the example ford= 12 is shown below).A single LMU cell expresses the following computational graph, which takes in an input
signal,x, and couples a optimal linear memory,m, with a nonlinear hidden
state,h. By default, this coupling is trained via backpropagation, while the
dynamics of the memory remain fixed.The discretizedAandBmatrices are initialized according to the LMU’s
mathematical derivation with respect to some chosen window length,θ.
Backpropagation can be used to learn this time-scale, or fine-tuneAandB,
if necessary.Both the kernels,W, and the encoders,e, are learned. Intuitively, the kernels
learn to compute nonlinear functions across the memory, while the encoders learn to
project the relevant information into the memory (seepaperfor details).LMU implementationsKerasLMU: Implementation of LMUs in Keras (this
is the original LMU implementation, which used to be referred to generically
astheLMU repo).ExamplesState of the art performance on psMNIST using KerasLMULMUs in Nengo (with online learning)Spiking LMUs in Nengo Loihi (with online learning)LMUs in NengoDL (reproducing SotA on psMNIST)Citation@inproceedings{voelker2019lmu,
  title={Legendre Memory Units: Continuous-Time Representation in Recurrent Neural Networks},
  author={Aaron R. Voelker and Ivana Kaji\'c and Chris Eliasmith},
  booktitle={Advances in Neural Information Processing Systems},
  pages={15544--15553},
  year={2019}
}Release history0.4.0 (November 10, 2021)ChangedUpdated to use KerasLMU 0.4. (#2)0.3.0 (November 6, 2020)The version of this package as it existed prior to 0.3.0 has been renamed
tokeras-lmu. This package will continue as a metapackage for installing
multiple LMU implementations.
Package: lmu-meteo-api
LMU Meteo Data APIThe LMU provides free high-quality meteodata through a web API, that can be accessed without authentification. This package should help to acess the API and return the data as dataframe.The package is published on PyPi for easy installation using pip.API documentationhttps://www.meteo.physik.uni-muenchen.de/request-beta/How to installpip install lmu_meteo_apiFor developersSet up you virtual environmentpython3.10-mvenv.venvInstall dependenciespoetryinstall(Optional) Publish new packagepoetrybuild
poetrypublish
Package: lmwsip
lmwsipIntroductionlmwsip is a python library for the lmw sip protocol.PackageThe lmwsip package contains the class LmwSip to connect to theLMWmeetnet using de SIP protocol. The library contains documentation
how to use it.InstallingJust install the package with 'pip':pip install lmwsipExamplesUsername passwordAll examples contain "USER", "PASS".
These values should be replaced by real credentials.
Otherwise the connection fails.Use send (low level)fromlmwsipimportLmwSipsip=LmwSip(ssl=True,host="sip-lmw.rws.nl",port=443)sip.send("LI user,pass\r")print("< [%s]"%(sip.recv().strip('\r')))sip.send("TI LMW\r")print("< [%s]"%(sip.recv().strip('\r')))sip.send("LO\r")print("< [%s]"%(sip.recv().strip('\r')))Use valuefromlmwsipimportLmwSipsip=LmwSip("USER","PASS")print(sip.ti())print(sip.value("WN","HOEK","H10"))sip.logout()Use timeseriesfromlmwsipimportLmwSipfromdatetimeimportdatetime,timedeltafrompprintimportpprintend=datetime.now()start=end-timedelta(hours=1)sip=LmwSip("USER","PASS")pprint(sip.timeSerie("WN","HOEK","H10",start,end).ts)lmwsip.run$ python -m lmwsip.run /tmp/hoek-h10.sip 
> [LI USER,PASS]
< [! ]
> [TI LMW]
< [! 08-SEP-20 12:03:27]
> [WN LMW,HOEK,H10,-01:00,08-09-2020,11:50,DATA]
< [! -17/50;-21/50;-24/50;-26/50;-27/50;-28/50;-28/50]
> [LO]
< [! ]Unit testsThe code containts a python unittest.This code runs a dummy sip server and runs a number of test against the dummy
server.Git pre commit hookThere is a pre-commit `githooks/pre-commit' with two functions:Updating the__version__in the module from setup.pyRunning the unit test code.Running a syntaxt test.
Package: lm-zoo
Language Model ZooThe Language Model Zoo is an open-source repository of state-of-the-art
language models, designed to support black-box access to model predictions and
representations. It provides the command line toollm-zoo, a standard
interface for interacting with language models.You can uselm-zootocompute language model predictions at the word level,extract token-level surprisal data (popularly used in psycholinguistic
experiments), andpreprocess corpora according to a language model's particular tokenization
standards.Quick links:QuickstartSupported modelsContributing modelsGetting startedRunning language models from this repository requiresDocker.You can install thelm-zooviapip:$ pip install lm-zooList available language models:$ lm-zoo list
gpt2
        Image URI:  docker.io/cpllab/language-models:gpt2
        Full name: None
        Reference URL: https://openai.com/blog/better-language-models/
        Maintainer: None
        Last updated: None
RNNG
        Image URI:  docker.io/cpllab/language-models:rnng
        Full name: None
        Reference URL: TODO
        Maintainer: None
        Last updated: None
ordered-neurons
        Image URI:  docker.io/cpllab/language-models:ordered-neurons
        Full name: None
        Reference URL: https://github.com/yikangshen/Ordered-Neurons
        Maintainer: None
        Last updated: None
...Tokenize some text according to a language model's standard:$ wget https://cpllab.github.io/lm-zoo/metamorphosis.txt -O metamorphosis.txt
$ lm-zoo tokenize gpt2 metamorphosis.txt
Pulling latest Docker image for cpllab/language-models:gpt2.
One Ġmorning , Ġwhen ĠGreg or ĠSam sa Ġwoke Ġfrom Ġtroubled Ġdreams , Ġhe Ġfound Ġhimself Ġtransformed Ġin Ġhis Ġbed Ġinto Ġa Ġhorrible Ġver min .
He Ġlay Ġon Ġhis Ġarmour - like Ġback , Ġand Ġif Ġhe Ġlifted Ġhis Ġhead Ġa Ġlittle Ġhe Ġcould Ġsee Ġhis Ġbrown Ġbelly , Ġslightly Ġdom ed Ġand Ġdivided Ġby Ġar ches Ġinto Ġstiff Ġsections .
The Ġbed ding Ġwas Ġhardly Ġable Ġto Ġcover Ġit Ġand Ġseemed Ġready Ġto Ġslide Ġoff Ġany Ġmoment .
...Get token-level surprisals for text data:$ lm-zoo get-surprisals ngram metamorphosis.txt
sentence_id     token_id        token   surprisal
1       1       one     7.76847
1       2       morning 9.40638
1       3       ,       1.05009
1       4       when    7.08489
1       5       gregor  18.8963
1       6       <unk>   4.27466
1       7       woke    19.0607
1       8       from    10.3404
1       9       troubled        17.478
1       10      dreams  10.671
1       11      ,       3.39374
1       12      he      5.99193
1       13      found   8.07358
1       14      himself 2.92718
1       15      transformed     16.7328
1       16      in      5.32057
1       17      his     7.26454
1       18      bed     9.78166
1       19      into    8.90954
1       20      a       3.72355
1       21      horrible        14.2477
1       22      <unk>   3.56907
1       23      .       3.90242
1       24      
    22.8395
2       1       he      4.43708
2       2       lay     14.1721
...For more information, see ourQuickstart tutorial.
Package: ln2sqlmodule
ln2sqlmoduleThis is an adoption of the awesomeln2sqlbyJérémy Ferreroas a python module so that people can easily use it to create some awesome things !Things added in ln2sqlmodule :API for getting WHERE queries with LIKE and '%'INNER JOIN working correctly with FOREIGN KEYPRIMARY KEY and FOREIGN KEY detection from ALTER STATEMENTValue extraction from natural languageINSTALLATIONpip install ln2sqlmoduleimport ln2sqlmoduleUSAGEgetSql(query, sqlDump[, outputFile])ln2sqlmodule.getSql(query, sqlDump[, outputFile])returns SQL query from natural language queryoutputFile SchemaParameters :
		query           :    query in natural language
		sqlDump         :    path to sql dump file    
		[outputFile]    :    path to file to output SQL query in json       

	returns : 
		SQL query string

	Example:
		ln2sqlmodule.getSql("get name of all emp","./emp.sql")
		-> SELECT name FROM  empgetSql_like(query, sqlDump[, outputFile])**returns SQL query from natural language withLIKEwith%inWHEREclauseoutputFile SchemaParameters :
		query        :    query in natural language
		sqlDump      :    path to sql dump file
		[outputFile] :    path to file to output SQL query in json   

	returns : 
		SQL query string with LIKE

	Example:
		ln2sqlmodule.getSql("all data for emp where name is rupinder","./emp.sql")
		-> SELECT * FROM  emp WHERE name LIKE '%rupinder%'

		ln2sqlmodule.getSql("all data for emp where name is 'abc xyz'","./emp.sql")
		-> SELECT * FROM  emp WHERE name LIKE '%abc%xyz'outputFile Schema{
	"select": {
		"column": "",
		"type": ""
	},
	"from": {
		"table": ""
	},
	"join": {
	},
	"where": {
	},
	"group_by": {
	},
	"order_by": {
	}
}
Package: lnac
# LnaC### A toy functional language compiler written in Python.---LnaC is a toy functional language compiler written in Python 3 that supports limited program generation.For some sample programs, see the [demos directory](demos).## QuickstartTo install LnaC:```pip3 install lnac```To create, compile, and run an example program:```c$ nano return0.lna$ less return0.lnamain : intmain ==> 0$ lnac return0.lna$ ./return0 && $?True```## Implementation### LexerThe LnaC lexer is primarily implemented in [`lexer.py`](lnac/lexer.py). Additionally, [`tokens.py`](lnac/tokens.py) contains definitions of the token classes used in the lexer and instances of recognized keyword and symbol tokens.### ParserThe LnaC parser is implemented in [`parser/parser.py`](lnac/parser/) and creates an abstract syntax tree of nodes defined in [`tree/nodes.py`](lnac/tree/nodes.py).### AssemblyLnaC writes out an intermediary assembly file that gcc then generates an executable from. This assembly file is written following the AT&T assembly syntax and is deleted following a successful compilation.## References- Writing a C Compiler - https://norasandler.com/2017/11/29/Write-a-Compiler.html- ShivyC - https://github.com/ShivamSarodia/ShivyC
Package: lnauth-django
LnAuth DjangoThis is a reusable Django application providing Lightning Network url authentication functionality.Currently onlyloginandregisteractions are supported.InstallationYou can install LnAuth-Django using pip:pipinstalllnauth-djangoOr, if you're using pipenv:pipenvinstalllnauth-djangoConfigurationOnce installed, add'lnauth_django'to yourINSTALLED_APPSsetting:INSTALLED_APPS=[...'lnauth_django',...]Then, include the URL configuration in your project's urls:fromdjango.urlsimportinclude,pathurlpatterns=[...path('lnauth_django/',include('lnauth_django.urls')),...]SettingsHere are the settings you can set in yoursettings.pyto customize Django My App:LNURL_AUTH_ROOT_DOMAIN: This is used to specify the domain for your app. By default, it should be the domain where your Django project is hosted. Required.LNURL_AUTH_K1_TIMEOUT: This is used to specify the timeout of thek1challenge in seconds. By default, it is set to60 * 60seconds (1 hour).LNURL_AUTH_REGISTER_CALLBACKandLNURL_AUTH_LOGIN_CALLBACK: This is used to specify the import path of the callback function to be executed after user registration / login. Both are optional.LNURL_AUTH_REGISTER_CALLBACK='myapp.users.ln_auth.register_callback'LNURL_AUTH_BACKEND: This is used to specify the authentication backend that the library should use for login. Only needed if you're using multiple authentication backends.LNURL_AUTH_LOGIN_AFTER_REGISTER: Specify whether to automatically log in the user after registration. Default isTrue.UsageThis app exposes two endpoints:/ln-auth-get-url: Generate a LNURL to be used for authentication. Takes a query parameter calledactionwhich can be set tologinorregister./ln-auth: Which is called by the authenticating wallet. Takes all the parameters as specificed in theLNURL Auth spec.Both will reject authenticated requests.Any kind of frontend is out of scope for this library, but the intended approach is to render the link returned by/ln-auth-get-urlas a QR code and allow the user to use their preferred lightning wallet to log in.ContributingPull requests and feature requests are welcome. For major changes, please open an issue first to discuss what you would like to change.TODOMore integration tests on django sideSome sort of rate limitingOther actions, in particularlinkfor linking to existing accountsLicenseMIT
Package: lnbits
LNbitsLNbits v0.10 BETA, free and open-source Lightning wallet accounts system(Join us onhttps://t.me/lnbits)LNbits is beta, for responsible disclosure of any concerns please contactlnbits@pm.meUselegend.lnbits.com, or run your own LNbits server!LNbits is a Python server that sits on top of any funding source. It can be used as:Accounts system to mitigate the risk of exposing applications to your full balance via unique API keys for each walletExtendable platform for exploring Lightning network functionality via the LNbits extension frameworkPart of a development stack via LNbits APIFallback wallet for the LNURL schemeInstant wallet for LN demonstrationsLNbits can run on top of any Lightning funding source. It supports LND, CLN, Eclair, Spark, LNpay, OpenNode, LightningTipBot, and with more being added regularly.SeeLNbits Wikifor more detailed documentation.Checkout the LNbitsYouTubevideo series.LNbits is inspired by all the great work ofopennode.com, and in particularlnpay.co. Both work as funding sources for LNbits.Running LNbitsSee theinstall guidefor details on installation and setup.LNbits as an account systemLNbits is packaged with tools to help manage funds, such as a table of transactions, line chart of spending, export to csv + more to come..Each wallet also comes with its own API keys, to help partition the exposure of your funding source.(LNbits M5StackSats available herehttps://github.com/arcbtc/M5StackSats)LNbits as an LNURL-withdraw fallbackLNURL has a fallback scheme, so if scanned by a regular QR code reader it can default to a URL. LNbits exploits this to generate an instant wallet using theLNURL-withdraw.Usinglnbits.com/?lightning="LNURL-withdraw"will trigger a withdraw that builds an LNbits wallet.
Example use would be an ATM, which utilises LNURL, if the user scans the QR with a regular QR code scanner app, they will still be able to access the funds.LNbits as an instant walletWallets can be easily generated and given out to people at events. "Go to this  website", has a lot less friction than "Download this app".Tip usIf you like this projectsend some tip love!
Package: lndb_rest
lndb-rest: Single-instance managementThis is the REST API for LaminDB!InstallationClone this repositoryNavigate to the repository and run:pip install .Start the serverStart the server by running:./run-local-dev.shThe instance and the user used by the server are defined in run-local-dev.sh file.
Feel free to override them if needed!UsageAccess API documentation from this endpoint:http://localhost:8000/docs
Package: lndgrpc
# lndgrpcA python grpc client for LND (Lightning Network Daemon) ⚡⚡⚡This is a wrapper around the default grpc interface that handles setting up credentials (including macaroons). An async client is also available to do fun async stuff like listening for invoices in the background.## DependenciesPython 2.7, 3.4+Note: the async client is only available for Python 3.5+## Installation```bash$ pip install lndgrpc```## Basic UsageThe api mirrors the underlying lnd grpc api (http://api.lightning.community/) but methods will be in pep8 style. ie. `.GetInfo()` becomes `.get_info()`.```pythonfrom lndgrpc import LNDClient# pass in the ip-address with RPC port and network ('mainnet', 'testnet', 'simnet')# the client defaults to 127.0.0.1:10009 and mainnet if no args providedlnd = LNDClient("127.0.0.1:10009", network='simnet')lnd.get_info()print('Listening for invoices...')for invoice in lnd.subscribe_invoices():print(invoice)```### Async```pythonimport asynciofrom lndgrpc import AsyncLNDClientasync_lnd = AsyncLNDClient()async def subscribe_invoices():print('Listening for invoices...')async for invoice in async_lnd.subscribe_invoices():print(invoice)async def get_info():while True:info = await async_lnd.get_info()print(info)await asyncio.sleep(5)async def run():coros = [subscribe_invoices(), get_info()]await asyncio.gather(*coros)loop = asyncio.get_event_loop()loop.run_until_complete(run())```### Specifying Macaroon/Cert filesBy default the client will attempt to lookup the `readonly.macaron` and `tls.cert` files in the mainnet directory.However if you want to specify a different macaroon or different path you can pass in the filepath explicitly.```pythonlnd = LNDClient(macaroon_filepath='~/.lnd/invoice.macaroon', cert_filepath='path/to/tls.cert')```#### Admin macaroonUse the admin macaroon to perform write actions (ie. creating invoices, creating new addresses)```pythonlnd = LNDClient(admin=True)lnd.add_invoice(2000)```
Package: lndhub
LndHubWithlndhubyou can interact with wallets that provide a LndHub URL like BlueWallet or lntxbot.This library is still in pre-alpha and it can change a lot. The idea is to be able to interact
with all API endpoints defined in theBlueWallet/LndHubdocumentation:...:/create...:/oauth2/tokenWallet.authenticate():/authWallet.get_info():/getinfoWallet.get_balance():/balanceWallet.get_transactions():/gettxsWallet.get_transaction(id):/gettxWallet.get_pending_transactions():/getpendingWallet.get_invoices():/getuserinvoicesWallet.create_invoice(amount, description):/addinvoiceWallet.decode_invoice(bolt11):/decodeinvoice...:/checkrouteinvoiceat the mommentdoes nothing.Wallet.pay_invoice(bolt11):/payinvoice...:/sendcoinsWallet.get_btc_addresses():/getbtcWallet.create_btc_address():/newbtcBasic usageimportosfromlndhubimportWalletwallet=Wallet(os.environ['LNDHUB_WALLET'])# lndhub://user:pass@https://endpoint.combalance=wallet.get_balance()invoice=wallet.create_invoice(amount=200,description='Thanks!')
Package: lndpy
lndpyModern pythonic bindings for thelightning network daemon (lnd).FeaturesStandard lnd gRPC bindings built natively as part of the CI pipeline from the latest released version.No more copy-pasta.Supports Python 3.6+Pythonic interface to auto-generated gRPC functions (coming soon)Documentation generated automatically from gRPC binding docs (coming soon)InstallationInstall as usual withpipor any other packaging tool of choice from PyPI:$pipinstalllndpyUsageExample usage:fromlndpyimportLndinfo=Lnd().get_info()print(info)Developmentpipenvis the recommended tool of choice for local development. First, checkout the git repository. Then, create and sync a new virtualenv with the development dependencies:$gitclonehttps://github.com/yuvadm/lndpy
$cdlndpy
$pipenvsync--devAs an optional step, install pre-commit hooks:$pipenvrunpre-commitinstallNext, fetch and build the lnd proto files:$pipenvrunbuildprotosIn order to build the gRPC .proto files you will also needhttps://github.com/googleapis/googleapischecked out next to lndpy.Run the tests to ensure they were built properly:$pipenvruntestLicenseMIT LicenseCopyright Ⓒ 2021 Yuval Adam
Package: lne
The Life Navigation EngineA Novel AI Model for Human Goal AchievementFree software: MIT licenseDocumentation:https://lne.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.1 (2023-11-28)First release on PyPI.