Saravanan666/pypi-org huggingface dataset:
Package: thwAPI
THW Info Tabs (Updater)The Hashnode Writeathon Python Module & API CONNECTORThis is a simple THW updater that I created for learning purposes during the challenge;UsageUse one of the following APIs to test the different HashtagsWeb 3:https://hashnode.com/api/feed/tag/thw-web3Web Apps:https://hashnode.com/api/feed/tag/thw-web-appsMobile Apps:https://hashnode.com/api/feed/tag/thw-mobile-appsCloud Computing:https://hashnode.com/api/feed/tag/thw-cloud-computingAPI_URLs = ['https://hashnode.com/api/feed/tag/thw-cloud-computing',
            'https://hashnode.com/api/feed/tag/thw-mobile-apps',
            'https://hashnode.com/api/feed/tag/thw-web3',
            'https://hashnode.com/api/feed/tag/thw-web-apps'
            
            ]codepip install thwAPIimport thwAPI

URL = 'https://hashnode.com/api/feed/tag/thw-web3'
web_three = thwAPI(URL).count()

print(web_three)Expected output;......
There are currently 95 posts written!
....The output depends at a time of running this;Refer to Tests File for more examples;Read Blog-Series here;https://blog.octachart.com/series/tabs-with-thwStar this repo if you learnt something from my mini-series
Package: thwAPITabs
THW Info Tabs (Updater)The Hashnode Writeathon Python Module & API CONNECTORThis is a simple THW updater that I created for learning purposes during the challenge;UsageUse one of the following APIs to test the different HashtagsWeb 3:https://hashnode.com/api/feed/tag/thw-web3Web Apps:https://hashnode.com/api/feed/tag/thw-web-appsMobile Apps:https://hashnode.com/api/feed/tag/thw-mobile-appsCloud Computing:https://hashnode.com/api/feed/tag/thw-cloud-computingAPI_URLs = ['https://hashnode.com/api/feed/tag/thw-cloud-computing',
            'https://hashnode.com/api/feed/tag/thw-mobile-apps',
            'https://hashnode.com/api/feed/tag/thw-web3',
            'https://hashnode.com/api/feed/tag/thw-web-apps'
            
            ]codepip install thwInfoTabsimport 

URL = 'https://hashnode.com/api/feed/tag/thw-web3'
web_three = THW(URL).count()

print(web_three)Expected output;......
There are currently 95 posts written!
....The output depends at a time of running this;Refer to Tests File for more examples;Read Blog-Series here;https://blog.octachart.com/series/tabs-with-thwStar this repo if you learnt something from my mini-series
Package: thwInfoTabs
THW Info Tabs (Updater)The Hashnode Writeathon Python Module & API CONNECTORThis is a simple THW updater that I created for learning purposes during the challenge;UsageUse one of the following APIs to test the different HashtagsWeb 3:https://hashnode.com/api/feed/tag/thw-web3Web Apps:https://hashnode.com/api/feed/tag/thw-web-appsMobile Apps:https://hashnode.com/api/feed/tag/thw-mobile-appsCloud Computing:https://hashnode.com/api/feed/tag/thw-cloud-computingAPI_URLs = ['https://hashnode.com/api/feed/tag/thw-cloud-computing',
            'https://hashnode.com/api/feed/tag/thw-mobile-apps',
            'https://hashnode.com/api/feed/tag/thw-web3',
            'https://hashnode.com/api/feed/tag/thw-web-apps'
            
            ]codepip install thwInfoTabsimport 

URL = 'https://hashnode.com/api/feed/tag/thw-web3'
web_three = THW(URL).count()

