Saravanan666/pypi-org huggingface dataset:
Package: tpg-invoice
Extracts tax invoices from theTPGCyberstore (My Account) at the command
line.This is useful for automatically grabbing tax invoices.This has only been tested with a fixed broadband service.  It has not been
tested with other products (eg: mobile, dial-up).This is software is not written or endorsed byTPG.InstallingThe easiest way to installtpg_invoiceis:$ pip3 install tpg_invoiceManual installationtpg_invoicerequires the following:* Python 3 (tested on 3.6)
* BeautifulSoup4
* requestsIn Debian based distributions, install these packages:apt install python3 python3-requests python3-bs4Then run:./setup.py installAuthenticationtpg_invoicesupports authentication with a username and password, or a
pre-existing session cookie.  One of the mechanisms must be specified.Authenticating with a username and passwordUsage:$ tpg_invoice -s ~/.config/tpg.secretstpg.secretsis a text file, with two lines:TPG username.Account password.An example secrets file is given below, where the username isexampleuserand their password iscorrecthorsebatterystaple:exampleuser
correcthorsebatterystapleMake sure to keep this file only readable by the user whichtpg_invoiceruns
as.Rate limits apply to the login form, even when login was successful.Authenticating with a session cookieUsage:$ tpg_invoice -S 5wxbc9p2wjhvgssfl0b7nevgfouThis uses an existingTPGSESScookie to make requests to TPG.UsageGet invoice list:tpg_invoice listUsage:$ tpg_invoice -s tpg.secrets list
Invoice list:

I178018865: raised 2018-01-01, $59.99
I184856374: raised 2018-02-01, $59.99
[...]Get specific invoice(s):tpg_invoice getI...Returns a specific invoice as HTML:$ tpg_invoice -s tpg.secrets get I178018865
<div class="iaspage-area">Tax Invoice Display<table align="RIGHT"><!--/home/database/cgi-bin/inv_disp.cgi:153--><tr><td align="RIGHT">TPG Internet Pty Ltd ABN 15 068 383 737</td></tr><tr><td align="RIGHT">65 Waterloo Rd, MACQUARIE PARK, NSW, 2113</td></tr></table>
[...]Multiple invoice IDs may be specified at the command line.  They will be shown separated by a blank line:$ tpg_invoice -s tpg.secrets get I178018865 I184856374
<div class="iaspage-area">Tax Invoice Display<table align="RIGHT"><!--/home/database/cgi-bin/inv_disp.cgi:153--><tr><td align="RIGHT">TPG Internet Pty Ltd ABN 15 068 383 737</td></tr><tr><td align="RIGHT">65 Waterloo Rd, MACQUARIE PARK, NSW, 2113</td></tr></table>
[...]

<div class="iaspage-area">Tax Invoice Display<table align="RIGHT"><!--/home/database/cgi-bin/inv_disp.cgi:153--><tr><td align="RIGHT">TPG Internet Pty Ltd ABN 15 068 383 737</td></tr><tr><td align="RIGHT">65 Waterloo Rd, MACQUARIE PARK, NSW, 2113</td></tr></table>
[...]Get the latest invoice:tpg_invoice get--latestReturns the latest, non-$0 invoice as HTML:$ tpg_invoice -s tpg.secrets get --latest
<div class="iaspage-area">Tax Invoice Display<table align="RIGHT"><!--/home/database/cgi-bin/inv_disp.cgi:153--><tr><td align="RIGHT">TPG Internet Pty Ltd ABN 15 068 383 737</td></tr><tr><td align="RIGHT">65 Waterloo Rd, MACQUARIE PARK, NSW, 2113</td></tr></table>
[...]
Package: tphoudinilib
Houdini implementation for tpDccLib and tpQtLib packages.Also, this module contains a lot of utilities functions and classes to work with Houdini Python API (hou)InstallationManualClone/Download tpHoudiniLib anywhere in your PC (If you download the repo, you will need to extract the contents of the .zip file).CopytpHoudiniLibfolder located insidesourcefolder in a path added tosys.pathAutomaticAutomatic installation for tpHoudiniLib is not finished yet.UsageInitialization Code1. If tpDccLib or tpQtLib packages are being used, tpHoudiniLib will be automatic imported during the initialization
of those packages.If tpDccLib and tpQtLib are not found in your sys.path, you will need to initialize manually tpHoudiniLib.importtpHoudiniLibtpHoudiniLib.init()ReloadingFor development purposes, you can enable reloading system, so
you can reload tpHoudiniLib sources without the necessity of restarting
your Python session. Useful when working with DCCs.If tpDccLib and tpQtLib packages are being used, tpHoudiniLib will be automatic reload by tpDccLib and tpQtLib reload systems.If tpDccLib and tpQtLib are not found, you will need to reload tpHoudiniLib manually.importtpHoudiniLibreload(tpHoudiniLib)tpHoudiniLib.init(True)Enabling debug logBy default, tpHoudiniLib logger only logs warning messages. To enable all log messages
you can set TPHOUDINILIB_DEV environment variables to ‘True’importosos.environ['TPHOUDINILIB_DEV']='True'importtpHoudiniLibtpHoudiniLib.init()
Package: tpimporter
TP ImporterThis package is used for importing our main Titelplanung Excel files;as this data is used in different systems this package provides adapters to use the imported data within different productsUsageUsage Example (Transaktional - Feature):def import_tp_data_for_mam():
    """
    importiert TP-Daten mit den fürs MAM genutzten Keys
    """
    tp_path = "G:\Listen\TPDD aktuell absolutiert.xlsm"
    tp_data = TP_Importer().get_tp_data_from_file(tp_path)
    tp_data_mam = Adapter_For_MAM().transform(tp_data)
    for title in tp_data_mam:
        # do something with title


