Saravanan666/pypi-org huggingface dataset:
Package: trakteerdonate
⚠️ NOTE: THIS PROJECT IS ONLY FOR EDUCATIONAL PURPOSE!! ⚠️I WONT RESPONSIBLE FOR SOMETHING HAPPEN WHEN USING THIS PROGRAM!!Trakteer DonateAn easy way to listen for Trakteer donation in PythonInstallationTo install this package, you can easily use pip!pipinstalltrakteerdonateOr,pipinstallgit+https://github.com/then77/trakteerdonatePackage UsageFirst open yourTrakteerand go toStream Overlay(here)On theWidget URL, copy the key, and the hashCreate a code and import theClientfunction.fromtrakteerdonateimportClientclient=Client("hash","streamKey")# Replace "hash" and "streamKey" with the key you copied beforeAdd listener for donation@client.eventasyncdefon_donation(ws,data):print("Received donation:")print(f"  - Name:{data.name}")print(f"  - Amount:{data.amount}")print(f"  - Message:{data.message}")Last, add this codeTo the bottom of the codeand run!client.start()The reason it should be placed on the bottom because its a blocking function.Example CodefromtrakteerdonateimportClientclient=Client("hash","streamKey")@client.eventasyncdefon_connect(ws):print("Connected to Trakteer!")@client.eventasyncdefon_donation(ws,data):print("Received donation:")print(f"  - Name:{data.name}")print(f"  - Amount:{data.amount}")print(f"  - Message:{data.message}")client.start()Repository LicenseThis repository and its code is under the MIT License.Read more here.
Package: traktor
TraktorTraktor is a personal time tracking app inspired byClockify. Not all features are implemented. Missing
workspaces and billable flags - I personally don't use them, but if you plan
to use the app and you're missing those features, please send me an email and
I'll add them.At the moment it's command line only, but my intention is to make a web and
desktop app too.The main reason for creating the app is that Clockify data is available only
for the last year (through the api) and I was exiting the window of one year.I also wanted to have my personal data in my possession in an easily accessible
and backup-able format (sqlite3 database.)
Package: traktor-nml-utils
Traktor NML utilsThis module contains utilities to parse and modifyNative Instruments TraktorNML files.Both Traktor 2.x and Traktor 3.x NML files are supported.It can parse collection NML files ($TRAKTOR_DIR/collection.nml) and history NML files ($TRAKTOR_DIR/History/history_$DATE.nml).All NML attributes are readable and writable using auto-generated dataclasses
(seetraktor_nml_utils/models).This allows a typesafe way to work with NML files, fully supporting IDE autocompletion:While reading should work in 99% cases, writing NML files hasn't been tested thoroughly enough yet, so always
keep a copy of your NML files.RequirementsBecause traktor-nml-utils usesdataclasses, you need at least Python 3.7.x.traktor-nml-utils is tested with Traktor 3.3.0, though it should be able to parse
Traktor 2.x NML files as well. Feel free to provide files that cause problems on parsing.Installationpipinstalltraktor-nml-utilsUsageGet artist, title and rating of all collection entriesfromtraktor_nml_utilsimportTraktorCollectionfrompathlibimportPathcollection=TraktorCollection(path=Path('collection.nml'))forentryincollection.nml.entry:print(entry.artist,entry.title,entry.info.ranking)Get cuepoint startentry=collection.nml.entry[0]forcue_v2inentry.cue_v2:print(cue_v2.start)Find entryartist="Yotto"title="Another Riff For The Good Times (Extended Mix)"entry=[entryforentryincollection.nml.entryifentry.artist==artistandentry.title==title][0]Add cuepointfromtraktor_nml_utils.models.collectionimportCueV2Typefromtraktor_nml_utils.utilsimportduration_str_to_millisecondsmy_cue=CueV2Type(value=None,name='n.n.',displ_order=0,type=0,start=duration_str_to_milliseconds("00:01:00"),len=0.0,repeats=-1,hotcue=1)entry.cue_v2.append(my_cue)# Write XML filecollection.save()Run testsRun tests within Docker container:makedocker-builddocker-testCreate virtualenv and run tests:makevirtualenv-createvirtualenv-testTo test if parsing your own collection/history files with traktor-nml-utils works,
pass your Traktor directory to pytest:pytest--nml-dir="~/traktor3/"tests/test_parser.py::test_parse_nml_filesHow does it work?NML file to XSD schemaSince there is no official XSD available to parse Traktor NML files, an XSD was generated
both for history and collection files usingApache XMLBeans.See them inxml_to_xsd/collection.xsdandxml_to_xsd/history.xsd.You can regenerate the XSD by putting your owncollection.nmlandhistory.nmloverwriting
the existing ones in./xml_to_xsd/and run:makexml-to-xsdXSD to Python dataclassesUsing the generated XSD files, Python dataclasses can be generated withxsdata.
To update these, run:makexsd-to-pythonContributionHelp wanted!Since the XSD-schema was created from my own Traktor files, the schema might
not fit for all collection and history files.
In case you have any problems parsing NML files, please report an issue and
attach the problematic NML file so I can update the schema.
Package: trakt.py
Python interface for the Trakt.tv API.Installpipinstalltrakt.pyExamplesConfigure the clientfromtraktimportTraktTrakt.configuration.defaults.client(id='<client-id>',secret='<client-secret>')Scrobble an episodeshow={'title':'Community','year':2009}episode={'season':5,'number':13}# Send "start" eventTrakt['scrobble'].start(show=show,episode=episode,progress=1)# [...] (watching episode)# Send "stop" event (scrobble)Trakt['scrobble'].stop(show=show,episode=episode,progress=93)Add a movie to your collectionTrakt['sync/collection'].add({'movies':[{'title':"Twelve Monkeys",'year':1995,'ids':{'imdb':"tt0114746"}}]})Retrieve shows that a user has watched# `watched` = {<key>: <Show>} dictionarywatched=Trakt['sync/watched'].movies()forkey,showinwatched.items():print'%s(%s)'%(show.title,show.year)LicenseThe MIT License (MIT)Copyright (c) 2014 Dean GardinerPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Package: trakt-scrobbler
Trakt ScrobblerA trakt.tv scrobbler for your computer.What is Trakt?Automatically scrobble TV show episodes and movies you are watching toTrakt.tv! It is a website that keeps a history of everything you've watched!What is trakt-scrobbler?trakt-scrobbleris an application that runs in the background and monitors your media players for any new activity. When it detects some file being played, it determines the media info (such as name of the movie/show, episode number, etc.) and sends this totrakt.tvservers, so that it can be marked as "Currently Watching" on your profile. No manual intervention required!FeaturesFull featuredcommand line interfaceto control the service. Just runtrakts.Automatic media info extraction usingguessit.Scrobbling is independent of the player(s) where the media is played. Support for new players can thus be easily added.Currently supports:VLC(via web interface)Plex(doesn't require Plex Pass)MPV(via IPC server)MPC-BE/MPC-HC(via web interface).Folder whitelisting:Only media files from subdirectories of these folders are synced with trakt.Optionally, you can receive a quick notification that the media start/pause/stop activity has been scrobbled.For cases when it misidentifies the files, you can specify a regex to manually extract the necessary details.Proxy support: Optionally specify a proxy server to handle all communication with trakt servers!Getting StartedHead over to thewikifor further details.ContributingFeel free to create a new issue in case you find a bug/want to have a feature added. SeeCONTRIBUTING.mdfor more details. Proper PRs are welcome.AcknowledgementsInspired fromTraktForVLCmpv-trakt-sync-daemonwas a huge help in making the mpv monitor
Package: trakt-watch
trakt-watchA small CLI to mark items watched on trakt. This lets you:Mark movies/episodes as watchedRate movies/episodesRemove items from your historyQuery your recent historyThis usestraktexportinternally to authenticate, so follow the stepshereto login/setup your credentials.InstallationRequirespython3.11+To install with pip, run:pip install trakt-watchUsageYou can set theTRAKT_USERNAMEenvironment variable so you don't have to pass it every time.Usage: trakt-watch [OPTIONS] COMMAND [ARGS]...