print(web_three)Expected output;......
There are currently 95 posts written!
....The output depends at a time of running this;Refer to Tests File for more examples;Read Blog-Series here;https://blog.octachart.com/series/tabs-with-thwStar this repo if you learnt something from my mini-series
Package: thw-submission-generator
Start with a config file:---map_name:"Dotaalstars"author:"feirfox"repo_uri:nullcontributing:nullintroduction:|+Dota is very fun game, league of legends stole from dota bascicallyscreenshots:-caption:Invokeruri:https://i.imgur.com/smX662W.jpeg-caption:Pikachuuri:https://i.imgur.com/Czgalle.jpegicon_table:title:"Heroes"contents:-caption:"Drow,likestoshotpewpew"uri:https://i.imgur.com/XxEwZWP.pngchangelog:-version:0.1.0date:16 Jul 1969changes:-Landed on the mooncredits:-peq-Frotty-hiveworkshopAnd generate a hive post:./generate_submission_template.shconfig.yamlProduces:
Package: thx
Rapid development assistant, and fast command runner for Python projects.thx(“thanks”) is capable of running arbitrary jobs, configured via simple options
in thePEP 518standardizedpyproject.toml.
Jobs can be run on multiple Python versions at once, and independent steps can be
executed in parallel for faster results.Watchthxformat the codebase, build sphinx docs, run the test and linter suites on
five Python versions, and generate a final coverage report:thxcan also watch for modifications to your project, and automatically run jobs
every time changes are detected—it will even reload its configuration when yourpyproject.tomlchanges:UsageConfiguration uses standardTOMLelements, and jobs can
reference shared values, which will be interpolated at runtime:[tool.thx.values]module="thx"[tool.thx.jobs]lint=["flake8 {module}","ufmt check {module}",]test="python -m unittest -v {module}.tests"The configuration above defines two jobs, “lint” and “test”; the “lint” job defines
two steps, and these can optionally be run in parallel. Both jobs present themselves
as separate commands inthx. Note the automatic replacement of{module}with
the configured valuethxwhen running jobs:$thxlint> flake8 thx
> ufmt check thx$thxtest> python -m unittest thx.testsThey can also be run together in order, similar tomakefiles:$thxtestlint> python -m unittest thx.tests
> flake8 thx
> ufmt check thxBy default,thxuses the active Python runtime for jobs, but can also run jobs on
multiple runtimes in parallel:[tool.thx]python_versions=["3.7","3.8","3.9"]$thxtest3.9> python -m unittest thx.tests
3.8> python -m unittest thx.tests
3.7> python -m unittest thx.testsSee theuser guidefor details on all available
configuration options.InstallNotethxis still in active development. Configuration options should be stable, but
compatibility between minor releases is not guaranteed. For important production
cases, please be sure to pin yourself to a single version, and test any new releases
thoroughly.thxis available onPyPI:$pipinstallthxSee theuser guidefor help getting started.Licensethxis copyrightAmethyst Reese, and licensed under
the MIT license. I am providing code in this repository to you under an open
source license. This is my personal repository; the license you receive to my
code is from me and not from my employer. See theLICENSEfile for details.
Package: thxgh
CLI for GitHub user contrib graph & statisticsThis tool is intended to facilitate the archiving of your public data
hosted on
GitHub.Currently supported user stats:Contributions graph.Language statistics.Total repos, stars, followers, following.Pinned repositories.Yearly contributions count.Installpip install thxgh(hint: use--userto install into~/.local/bin/)RunSee usage help:$ ./bin/thxgh
Usage: ./bin/thxgh [--contributions|--stats] github-username
    --contributions will print the SVG contributions graph to stdout.
    --stats will print JSON formatted statistics for the user to stdout.
    --repos will print JSON formatted list of repositories.Download contributions graph SVG for a user:$ ./bin/thxgh --contributions chr15m > chr15m-contributions.svgGet language statistics and pinned repositories for a user:$ ./bin/thxgh --stats chr15m
{
  "languages": [
    {
      "count": 29,
      "percent": 23,
      "language": "JavaScript"
    },
    ...
  ],
  "timestamp": "2017-05-18T09:52:18.093690",
  "stats": [
    [
      "Repositories",
      "135"
    ],
    [
      "Stars",
      "481"
    ],
    [
      "Followers",
      "109"
    ],
    [
      "Following",
      "294"
    ]
  ],
  "contributions-year": 2254,
  "pinned-repos": [
    {
      "name": "thxgh",
      "language": "Hy",
      "url": "https://github.com/chr15m/thxgh",
      "stars": 2,
      "forks": 1,
      "description": "CLI for GitHub user contrib graph & stats"
    },
    ...
  ]
}Get list of repositories for a user:$ ./bin/thxgh --repos
[
  {
    "fork": false,
    "open_issues_count": 0,
    "watchers": 0,
    "description": "CLI for GitHub user contrib graph & language stats",
    "name": "thxgh",
    "forks": 0,
    "created_at": "2017-05-18T02:02:21Z",
    "forks_count": 0,
    "updated_at": "2017-05-18T11:44:09Z",
    "html_url": "https://github.com/chr15m/thxgh",
    "language": "Hy",
    "clone_url": "https://github.com/chr15m/thxgh.git",
    "watchers_count": 0,
    "full_name": "chr15m/thxgh",
    "ssh_url": "git@github.com:chr15m/thxgh.git",
    "open_issues": 0,
    "stargazers_count": 0,
    "id": 91637951,
    "size": 13
  },
  ...
]
Package: thym
thymBundle of timing utilities such as Timer that allows you to trigger an event at a specified interval or Stopwatch to measure time etc.InstallationThere are two ways to install thym:Install thym from PyPI (recommended):sudo pip install thymIf you are using a virtualenv, you may want to avoid using sudo:pip install thymAlternatively: install thym from the GitHub source:First, clone thym usinggit:git clone https://github.com/apgeorg/thym.gitThen, cd to the thym folder and run the install command:cd thym
sudo python setup.py installGetting startedTimerTimer is able to trigger a callback either periodically or as a one shot by setting theoneshotargument correspondingly.
There is anelapsedproperty that returns the elapsed time sincestart()was called.
Further, aremainingproperty is also available that returns the remaining time of the specified interval.importthym# Timer callback functiondeftimer_timeout():print("Timeout!")# Create a Timer which runs periodicallyt=thym.Timer(1,timer_timeout,oneshot=False)# Start runningt.start()A running Timer can be stopped anytime by callingstop()as shown below.
The elapsed time and remaining time are calculated accordingly.t.stop()StopwatchStopwatch triggers a callback whenstop()is called. The callback can be passed over the Stopwatch consturctor.There is anelapsedproperty that returns the elapsed time sincestart()was called.importthym# Stopwatch callback functiondefstopped_callback():print("Stopwatch stopped!")# Create a Stopwatchsw=thym.Stopwatch(stopped_callback)# Start runningsw.start()A running Stopwach can be stopped anytime by callingstop()as shown below. Accordingly, the elapsed time is calculated.sw.stop()LicenceThym is licensed under MIT. SeeLICENSEfile for details.Copyright © 2019 Apostolos Georgiadis.
Package: thymed
ThymedFeaturesFlexible ChargeCode system with no limits on the number of codes you can define.Simple method to "punch" a ChargeCode. Punching logs the current timestamp and changes the "state" of the ChargeCode (active/passive or "on/off the clock").All data is stored locally! It's yours, you have complete control over it! There's no online backups, no phoning home, no licensing.Command-Line Interface (CLI) for creating, listing, and punching in/out of charge codes.RequirementsNo major requirements. If you have a Python version >= 3.8, you're good to go! Check out the installation section below.Being familiar with the command-line is a plus. If the terminal scares you, this might not be the right tool for you.Thymed usesRichfor console markup. A modern terminal will make output much prettier! :wink:InstallationYou can installThymedviapipfromPyPI:$pipinstallthymedUsagePlease see theCommand-line Referencefor details.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,Thymedis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was originally generated from@cjolowicz'sHypermodern Python Cookiecuttertemplate.
Package: thyming
thymingI couldn't find a timer that matched my needs, so I created my own. I don't exactly remember which ones I tried and what reservations I had but whatever.InstallthymingpipinstallthymingfromthymingimportTimer# duhHow to usethyming.TimerThere are two ways to use it: the ordinary way and as a context manager.1. The ordinary wayYou can use it the ordinary way, by creating a timer and measuring time with it multiple times.t=Timer()# do something heret.measure()# measure time# do something elset.measure()# measure time again# ...t.stop()# timer stopsprint(t.rtimes())# [2.8563, 5.0682, 22.2241] # print recorded times rounded to n digits (4 by default)# You can reuse the timer after stopping itt.start()# ...t.stop()print(t.rtimes())# [5.516]# previous recorded times are stored in t.prev__recorded _timesprint(t.prev_times)[[2.8563294369996584,5.068209224999919,22.224131080000006]]2. The context manager way(This is the magic of__enter__and__exit__.)withTimer()ast:# ...t.measure()# ...t.measure()# you leave timer hereLogging timeTimeraccepts a logger function, which takes a string and returns nothing (it's of typeCallable[[str], None]). Theoretically, this could belambda s: Nonebut obviously we want to squeeze something useful out of it, so it's better to supply a function but prints the string argument to some output, e.g.:printorlogging.info, which is the default.importlogginglogging.basicConfig(level=logging.INFO)t=Timer().start()print(t.logger)# <function info at 0x7f38ac8b99d0> # i.e. logging.infoprint(t.logger==logging.info)# Truet=Timer().start()sleep(1)t.measure()# INFO:root:Elapsed time: 1.0011 seconds.
Package: thymiodirect
thymiodirectPython package to connect to aThymio II robotwith its native binary protocol via a serial port (virtual port over a wired USB or wireless USB dongle) or a TCP port (asebaswitch or Thymio simulator).ExampleThe steps below are borrowed from the help you obtain by typingimport thymiodirect
help(thymiodirect)Import the required classes:from thymiodirect import Connection
from thymiodirect import ThymioSet the serial port the Thymio is connected to (depending on your configuration, the default port is not what you want):port = Connection.serial_default_port()Create aThymioconnection object with a callback to be notified when the robot is ready and start the connection (or just wait a few seconds):th = Thymio(serial_port=port,
            on_connect=lambda node_id:print(f"{node_id} is connected"))