if __name__ == '__main__':
    tp_data_mam = import_tp_data_for_mam()Usage Example for TVTP Transaktional:def _get_data(self) -> dict:
    """
    diese Methode liest die Daten aus der TV Titelplanung ein
    :return: Dict (one entry per series with the series-Basis-VendorID as key) - die Daten zu den Staffeln
        kann man als Liste von Dicts unter dem Key "seasons" aufrufen
        (auch wieder als Dict mit Key = Season-Basis-VID),
        die zu den Episoden sind im Staffel-Dict als Liste von Dicts unter dem Key "episodes" zu finden
        (auch wieder als Dict mit Key = Episode-Basis-VID)
    """
    filepath = "G:\Listen\TV Titelplanung DD_absolutiert_v2.xlsm"
    tp_data = TVTP_Importer(
        valid_statuses=(
            "ok",
            "change",
            "new",
            "alt/keine Rechte",
            "canceled",
            "INDIZIERT",
            "no avail",
            "Rights expired",
            "ausgelaufen",
        )
    ).get_tp_data_from_file(filepath)
    return tp_data


tp_data = self._get_date()
for vendor_id, series in tqdm(tp_data.items()):
    # do something for series
    for vendor_id_season, season in series.get('seasons').items():
        # do something for seasons
        for vendor_id_episode, episode in season.get('episodes').items():
            # do something for episodesUsage Example for Channels (Feature):channel_tp_data_feature = dict()
importer = TP_Importer_Channels(
        valid_statuses=(("ok", "change", "new"))
    )
path = 'G:\Listen\Titelplanung Channels aktuell_absolutiert_new.xlsm'
tp_data = importer.get_tp_data_from_file(path)
print(tp_data.keys())


for channel_type, channel_titles in tp_data.items():
    # durch alle Channels iterieren
    for title in tqdm(channel_titles):
        # durch Titel in jeweiligem Channel iterierenUsage Example for Channels (TV):channel_tp_data_feature = dict()
importer = TVTP_Importer_Channels(
        valid_statuses=(("ok", "change", "new"))
    )
path = 'G:\Listen\Titelplanung Channels aktuell_absolutiert_new.xlsm'
tp_data = importer.get_tp_data_from_file(path)
print(tp_data.keys())



for channel_type, channel_titles in tp_data.items():
    # durch alle Channels iterieren
    for vendor_id, series in tqdm(channel_titles.items()):
        # do something for series
        for vendor_id_season, season in series.get('seasons').items():
            # do something for seasons
            for vendor_id_episode, episode in season.get('episodes').items():
                # do something for episodes
Package: tpi-splines
IntroductionThe TPI package implements tensor spline interpolation in arbitrary dimensions.The package provides two classesBsplineBasis1D:Calculates the B-spline basis for a 1-dimensional knots vector.Constructs the spline matrix.The splines are cubic and use not-a-knot boundary conditions.TP_Interpolant_ND:Provides setup and solution of tensor product spline problems in N dimensions.Sets up spline data structures for a Cartesian product grid.Computes the spline coefficients given data for a scalar gridfunction.Carries interpolates the griddata at a desired point in the parameter space
spanned by the grid.Spline coefficient data can be returned or set, so that the setup and solution of
the interpolation problem can be separated, by writing the coefficient data to disk.InstallationTo install to the system python folder runpython setup.py build_ext
  sudo python setup.py installIf you do not have admin rights you can install locallypython setup.py build_ext
  python setup.py build_ext install --userYou can create a source distribution and then install the package with pippython setup.py sdist