Options:
  -u, --username TEXT  Trakt username  [env var: TRAKT_USERNAME; required]
  --help               Show this message and exit.

Commands:
  rate     rate movie/tv show/episode
  recent   show recent history
  unwatch  remove recent watched item
  watch    mark movie/episode as watchedTo watch entries, you can provide a URL, or search for a movie/TV show/episode. By default, will use now as the watched time:Usage: trakt-watch watch [OPTIONS]

  Mark an entry on trakt.tv as watched

Options:
  --url URL                   URL to watch
  -a, --at DATE               Watched at time (date like string, or 'released')
  -r, --rating INTEGER RANGE  Rating  [1<=x<=10]
  -l, --letterboxd            open corresponding letterboxd.com entry in your browser
  -h, --help                  Show this message and exit.Query recent history:$ trakt-watch recent
2023-10-21 22:24:59 Stuff Made Here S2023E1 - I sent robot forgeries to a handwriting expert
2023-10-21 22:18:10 Possession
2023-10-21 19:33:15 Stuff Made Here S2023E2 - I made 6 absurd pencil sharpeners
2023-10-20 14:30:00 Killers of the Flower Moon
2023-10-18 23:49:06 RWBY S9E10 - Of Solitude and Self
2023-10-18 17:28:11 RWBY S9E9 - A Tale Involving a Tree
2023-10-17 18:32:29 RWBY S9E8 - Tea Amidst Terrible Trouble
2023-10-17 17:51:30 RWBY S9E7 - The Perils of Paper Houses
2023-10-15 22:39:51 The Wicker Man
2023-10-15 18:54:01 How to Blow Up a PipelineSet a movie as watched/rate it:$ trakt-watch watch --at '10m ago' --url https://trakt.tv/movies/possession-1981
Added count:
Movies: 1