th.connect()Get id of the first (or only) Thymio:id = th.first_node()Get a variable:th[id]["prox.horizontal"]Set a variable (scalar or array):th[id]["leds.top"] = [0, 0, 32]Define a function called after new variable values have been fetched.
The front and rear proximity sensors are used to make the robot move forward or backward. Decision to move or stop is based on the difference of these sensor readings.prox_prev = 0
def obs(node_id):
    global prox_prev
    prox = (th[node_id]["prox.horizontal"][5]
            - th[node_id]["prox.horizontal"][2]) // 10
    if prox != prox_prev:
        th[node_id]["motor.left.target"] = prox
        th[node_id]["motor.right.target"] = prox
        print(prox)
        if prox > 5:
            th[id]["leds.top"] = [0, 32, 0]
        elif prox < -5:
            th[id]["leds.top"] = [32, 32, 0]
        elif abs(prox) < 3:
            th[id]["leds.top"] = [0, 0, 32]
        prox_prev = proxInstall this function:th.set_variable_observer(id, obs)Make the robot move forward by putting your hand behind it, or backward by putting your hand in front of it.Remove this function:th.set_variable_observer(id, None)By default, all the Thymio variables are fetched 10 times per second. This can be changed with options passed to theThymioconstructor. Here is how you would fetch 5 times per second (every 0.2 second) a chunk of variable data which coversprox.horizontalandprox.ground:th = Thymio(serial_port=port,
            on_connect=lambda node_id:print(f"{node_id} is connected"),
            refreshing_rate=0.2,
            refreshing_coverage={"prox.horizontal", "prox.ground"})