pip install --useror you can build the package usingpython3 -m buildYou can also install the package viahttps://pypi.org/project/tpi-splines/.TPI supports Python 3. Unit tests can be run with pytest.DependenciesTPI requires GSL, the GNU Scientific Library.
The project homepage ishttp://www.gnu.org/software/gsl/TPI now supports gsl 2.x (It has been tested with gsl 2.7.1).gsl-config --versionOn OS X you can use "brew" (https://brew.sh/) to install gsl.
Note that the "brew switch" command which could be used to select a particular version of a software package, no longer exists.
Package: tpjl
TPJL (TechGeeks Portable JSON Language)TPJL (TechGeeks Portable JSON Language) is a free & OpenSource Portable version of JSON.You can send a .tpjl file to anyone and he can open it with the read() function and can write with the write() function!Please Support us by Contributing by creating a pull request on GitHub.Thanks,Rajdeep Malakar,Chief Executive Director,TechGeeksUsagefromTPJLangimportread,writedata={"0":{"_id":0,"_name":"Rajdeep Malakar","email":"Rajdeep@tgeeks.cf","technology":["Python","PHP","HTML/CSS/JavaScript","C/C++","Java","TPJLang.py3"]}}# To Writewrite("sample",data)# You'll get a new sample.tpjl file# To Readsample=read("sample")print(sample)# To Print Allsample=sample["0"]print(sample["_name"])# To Print the name of the Person with the ID of 0
Package: tpk
tpk (Temporal Predictions Kit)A collection of tools, models and functionalities for hanling timeseries datasetsInstallationtpkrequires Python 3.7 or newer, and the easiest way to install it is viapip:pipinstalltpk"Simple ExampleTo illustrate how to use tpk, we train a model and make predictions
using the airpassengers dataset. The dataset consists of a single time
series of monthly passenger numbers between 1949 and 1960. We train the model
on the first nine years and make predictions for the remaining three years.importpandasaspdimportmatplotlib.pyplotaspltfromgluonts.dataset.pandasimportPandasDatasetfromgluonts.dataset.splitimportsplitfromgluonts.torchimportDeepAREstimatorfromtpk.torchimportTPKEstimator# Load data from a CSV file into a PandasDatasetdf=pd.read_csv("https://raw.githubusercontent.com/AileenNielsen/""TimeSeriesAnalysisWithPython/master/data/AirPassengers.csv",index_col=0,parse_dates=True,)dataset=PandasDataset(df,target="#Passengers")# Split the data for training and testingtraining_data,test_gen=split(dataset,offset=-36)test_data=test_gen.generate_instances(prediction_length=12,windows=3)# Train the model and make predictionsmodel=TPKEstimator(prediction_length=12,freq="M",trainer_kwargs={"max_epochs":5}).train(training_data)forecasts=list(model.predict(test_data.input))# Plot predictionsplt.plot(df["1954":],color="black")forforecastinforecasts:forecast.plot()plt.legend(["True values"],loc="upper left",fontsize="xx-large")plt.show()todo: replace meNote, the forecasts are displayed in terms of a probability distribution and
the shaded areas represent the 50% and 90% prediction intervals.ContributingIf you wish to contribute to the project, please refer to ourcontribution guidelines.CitingIf you use tpk in a scientific publication, we encourage you to add the following references to the related papers,
in addition to any model-specific references that are relevant for your work:LinksDocumentationDocumentationStay in touchPlease show your support and stay in touch by:giving ourGitHub repository{.external-link target="_blank"} a star, andjoining ourDiscord server{.external-link target="_blank"}Your support helps us to stay in touch with you and encourages us to
continue developing and improving the framework. Thank you for your
support!ContributorsThanks to all of these amazing people who made the project better!
Package: tpkbdctl
What is this?It’s a tool that can be used to control features of the “Lenovo ThinkPad
USB Keyboard with TrackPoint”. The official User Guide can be found
here:UserGuide(PDF).Requirements and LimitationsThis tool uses thehidrawdriver and needs at leastLinux 2.6.39in order to work. Usinghidrawit can only write settings, not read them,
so you have to set everything at the same time.
It also supports thehid-lenovo-tpkbddriver which was merged in Linux 3.6.
This driver allows changing the settings via sysfs files, so they can also be read.On most systems/dev/hidraw*and/sysfiles are writeable only by root, so
you will probably have to run this as root.UsageUsage: tpkbdctl [options]