Set rating? [Y/n]:
Rating: 9
Added count:
Movies: 1

Recent history:
1: 2023-10-31 11:35:28 PossessionSearch for an TV show and provide a season/episode number:$ trakt-watch watch
[M]ovie
[S]how
[E]pisode name
Ep[I]sode - Show w/ Season/Episode num
[U]rl
[A]ll
What type of media do you want to search for?
Search for show: barry
Results:
1: Show:	'Barry (2018)' | shows/122709
2: Show:	'Carrie and Barry (2004)' | shows/9085
3: Show:	'Red Barry (1938)' | shows/128828
4: Show:	'Barry Hilton (1999)' | shows/110779
5: Show:	'Carrie & Barrie (2004)' | shows/128392
6: Show:	'Barry Tales (2013)' | shows/100038
7: Show:	'Todd Barry (2012)' | shows/105417
8: Show:	'Barry Manilow Specials (1977)' | shows/67327
9: Show:	'Barry Welsh is Coming (1996)' | shows/13243
10: Show:	'Britains Greatest Machines With Chris Barrie (2009)' | shows/49775
11: Show:	'Deception With Keith Barry (2010)' | shows/63137
'Pick result - enter 1-11, or q to quit [1]':
Season: 1
Episode: 8Testsgitclone'https://github.com/seanbreckenridge/trakt-watch'cd./trakt_watch
pipinstall'.[testing]'pytest
flake8./trakt_watch
mypy./trakt_watch
Package: tral
Tandem Repeat Annotation LibraryTRAL is a highly modularized, flexible sequence tandem repeats annotation Python2/3 library.Large scale annotation of tandem repeats withde novodetectors, and sequence profile modelsStatistical significance testing, overlap detection, and filtering of annotationsRefinement of tandem repeat annotations with circular profile hidden Markov modelsUser-defined output formatsThe source code isdocumented on GitHub IO.Version2.0InstallationIt is recommended to use TRAL with thedocker imageor install it locally with theeasy_setupsystem.LicenseGPL-2.0DependenciesSome of TRAL's functions depend on external software (Installation instructions for dependencies). This includes creation of sequence profile hidden Markov models, alignment of tandem repeat units, andde novorepeat detection.
Package: tralutils
tralutilspython package for working withTralvideodata archiveProject Page:https://github.com/sv99/tralutilsInstallInstall from pip::pip install setuptools -U
pip install tralutilsInstall development version::git clone
pip install -e .[dev]make tar.gz for PyPi::pip install twine
python setup.py sdist
twine upload dist/tralutils-x.x.x.tar.gzvideodata dirВ каталоге videodata/ хранится архив видеонакопителя.Файлы с одним именем хранят информацию об одном и том же фрагменте архива.xx.30m xx.1h xx.6h xx.12h xx.24h xx.7d - файлы активности (иерархические индексные файлы)xx.evt - событияxx.id3 - индексные файлыxx.msn3 - содержат потоки данных. Размер *.msn3-файлов не превышает 600 мегабайт.MSN3 формат позволяет передавать видео, звук и текст по сети Internet от архиватора для воспроизведения на компьютере пользователя.
Формат спроектирован для эффективной передачи данных, но не для их изменения.Архив проиндексирован. Основные индексные файлы имеют ID3 формат.В ID3 файле размещены записи одинакового размера/типа MSN_ID3_REC, которые относятся к одноименному файлу архива.Записи MSN_ID3_REC хранят информацию о потоке, сформировавшем событие, о числе каналов для которых есть информация
по активности, время формирования события, позиция в одноименном MSN3 файле и информация по активности внутри каналов.Файлы форматов 30M, 1H, 6H, 12H, 24H, 7D
являются прореженными ID3 файлами, с разной степенью прореживанияИнформация о событиях заносится как в файлы данных архива в формате MSN3, так и в EVT файлы, которые являются
вспомогательными файлами и их содержимое используется для быстрого перехода на событие,
т. е. выполнения операций позиционирования по имени события. В EVT файле размещены записи типа EVENT_FILE_DATA_T.Usagevideodir.py [-h] -i INPUT [-v] [--version]