Package: thyroid-model-damir-bogdan
Thyroid classification packageThis package contains a sklearn pipeline that incorporates necessary preprocessing steps and a XGBoost classification model
used to perform a classification for the Thyroid data set.To use the package use the following commands:# To import use:fromthyroid_model_damir_bogdan.load_pipelineimport*fromthyroid_model_damir_bogdan.load_label_encoderimportload_label_encoder# To load pipeline and encoder use:pipeline=load_pipeline()encoder=load_label_encoder()# To predict use:y_pred=pipeline.predict(X)# X is a dataframe object of featuresy_encoded=encoder.inverse_transform(y_pred)
Package: thzsts
THz-STS-AlgorithmA compilation of functions to perform the steady-state terahertz scanning tunneling spectroscopy (THz-STS) algorithm described in Ammerman, S.E. et al. Nat Commun 12, 6794 (2021).https://doi.org/10.1038/s41467-021-26656-3and functions to determine a true waveform from THz cross-correlation measurements described in ...InstallationRun the following to installpipinstallthzstsUsagefromthzstsimportalgorithm...
Package: thztools
THzTools is an open-source Python package for data analysis in terahertz time-domain spectroscopy
(THz-TDS). As the name suggests, THz-TDS involves measurements of terahertz-frequency
electromagnetic waveforms that are acquired as a function oftime, which users typically
represent as a function offrequencyfor analysis. THzTools makes it easier for researchers
to use statistically optimal methods for doing this analysis, as described inL. Mohtashemi et al.,
Opt. Express29, 4912 (2021).This isalphasoftware that is currently under development.InformationLinksProjectBuildDocumentationhttps://dodge-research-group.github.io/thztools/CiteL. Mohtashemi et al.,Opt. Express29, 4912 (2021).(DOI)The original MATLAB code is available atZenodo.
Package: tiafork
tiafork: Toolkit for Integration and Analysis (Fork of a Fork)This is a Fork of a Fork!This project is a fork of the Python 3 compliant version of thetiatoolkit made byPaulMest. I've named ittiafork.The originaltiaproject was developed with Python 2. PaulMest updated it to be Python 3 compliant, and this project,tiafork, builds upon that work. This version is also Python 3 compliant andNOTPython 2 compliant.I are open to additional community contributions. Just submit a pull request.OverviewTIAFORK is a toolkit that provides Bloomberg data access, easier PDF generation, backtesting functionality, technical analysis functionality, return analysis, and a few windows utils.ExamplesBloomberg APIv3 apiData ManagerSimple Trade and Portfolio ModelmodelPDF Generation (using reportlab)pdf generationdataframe to pdf tablequick styling of pdf tablesTechnical Analysispure python and ta-libBacktestbacktest with yahoo databacktest with bbg data and pdf (Soon)UtilsFormattingDependenciesPython 3MandatorynumpypandasRecommendedmatplotlibOptionalreportlabta-libbloombergInstallationTo installtiafork, simply:$ pip install tiafork
Package: tialgo
Algorithm SDK for TencentCloud TIONEinstallpip3install--upgradetialgoexampleimportosimportsysimportpandasaspdfromsklearn.preprocessingimportLabelEncoderfromsklearn.ensembleimportRandomForestClassifierfromtialgoimportTableDataModelclassModel(TableDataModel):def__init__(self):super(Model,self).__init__()deftrain(self,df):super().train(df)#字符串索引化forcolin["term","grade","home_ownership","verification_status"]:# 需要保存的对象encoder=LabelEncoder()df[col]=encoder.fit_transform(df[col])self.put_model(encoder)feature=[colforcolindf.columnsifcolnotin["loan_status"]]X,y=df[feature],df["loan_status"]#随机森林分类model=RandomForestClassifier(max_depth=7,n_estimators=20,)model.fit(X,y)self.put_model(model)print('自动保存模型：')self.print_model()defpredict(self,df):super().predict(df)feature=[colforcolindf.columnsifcolnotin["loan_status"]]df=df[feature]#字符串索引化 贷款期限 贷款信用评级 贷款客户房屋所有权状况 收入认证状态forcolin["term","grade","home_ownership","verification_status"]:# 需要保存的对象encoder=self.get_model()df[col]=encoder.transform(df[col])#分类model=self.get_model()y_pred_proba=model.predict_proba(df)returnpd.DataFrame(y_pred_proba)defload_train_data(self):return{'data':df,'label':'loan_status'}run_mode=os.environ.get('run_mode')or'train'print('run_mode:',run_mode)ifrun_mode=='train':df=pd.read_csv("demo.csv")model=Model()model.run(run_mode)model.run('predict_online')test datasave as demo.csvloan_amnt,term,int_rate,grade,emp_length,home_ownership,annual_inc,verification_status,dti,delinq_2yrs,inq_last_6mths,chargeoff_within_12_mths,loan_status
15000.0, 60 months,25.82,E,0.0,OWN,25000.0,Source Verified,2.26,0.0,0.0,0.0,0
20000.0, 36 months,6.11,A,4.0,MORTGAGE,95000.0,Not Verified,15.32,1.0,2.0,0.0,1
15000.0, 36 months,10.91,B,0.0,RENT,38000.0,Not Verified,23.63,0.0,1.0,0.0,1
4800.0, 36 months,12.62,C,3.0,RENT,100000.0,Source Verified,10.31,0.0,0.0,0.0,0
16000.0, 60 months,19.42,D,6.0,MORTGAGE,60000.0,Verified,22.68,0.0,0.0,0.0,1
40000.0, 60 months,7.21,A,3.0,MORTGAGE,130000.0,Source Verified,18.0,0.0,0.0,0.0,1
4000.0, 36 months,29.69,F,2.0,RENT,47000.0,Source Verified,25.97,0.0,1.0,0.0,0
30000.0, 60 months,12.73,B,11.0,RENT,102000.0,Source Verified,21.11,0.0,0.0,0.0,1
5000.0, 36 months,10.08,B,0.0,OWN,46000.0,Source Verified,30.42,0.0,0.0,0.0,1
16000.0, 36 months,8.08,A,5.0,RENT,30000.0,Source Verified,25.08,0.0,0.0,0.0,0
8000.0, 36 months,9.92,B,11.0,RENT,105000.0,Not Verified,11.28,0.0,1.0,0.0,1
10000.0, 36 months,15.05,C,4.0,RENT,50000.0,Source Verified,14.12,0.0,0.0,0.0,0
22000.0, 60 months,15.02,C,0.0,RENT,80000.0,Not Verified,36.51,0.0,0.0,0.0,1test the online servicecurlhttp://127.0.0.1:8501-XPOST--data-binary@demo.csvmoreHomepage:https://cloud.tencent.com
Package: tiamat
Tiamat is the single binary builder for Python projects.Tiamat is the single binary builder for Python-based projects that use pop. Pop
is the implementation of the Plugin Oriented Programming software development
paradigm. For more information about Plugin Oriented Programming and how to
develop in pop, seeThe Intro to Plugin Oriented Programming.NoteWhile Tiamat is written with the intent of supporting pop projects it can be
used with any Python project.Tiamat can be used to define a build without altering the target application’s
source tree, which can be useful when building third party applications.All that needs to be done is to define arun.pyas the entry script and
then to create arequirements.txtfile that will include the target
application.Read theQuickstart Guide