Options:
  -h, --help            show this help message and exit
  -l, --list            List all available devices
  -d DEVICE, --device=DEVICE
                        Specify device. Format as printed with --list
  -s SENSITIVITY, --sensitivity=SENSITIVITY
                        Set trackpoint sensitivity. Range 1-255
  -S SPEED, --press-speed=SPEED
                        Set press-speed. Range 1-255
  -p ?, --press-to-select=?
                        Enable press-to-select? (y/n)
  -R ?, --press-right=?
                        Enable press-right? (y/n)
  -D ?, --dragging=?    Enable dragging? (y/n)
  -r ?, --release-to-select=?
                        Enable release-to-select? (y/n)SensitivityThe higher the sensitivity, the less force you need to move the mouse
cursor.Press to selectIf this is enabled, pressing down the trackpoint generates a click.Press-speedThis setting determines how fast you have to press to generate a click
ifPress to selectis enabled.DraggingBy enabling this, you can not only click by pressing down the
trackpoint, but also drag. This depends onPress to selectbeing
enabled.Press rightThis changes thePress to selectfeature to generate right-button
clicks instead of left-button ones.Release to selectThis inaptly named option (the name was adopted from the Windows driver)
enables double-clicking when usingPress to select.Building and InstallingMake sure you havepipinstalled. The package is usually calledpython-pip.
Then run:sudo pip install tpkbdctlPermanent SetupTODOSee alsoThekernel patchprovides additional functionality. It allows you to control the
LEDs in the mute buttons and makes the microphone mute button usable. It was
merged in Linux 3.6.LicenseThis tool is licensed under the GNU GPL v2.
Package: tpl
You want to fill data into a template file?tpl--yamldata.yamltemplate.file>rendered.fileYou have everything already set up in your environment and now you just want to
POST it somewhere?tplstructure.json\|curl\-XPOST\-H"Content-Type: application/json"\-d@-\httpbin.org/anythingYou want to fill in a template in your CD pipeline and have access to docker?echo"My go-to editor is {{VISUAL}} on {{OS}}"\|dockerrun--rm-i-e"VISUAL"-e"OS=$(uname)"m3t0r/tpl-Installationpip install tpl,docker pull M3t0r/tplormake installInput sourcestplsupports multiple sources:YAML files (--yaml<file>)JSON files (--json<file>)environment variables (--environment)You can specify multiple sources at once, but if a key is present in more than
one then it’s value will be taken from the latter source. This can be useful if
you have default values that you want to always be present:tpl\--yamldefaults.yaml\--json<(curl-H"Content-Type: application/json"now.httpbin.org)\template.jinja2>results.htmlUsageUsage:
  tpl [options] <template_file>
  tpl --help
  tpl --version


tpl uses the Jinja2 templating engine to render it's output. You can find the
documentation for template designers at:
    http://jinja.pocoo.org/docs/latest/templates/

If you provide multiple data sources they will be merged together. If a key is
present in more than one source the value of the source that was specified
last will be used. Nested objects will be merged with the same algorithm.

Options:
  -e, --environment    Use all environment variables as data
  --json=<file>        Load JSON data from a file or STDIN
  --yaml=<file>        Load YAML data from a file or STDIN
Package: tplbuild
tplbuild - Templated reproducible container build tooltplbuildis a wrapper aroundDockerfilesto make buildilng container images better. The two main features that inspired
the creaton oftplbuildwereTemplating build instructions throughJinjaEnabling fast and reproducible builds among developersInstallationtplbuildcan be installed throughpip. This installs both thetplbuildCLI utility and thetplbuildPython library.pipinstalltplbuildtplbuildis supported and tested on Python 3.8-3.10DocumentationDocumentation fortplbuildcan be foundhereExamplesCheck out theexamplesfolder in this repo for some example of
what can be done withtplbuild.Demo VideoAdditionally, you can find a quick tutorial highlighting key featureshere
Package: tplcentral
A Python wrapper for the 3PL Central REST APIUsageset up a.envfile in the root of the project:BASE_URL="https://secure-wms.com"AUTH_PATH="AuthServer/api/Token"CLIENT_ID="your-id"CLIENT_SECRET="your-secret"FACILITY_ID=99TPL_KEY="your-tpl-key"GRANT_TYPE="client_credentials"USER_LOGIN_ID="name-this-whatever-you-want"ROUTING_INFO_ACCOUNT_NUMBER="ups-account-number"Verify that you can access the api by runningpython3-mverify_credentialsThen, run the following get a list of methods you can try out, with a handy run-in-place CLI:python3-mexamplesWhich endpoint do you want to try?
1) cancel_test_order

