Saravanan666/pypi-org huggingface dataset:
Package: termx
USAGEImporting termxfrom termx import termx as tcAction to run (function to run when command is executed)def print_input(msg): 
    print(msg)Adding commandstc.add_command(command='testcommand', arguments=1, cmdinfo="[+] prints whatever u type.", action=print_input)

| command /  We set a command name whenever we type it this name will be used to access the function.

| arguments / We input a number of required arguments for a function.

| cmdinfo / What the command does (OPTIONAL).

| action / Function to call when success of this command.We create a function to get inputdef terminal():
      while 1:
	input_ = input("shell> ")
	command = input_.split()
	if command:
	    cmd_result, msg = tc.cmd_result(command=command[0], input_=input_)  
	    / we use 0 to get the command name
	    if not cmd_result:
		print(msg)|  def terminal()/ we can create a loop to get input forever to feed the terminal input.|  input_ = input("shell> ")/ we get constant input to feed termX.|  command = input_.split()/ this is the full command along with arguments passed, we need to supply this to tc.cmd_result()|  cmd_result, msg = tc.cmd_result(command=command[0], input_=input_)/ cmd_result is the result of the command meaning if it was executed properly.
        - if it did not execute properly it returns false (arguments not supplied etc).
   / msg returns the error msg
   / returns two values which are either 'True' or 'False' and if the command passed the arg check and the error msg if it did not pass.|  if command:/ We use this in order to prevent no input from passing through.|  if not cmd_result: print(msg)/ this means if the command result turns out to be false print the error message.
Package: termy
Termy : Your Terminal AssistantA lightweight terminal assistant to give a natural language interface to your terminal commands. It allows you to authenticate and connect to a google sheet that has all the frequently used commands and their natural language queries. This way all the members of the organisation can connect to this central repository and easily manage the configured commands. Termy also has a interface withGPT-3from OpenAI.How to installThanks to pip! its as simple as :pip install --upgrade pip
pip install termyHow to Use TermyStep 1: Configure Termytermy --configureYou will be asked to give the link of the google sheet containing the commands and queries. After that it will authenticate with your google account to access the sheet in case it is a protected file.Thisis a sample sheet for reference, follow the same format while you create your google sheet.Note: If your google sheet already has the sharing settings set to allow view access for anyone on the internet, termy would not ask for google authentication since it is not required.Step 2: Search commands using Termytemry <search query>For eg:termy check the logs of service xtermy is service abc up?termy shutdown in 5 minstermy sort files by their sizesStep 3: Update data from google sheettermy --updateThis will sync the contents of the google sheet in your local system. Execute this when you make changes to your google sheet.Termy GPT-3 IntegrationTermy has a feature to connect with GPT-3 API. Using GPT-3, you can convert any natural language query into a terminal command. For this feature, you would need to sign up for the GPT-3 API KEY. Sign upherefor getting a free API Key.Usage:termy --gpt3 <query>For eg:termy --gpt3 find files which are bigger than 50MB in my home folderwould trigger the command.find ~/ -size +50MContribute and Make it betterAny form of contribution is welcome. From finding and reporting bugs to giving feedback to suggesting cool features to building out cool features. Check outCONTRIBUTING.mdfor more details.
Package: termynal
TermynalA lightweight and modern animated terminal window.
Built formkdocs.InstallationExamplesUsageUse<!-- termynal -->before code block<!-- termynal -->