Show tral archive videodir information

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT   videodata dir
  -v, --verbose
  --version             show program's version number and exit

tralinfo.py [-h] -i INPUT [-v] [--version]

Show single tral videodata file info

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT   videdata file
  -v, --verbose
  --version             show program's version number and exit
Package: trame-client
trame-client is the generic single page application that come withtrame.
trame-client provides the infrastructure on the client-side (browser) to connect to a trame server, synchronize
its state with the server, make method call, load dynamically components and feed a dynamic template provided by the server.This package is not supposed to be used by itself but rather should come as a dependency oftrame.
For any specificity, please refer tothe trame documentation.Installingtrame-client can be installed withpip:pipinstall--upgradetrame-clientUsageTheTrame Tutorialis the place to go to learn how to use the library and start building your own application.TheAPI Referencedocumentation provides API-level documentation.Licensetrame-client is made available under the MIT License. For more details, seeLICENSEThis license has been chosen to match the one use byVue.jswhich is instrumental for making that library possible.CommunityTrame|Discussions|Issues|RoadMap|Contact UsEnjoying trame?Share your experiencewith a testimonialorwith a brand approval.DevelopmentBuild client side code basecd vue[2,3]-app
npm install
npm run build            # build trame client application
cd -
Package: trame-components
trame-components extend tramewidgetswith helper components that are core to trame widgets.This package is not supposed to be used by itself but rather should come as a dependency oftrame.
For any specificity, please refer tothe trame documentation.Installingtrame-components can be installed withpip:pipinstall--upgradetrame-componentsUsageTheTrame Tutorialis the place to go to learn how to use the library and start building your own application.TheAPI Referencedocumentation provides API-level documentation.This library specifically brings the following set of vue.js components to the core trame package.<ClientStateChange.../><ClientTriggers.../><FloatCard.../><GitTree.../><LifeCycleMonitor.../><ListBrowser.../><MouseTrap.../><SizeObserver.../><XaiHeatMap.../><XaiImage.../>Licensetrame-client is made available under the Apache License, Version 2.0. For more details, seeLICENSECommunityTrame|Discussions|Issues|RoadMap|Contact UsEnjoying trame?Share your experiencewith a testimonialorwith a brand approval.
Package: trame-datagrid
Trame widget of theRevoGridcomponent for vue3.Licensetrame-datagrid is made available under the MIT License. For more details, see LICENSE This license has been chosen to match the one use by RevoGrid which is instrumental for making that library possible.Installingtrame-datagrid can be installed using pippip install trame-datagridDevelopmentThis component require to build a JavaScript library that bundles RevoGrid into a standalone file that can then be used by trame directly.Build and install the Vue componentscd vue-components
npm i
npm run build
cd -Install the applicationpip install .CommunityTrame|Discussions|Issues|RoadMap|Contact UsEnjoying trame?Share your experiencewith a testimonialorwith a brand approval.
Package: trame-deckgl
trame-deckgl extend tramewidgetswith components that can interface with PyDeck while being powered by Deck.gl.
Deck integration in trame allow you to create rich visualization by leveragingPyDeck(Apache License).Installingtrame-deckgl can be installed withpip:pipinstall--upgradetrame-deckglUsageTheTrame Tutorialis the place to go to learn how to use the library and start building your own application.TheAPI Referencedocumentation provides API-level documentation.Licensetrame-deckgl is made available under the MIT License. For more details, seeLICENSEThis license has been chosen to match the one use byDeck.glwhich is use within trame-deckgl.CommunityTrame|Discussions|Issues|RoadMap|Contact UsEnjoying trame?Share your experiencewith a testimonialorwith a brand approval.Example: PyDeckThe Deck component relies on the server for generating the map definition.importpydeckaspdkfromtrame.widgetsimportdeckgldeck=pdk.Deck(map_provider="mapbox",map_style="mapbox://styles/mapbox/light-v9",initial_view_state={"latitude":37.76,"longitude":-122.4,"zoom":11,"pitch":50,},layers=selected_layers,)widget=deckgl.Deck(mapboxApiKey=...,deck=deck)widget.update(deck2)
Package: trame-grid-layout
trame-grid-layout extend tramewidgetswith components that can be used to create some dynamic grid layout containers.
It leverage [vue-grid-layout](https://github.com/jbaysolutions/vue-grid-layout) which is a grid layout system, like
[Gridster](http://dsmorse.github.io/gridster.js/), for Vue.js. Heavily inspired by [React-Grid-Layout](https://github.com/react-grid-layout/react-grid-layout).Installingtrame-grid-layout can be installed withpip:pipinstall--upgradetrame-grid-layoutUsageTheTrame Tutorialis the place to go to learn how to use the library and start building your own application.TheAPI Referencedocumentation provides API-level documentation.Licensetrame-grid-layout is made available under the MIT License License. For more details, seeLICENSEThis license has been chosen to match the one use byvue-grid-layoutwhich can be exposed via this library.CommunityTrame|Discussions|Issues|RoadMap|Contact UsEnjoying trame?Share your experiencewith a testimonialorwith a brand approval.Development: Grabbing client before push to PyPITo update the client code, run the following command line while updating the targeted versionmkdir -p ./trame_grid_layout/module/serve
curl https://unpkg.com/vue-grid-layout@2.4.0 -Lo ./trame_grid_layout/module/serve/vue-grid-layout.jsSimple examplefromtrame.appimportget_serverfromtrame.ui.vuetifyimportSinglePageLayoutfromtrame.widgetsimportvuetify,gridserver=get_server()state=server.stateLAYOUT=[{"x":0,"y":0,"w":2,"h":2,"i":"0"},{"x":2,"y":0,"w":2,"h":4,"i":"1"},{"x":4,"y":0,"w":2,"h":5,"i":"2"},{"x":6,"y":0,"w":2,"h":3,"i":"3"},{"x":8,"y":0,"w":2,"h":3,"i":"4"},{"x":10,"y":0,"w":2,"h":3,"i":"5"},{"x":0,"y":5,"w":2,"h":5,"i":"6"},{"x":2,"y":5,"w":2,"h":5,"i":"7"},{"x":4,"y":5,"w":2,"h":5,"i":"8"},{"x":6,"y":3,"w":2,"h":4,"i":"9"},{"x":8,"y":4,"w":2,"h":4,"i":"10"},{"x":10,"y":4,"w":2,"h":4,"i":"11"},{"x":0,"y":10,"w":2,"h":5,"i":"12"},{"x":2,"y":10,"w":2,"h":5,"i":"13"},{"x":4,"y":8,"w":2,"h":4,"i":"14"},{"x":6,"y":8,"w":2,"h":4,"i":"15"},{"x":8,"y":10,"w":2,"h":5,"i":"16"},{"x":10,"y":4,"w":2,"h":2,"i":"17"},{"x":0,"y":9,"w":2,"h":3,"i":"18"},{"x":2,"y":6,"w":2,"h":2,"i":"19"},]withSinglePageLayout(server)aslayout:layout.title.set_text("Grid layout")withlayout.content:withgrid.GridLayout(layout=("layout",LAYOUT),row_height=20,):grid.GridItem("{{ item.i }}",v_for="item in layout",key="item.i",v_bind="item",classes="pa-4",style="border: solid 1px #333; background: rgba(128, 128, 128, 0.5);",)if__name__=="__main__":server.start()
Package: trame-iframe
Trame widget library that can be use to handle cross-origin communication with iframe.
This library is compatible with both vue2 and vue3 client.In a nutshell, this library allow to embed a trame application as an iframe while still enabling communication or synchronization with the parent web application.
This also could be reversed where trame can embed an external web application as iframe and either drive it or listen to internal state change.For more details on how to use it, please look at the examples.LicenseThis library is distributed under the Apache Software LicenseDevelopmentBuild and install the Vue componentscd vue-components
npm i
npm run build
cd -Install python packagepip install -e .