2) create_test_item

3) create_test_order

4) get_carriers_list

5) get_order

Enter a number:LicenseMITSee LICENSE for more details
Package: tp-link-controller
TP-link WiFi Router ControllerInstallationpip install tp-link-controllerUsageInstallJDK-8Using Chocolatey:choco install jdk8Downloadbrowsermob-proxypass the binary path toTP_Link_controllerobject.fromTPLinkControllerimportcontrolleremail="xyz@examplemail.com"password="topSecret"bmp_path=r"bin\browsermob-proxy-2.1.4\bin\browsermob-proxy"tplink=controller.TP_Link_Controller(email,password,browsermobproxy_location=bmp_path,DEBUG_MODE=True)By default chrome runs in headless mode (NO UI WILL OPEN)
IfDEBUG_MODEisTrueorheadlessoption isTrue, it will open chrome.Note: Login before doing anythingtplink.login()The following methods are available.login() -> Logins to the admin panel.close() -> Exits the browser and closes the proxy.get_status() -> Returns a dictionary with a lot of status information..turn_on_2G() -> Turns on 2.4G WiFi..turn_on_5G() -> Turns on 5G WiFi..turn_off_2G() -> Turns off 2.4G WiFi..turn_off_5G() -> Turns off 5G WiFi..toggle_2g_wifi() -> Toggles 2.4G WiFi.toggle_5g_wifi() -> Toggles 5G WiFi.is_2g_on() -> ReturnsTrueif 2.4G WiFi isonelseFalse..is_5g_on() -> ReturnsTrueif 5G WiFi isonelseFalse.Based on Selenium.Uses the WebUI as you would normally do.Made due to the lack of any kind ofAPIto interact with any TP-Link Routers.Tested On:Hardware:Archer C1200 v2.0Firmware Version:2.0.2 Build 20180118 rel.38979 (EU)To get started with package dev:Clone the repository.Create a virtual environment.Install all the packages fromrequirements.txtInstallJDK-8Using Chocolateychoco install jdk8DownloadBrowsermob-proxy.For windows, leave it as default, should work out of the box.Pass it to the instance in code.tplink=TP_Link_Controller(email,password,browsermobproxy_location=r"bin\browsermob-proxy-2.1.4\bin\browsermob-proxy",DEBUG_MODE=True)Download theChrome webdriverand place it in./bin/folder for windows.ForRaspberry Piinstall .deb packages fromhere. No need to set bin path, packages will be installed in right directory.
Package: tplink-omada-client
What's this?A basic Python client for calling the TP-Link Omada controller API.Installationpip install tplink-omada-clientSupported featuresOnly a subset of the controller's features are supported:Automatic Login/Re-loginBasic controller informationList sitesWithin site:List Devices (APs, Gateways and Switches)Basic device informationGet firmware information and initiating automatic updatesPort status and configuraton for SwitchesLan port configuration for Access PointsGateway port status and WAN port Connect/Disconnect controlTested with OC200 on Omada Controller Version 5.5.7 - 5.12.x. Other versions may not be fully compatible.
Version 5.0.x is definitely not compatible.CLIThis package provides a simple CLI for interacting with one or more Omada Controllers. To start using the
CLI, you must first target a Controller.$omada-tNAMEtarget--urlhttps://your.omada.controller.here--useradmin--passwordpassword--siteMySite--set-defaultWhereNAMEis a name of your choosing to identify the targeted controller.--sitedefaults to the Omada
default site name, 'Default'.  If you do not provide a password as an argument, you will be prompted for a
password.Once you have successfully targeted a controller you can test that things are working by running:$omadadevicesThis will list all the devices being managed by your controller.To see a list of all the available commands, run:$omada-hYou can set up multiple targets (controllers and sites), and specify the target with the-t <NAME>parameter.
If you don't specify a target, the default will be used, if that has been set.The CLI is still young so if there is any functionality you need, please create an issue and let us know.FutureThe available API surface is quite large. More of this could be exposed in the future.
There is an undocumented Websocket API which could potentially be used to get a stream of updates. However,
I'm not sure how fully featured this subscription channel is on the controller. It seems to be rarely used,
so probably doesn't include client connect/disconnect notifications.The Omada platform is transitioning to a new OpenAPI API which this library will need to switch over to using
eventually. We will try to avoid breaking changes when this happens, but some will be unavoidable - particularly
authentication.At the moment, the new API imposes severe daily call limits, even though it is a local device API.
Hopefully this will change, because it is unusable as it stands.ContributingThere is a VS Code development container, which sets up all of the requirements for running the package.LicenseMIT Open Source license.