```
$ python script.py
```Mkdocs integrationDeclare the plugin:...plugins:-termynal...Optionally, pass options to the processor:[...]plugins:-termynal:prompt_literal_start:-"$"-">"[...]This config allows you to use another prompt:<!-- termynal -->```> pip install termynal---> 100%Installed```CreditsThanksinesContributionContribution guidelines for this project
Package: terna-py
terna-pyPython client for the Transparency API of Terna, the Italian electricity transmission system operatorDocumentation of the API:https://developer.terna.it/docs/read/APIs_catalog#enInstallationpython3 -m pip install terna-pyUsageimportternaastrnimportpandasaspd# Please follow the API documentation to register an account and create credentialskey='<YOUR API KEY>'secret='<YOUR API SECRET>'client=trn.TernaPandasClient(api_key=key,api_secret=secret)# Note: you specifically need to set a start= and end= parameter which should be a pandas timestamp with timezonestart=pd.Timestamp("20210101",tz='Europe/Rome')end=pd.Timestamp("20210131",tz='Europe/Rome')bzone=['NORD','CNOR','SUD','CSUD','SARD','SICI','CALA','Italy']gen_type=['Thermal','Wind','Geothermal','Photovoltaic','Self-consumption','Hydro']res_gen_type=['Wind','Geothermal','Photovoltaic','Hydro']type=['Thermal','Wind','Geothermal','Photovoltaic','Self-consumption','Hydro','Pumping-consumption','Net Foreign Exchange']year=2022# Note: all methods return Pandas DataFramesdf_tload=client.get_total_load(start=start,end=end,bzone=bzone)df_mload=client.get_market_load(start=start,end=end,bzone=bzone)df_act_gen=client.get_actual_generation(start=start,end=end,gen_type=gen_type)df_res_gen=client.get_renewable_generation(start=start,end=end,res_gen_type=res_gen_type)df_ener_bal=client.get_energy_balance(start=start,end=end,type=gen_type)df_cap=client.get_installed_capacity(year=year,gen_type=gen_type)df_xborderschedule=client.get_scheduled_foreign_exchange(start=start,end=end)df_xborderflow=client.get_physical_foreign_flow(start=start,end=end)df_internalschedule=client.get_scheduled_internal_exchange(start=start,end=end)df_internalflow=client.get_physical_internal_flow(start=start,end=end)
Package: ternary
This is a simple hack using the slice operation to mimic C-style
ternary operation:x = a ? b : cIn Python we would write:>>> x = a and b or cOr (rather than above, this is safe for returning Falsy values for b):>>> x = (a and [b] or [c])[0]Or:>>> x = b if a else cOr:>>> x = lambda i: (b, c)[not a]Or:>>> if a:
...     x = b
... else:
...     x = cNow we can also write:>>> x = ternary[a:b:c]UsageUsing the slice operation:>>> value = ternary[condition:true_result:false_result]
Package: ternary-diagram
Ternary DiagramThis package makes it easier for you to draw beautiful ternary diagramwithoutpymatgen.Meaningly, only neednumpyandmatplotlib.What you will be able to do with this packageCreate beautiful contour maps easilyCreating a scatter plotDraw tie linesAutomatically format chemical composition using subscriptsMost of the matplotlib options are availableHow to installPyPIpipinstallternary-diagramPyPI project ishere.Anacondacondainstall-cconda-forgeternary-diagramAnaconda (conda-forge) package site ishere.UsageSeeExamplesand thedocumentation.ExamplesAn easy example is here.importmatplotlib.pyplotaspltfromternary_diagramimportTernaryDiagram# You can set `ax` to select which axes to draw. If not, the current axes will be used.td=TernaryDiagram(["Li2O","La2O3","TiO2"])# scattertd.scatter(vector=[[1,1,1],[1,2,3]],z=[0,1])# You can set some options in `plt.scatter` like `marker`, `c` etc.td.scatter(vector=[[2,1,3],[3,2,1]],marker="s",c="#022c5e",s=30)# line plot# You can set some options in `plt.plot` like `lw`, `c`, and so on.td.plot([[1,1,1],[1,2,3]],color="black")# save figuretd.fig.savefig("figure.png",dpi=144)It can be written like this.# The background color is sometimes transparent in jupyter notebooks, so set facecolor 'white'.fig,ax=plt.subplots(facecolor="w")# You can set `ax` to select which axes to draw. If not, the current axes will be used.td=TernaryDiagram(["Li2O","La2O3","TiO2"],ax=ax)# scattertd.scatter(vector=[[1,1,1],[1,2,3]],z=[0,1])# You can set some options in `plt.scatter` like `marker`, `c` etc.td.scatter(vector=[[2,1,3],[3,2,1]],marker="s",c="#022c5e",s=30)# line plot# You can set some options in `plt.plot` like `lw`, `c`, and so on.td.plot([[1,1,1],[1,2,3]],color="black")# save figurefig.savefig("figure.png",dpi=144)It means that you can draw multiple figures in one figure object.See also theexamplefolder.Historiesv3.1.0Delete.utils._BasePlotter.get_x_y(we should access directly).LICENSESeeLICENSE.MIT LicenceCopyright (c) 2021 yu9824
Package: ternate
Ternate is a command-line client for creating FOAF and webpages for Gentoo Linux developers. It queries the LDAP server onhttp://dev.gentoo.org/and creates a basic FOAF file. The FOAF is transformed into GuideXML using an XSLT stylesheet.FeaturesCreates FOAF from LDAP infoCreates homepage for dev.gentoo.org/~usernameInstallaionYou can InstallTernate using distutils, easy_install or subversion. There is also a Gentoo Linux ebuild available.UsageThere are three steps. Get your LDAP info, create FOAF, create the homepage.Example command-line usageFetch LDAP info$ ternate --ldap > ldap.txtNow create FOAF:$ ternate --foaf ldap.txtNow convert FOAF to GuideXML$ ternate --guidexml foaf.rdf > index.xml

or

$ xsltproc /usr/share/ternate-0.1.0/developer.xslt foaf.rdf > index.xml
Package: ternaus-cleantext
CleantextclipLibrary to prepare text for machine learning and NLP tasks. Originated from CLIP model preparation, but a few more
rules were added.Installationpipinstall-Uternaus_cleantextCleans text similar, but stricter than in the CLIP model:Escapes HTML charactersRemoves html tagsRemoves URLsRemoves extra white spacesText to lower casefromternaus_cleantext.ternaus_cleantextimportclean_textprint(clean_text("This is a test https://ternaus.com <b>bold</b>"))returnsthis is a test bold
Package: ternausnet
TernausNet: U-Net with VGG11 Encoder Pre-Trained on ImageNet for Image SegmentationByVladimir IglovikovandAlexey ShvetsIntroductionTernausNet is a modification of the celebrated UNet architecture that is widely used for binary Image Segmentation. For more details, please refer to ourarXiv paper.(Network architecure)Pre-trained encoder speeds up convergence even on the datasets with a different semantic features. Above curve shows validation Jaccard Index (IOU) as a function of epochs forAerial ImageryThis architecture was a part of thewinning solutiuon(1st out of 735 teams) in theCarvana Image Masking Challenge.Citing TernausNetPlease cite TernausNet in your publications if it helps your research:@ARTICLE{arXiv:1801.05746,
         author = {V. Iglovikov and A. Shvets},
          title = {TernausNet: U-Net with VGG11 Encoder Pre-Trained on ImageNet for Image Segmentation},
        journal = {ArXiv e-prints},
         eprint = {1801.05746}, 
           year = 2018
        }Example of the train and test pipelinehttps://github.com/ternaus/robot-surgery-segmentation
Package: terncy
python-terncyA python library for controlTerncydevices.Installationpip install terncyIntroductionBefore use this library, developer need to get a client id from terncy. The client id is a string that uniquely identifies the client app connectes to Terncy system. For istance, Home Assistant integration has its own client id. By presenting a valid client id to Terncy, it's allowed to access the system.In addition, an access credential is also needed to make sure the owner of the Terncy system is aware of, and permit the client access. The approval of the access credential is done in Terncy app by the owner.Example:import asyncio
import terncy


def event_hander(t, msg):
    print("got event", msg)


async def main():
    await terncy.start_discovery()
    await asyncio.sleep(2)
    await terncy.start_discovery()
    print(terncy.discovered_homecenters)

    # construct a Terncy object from discovered info
    t = terncy.Terncy(
        "client_id",
        "box-12-34-56-78-90-ab",
        "192.168.1.187",
        443,
        "homeassistant_user",
        "",
    )
    token_id, token = await t.request_token("homeassistant_user", "HA User")

    # approve the token request in Terncy app, the client should store the
    # allocated token and token id for later usage
    
    # create a new Terncy object with approved token
    t.token = token
    t.token_id = token_id
    t.register_event_handler(event_hander)
    await t.start()
    t.set_onoff("devid_of_device", 1)

    attributes = [{"attr":"on", "value":1}, {"attr":"brightness", "value":42}]
    t.set_attributes("devid_of_device", attributes) 


loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Package: ternviz
Tern VizConvert SMILES to a 3D rotating video. Check-out the Twitter bot@ternviz!InstallYou need to install bothVMDand ffmpeg. After that:pipinstallternvizUsageIt can be used to render stills, rotating videos, comparisons of molecules, and compilation videos of multiple proteins.Render a moleculeTo render a molecule:ternvizCCCOYou may need to specify the path to VMD or ffmpeg:ternvizCO--vmd/path/to/vmd/executableYou can modify a few things too:ternvizCCCO--name"my molecule"--colorwhitetry--low-qualityto render quickly.Render a proteinThis will do a still frameternviz-pdb1A1LTo do a rotating movie, specify number of frames (at 60 fps)ternviz-pdb1A1L--frames60You can pass in multiple PDBsternviz-pdbmy.pdbother.pdbYou can specify how the structure is colored and other detailsternviz-pdb1A1L--frames60--colorwhite--scolorChainAligning PDBsYou can align structures before renderingternviz-alignref.pdb*.pdbby default it aligns on the protein. You can also change selection string, usingMDAnalysis Selection String Syntaxternviz-alignref.pdb--sel"chain B"*.pdbExample Renderhttps://user-images.githubusercontent.com/908389/147892964-c15ac0fd-44be-4473-b82a-799260e0f373.mp4
Package: tero
Drop is an inter-project dependencies tool that binds functionality of
source control systems, autoconf scripts, make and package managers.There are a lot of tools orchestration and deployment to production
but very few tools to help someone configure a machine for development.
dws is just a tool.At its core, dws helps to run multiple sequences ofdevcommands in
topological order. ex:git clone _repo-1_
./configure
make
make install
git clone _repo-2_
./configure
make
make installis replaced by a single command:dws build _myproject-and-prerequisites_.xml
Package: terrable
TerrableTerraform private module manager that uses S3 as a backend. Includes simple versioning
of modules to make forward migration easier. Terraform supports referencing modules
stored in S3 as compressed files (seeS3 Bucketfor more details). However, managing those packages is not part of Terraform itself.
That's whereterr•ablecomes in. The terrable CLI allows for bundling terraform
module directories into compressed files and deploying them to S3 with simple
incremental versioning. That way modules changes can be gradually introduced in
dependent projects as needed without causing conflicts.InstallationTerrable is available via pip:$pipinstallterrableor via poetry:# poetry install terrable --devOnce installed, the terrable CLI command will be available in your terminal.UsageTerrable operates primarily on a directory that contains within it one or more module
directories. For example:+---modules
|   \---aws-lambda-function
|           main.tf
|           output.tf
|           variables.tf
|           policy.json
|
|   \---aws-dynamo-db-table
|           main.tf
|           output.tf
|           variables.tfHere the root "modules" folder contains two modules "aws-lambda-function"
and "aws-dynamo-db-table". To deploy these as modules via terrable to an S3 bucket
execute the command from the parent directory of the modules folder:$terrablepublish./modules/--bucket=<BUCKET_NAME>--profile=<AWS_PROFILE_NAME>This command will iterate through each folder inside the modules directory and publish
any that have changed since their previous publish. Any modules found not to have
changed will be skipped. This can be overridden with the--forceflag. It's also
possible to publish only specific modules within that folder by including the--target=aws-lambda-functionflag. This flag can be specified multiple times to
publish a select number of specific modules for a given command.To inspect modules, there is a list command:$ terrable list <MODULE_NAME> --bucket=<BUCKET_NAME> --profile=<AWS_PROFILE_NAME>This command will print all of the versions and associated metadata for the specified
module.
Package: terra-bonobo-nodes
terra-bonobo-nodesThis package provides a set of bonobo ETL's nodes to help developpers to
integrate data in a terralego based app.To start a dev instanceDefine settings you wants intests/sample_project/projecttest/django project.docker-composeupTestTo run test suite, while stack up, just launch:docker-composeexecdjango/app/venv/bin/python3/app/manage.pytestRun linting, while stack up:docker-compose exec django /app/venv/bin/tox -e lintingNote for osx users, usedocker-composethis waydocker-compose -f docker-compose.yml -f docker-compose-osx.yml $args0.6.0 / 2021-09-22Remove output layer service0.5.6 / 2020-12-17Switch pyfiles to bygfiles0.5.5 / 2020-12-16Add VERSION.md to package0.5.4 / 2020-12-16Add changelog to package0.5.3 / 2020-12-16Add node to get the min value of an arrayReverse TransitTimeOneToMany for deals with oneway on motorway0.5.2 / 2020-12-08Remove version fix0.5.1 / 2020-09-24Fix gitlab-cifix es testfix linting0.5.0 / 2020-09-23/!\ Breaking changes:Compatible with last version of elasticsearch (i.e. 7.9.1)FixesFix elasticsearch python lib versionFix more warningsRemoving f-string without placeholders for stringFixing ambiguous variable nameinclude type name0.4.0 / 2020-01-09ImprovesIndex name from Option used instead of an hardcoded one0.3.9 / 2019-11-26FixesFix and improve runlevel manegement of nodes that
uses context and bufferSubDivideGeom take only valid geometries0.3.8 / 2019-11-26FixesStill fix runlevel when importing data0.3.7 / 2019-11-25FixesFix runlevel when importing data0.3.6 / 2019-11-22FixesWhen doing a bulk import explicit the used layer0.3.5 / 2019-11-22FixesFixes runlevel on LoadFeatureInLayer node0.3.4 / 2019-11-21ImproveImprove documentation0.3.3 / 2019-11-14ImproveDo not pop identifier when extracting SQL data0.3.2 / 2019-11-13ImproveSetup CI pipeline and fix all tests0.3.1 / 2019-11-13ImprovesImprove nodes documentationFixesDo not drop original data using IdentifierFromProperty node
Package: terrabot
IntroductionTerrabot is a Terraria bot API written in Python.It is designed to be easy to use and uses the event-listener pattern.InstallationInstall the module using pip:pip3 install terrabotCurrent featuresJoining serversChattingTriggering various events, like joining, tiledata and itemdropsParsing server data to keep classes up-to-dateMoving the bot by teleportingExamplesThe following is a very basic bot, which will connect and handle chat.fromterrabotimportTerraBotfromterrabot.eventsimportEvents#Create a TerraBot objectbot=TerraBot('127.0.0.1')event=bot.get_event_manager()#Connect a function to an event using a decorator@event.on_event(Events.Chat)defchat(event_id,msg):#Do something with the message#In this case, stop the bot if the word "Stop" occursprint(msg)if"stop"inmsg:bot.stop()#Start the botbot.start()#And waitwhilebot.running:passMore examples can be found under the ‘examples’ directory. Also check
the wiki for more information about the inner workings of the bot and
how to interface with it.ContributingIf you want to contribute, that’s great! I would really appreciate the
help. Just send a pull request and i’ll quickly check and accept it.
These are some areas that need work:NPC packet parsingItem droppingTeleporting other players (>:D)Synchronizing packets like health and update-player-packetsPlacing tiles (!)For information about the packets, seethis
link.
Package: terrace-engine
terrace: an open source algorithmic trading engine optimized for a great developer experienceHome Page|Documentation|Discord|ExamplesTerrace aims to remain near 1000 lines at the core, provide a flexible API, and great developer expereince.Easily research, test, and deploy a variety of trading strategies across all asset classes.CoreStrategy- Strategies are ambiguous to time and the asset they are trading against. They contain the rules for managing a portfolioData Engine- The data engine is responsible for collecting data and supplying it to the strategy via the trading engineTrading Engine- The trading engine manages state and connects the data engine to the strategy, as well as enforces risk management rules.Execution Engine- The execution of trades is handled by the execution engine. The execution engine can send orders to exchanges asynchrnously in realtime.Back Testing Engine- The back testing engine is a wrapper around the data engine and execution engine, simulating trades over historical data.InstallThe current recommended way to install Terrace is using pip:pipinstallterrace-engineDemoCreating a strategy is easy:fromterrace.strategyimportStrategyfromterrace.helpersimporttaclassTAStrategy(Strategy):defstep(self,ctx):sma=ta.sma(ctx.close,20)ifctx.close>sma:self.long()elifctx.close<sma:self.short()Implementing data is easy too, either from a paid vendor or your own sources:fromterrace.dataimportContextfromterrace.dataimportIntrinio,IEX,Polygon,CSVcustom_data=CSV('mydata.csv',columns=['price','change','bid','ask','customfield'])context=Context(Intrinio(),IEX(),Polygon(),custom_data)""">> print(context)=== [ Providers ] ===Intrinio, IEX, Polygon, CSV=== [ Available Fields ] ===(intrinio) close -> float*(intrinio) open -> float*(intrinio) high -> float*...(CSV) price -> float*(CSV) change -> float*(CSV) bid -> float*(CSV) ask -> float*(CSV) customfield -> string** indicates historical data is available"""With a Strategy, and data, back testing and live trading is possible:""" Back Testing """fromterrace.tradingimportBacktestfromterrace.helpersimportsp500constituentsengine=Backtest(strategy,context)engine.run(frequency='1m',period='1mo',target=sp500contstuents)#engine.plot()#print(engine.stats())""" Trade Live """fromterrace.tradingimportEnginefromterrace.executeimportAlpacaengine=Engine(strategy,context)exchange=Alpaca(api_key=...,api_secret=...)engine.run(frequency='1m',exchange=exchange,target='AAPL')
Package: terra-classic-proto
Python implementation for terra.protoThis is a version of terra.proto which specifically supports Terra Classic.It is intended to be a drop-in replacement for terra.proto - it will install itself as terra.proto.This is required if you are using the Terra Classic SDK.Alternative options to this library can be found here:GoLangTerra Coreclients,JavaScript@terra-money/terra.proto,Rustterra-proto-rs.