Saravanan666/pypi-org huggingface dataset:
Package: seriattrs
SeriArrts module for automatic serialization and deserializationSeriArrts is an unofficial extension toattrslibrary.
The module is ment to be used in conjunction with databases or json which may require serialization and deserialization.
To allow creation of custom Object-Database mapping DbAttrs supports basic datatype such as ints, uints, vars etc.InstallationYou can install theseriattrspackage using pip:pipinstallseriattrsExampleHere's an example of how to use the serialization and deserialization withSeriArrts:@defineclassBar(DbClass):dictionary:dictdate:datetimedecimal:Decimal@defineclassFoo(DbClass):dictionary:dictdate:datetimedecimal:Decimalbar:Barfoo=Foo({},datetime.now(),Decimal(1),Bar({},datetime.now(),Decimal(1)))serialized=foo.get_db_representation()foo.bar=foo.bar._idtry:json.dump(serialized,sys.stdout)except:assertFalsedeserialized=Foo.from_dict(serialized)assertdeserialized==fooHere's an example of how to use the serialization and deserialization withDbClassLiteral:@defineclassBar(DbClassLiteral):dictionary:dictdate:datetimedecimal:Decimal@defineclassFoo(DbClass):dictionary:dictdate:datetimedecimal:Decimalbar:Barfoo=Foo({},datetime.now(),Decimal(1),Bar({},datetime.now(),Decimal(1)))serialized=foo.get_db_representation()try:json.dump(serialized,sys.stdout)except:assertFalsedeserialized=Foo.from_dict(serialized)assertdeserialized==fooYou can make use of db_types the following way@defineclassFoo(DbClass):a:int=int8()b:int=uint16()c:str=varchar(7)d:str=text()classTestFooClass(unittest.TestCase):defsetUp(self):self.foo_instance=Foo(0,0,'','')deftest_attribute_a(self):withself.assertRaises(ValueError):self.foo_instance.a=-129# Below int8 rangewithself.assertRaises(ValueError):self.foo_instance.a=128# Above int8 rangedeftest_attribute_b_out_of_range(self):withself.assertRaises(ValueError):self.foo_instance.b=-1# Below uint16 rangewithself.assertRaises(ValueError):self.foo_instance.b=65536# Above uint16 rangedeftest_attribute_c_out_of_range(self):withself.assertRaises(ValueError):self.foo_instance.c="Too bigg"deftest_attribute_d_positive(self):passed_text="""I'm the ScatmanSki-bi dibby dib yo da dub dubYo da dub dubSki-bi dibby dib yo da dub dubYo da dub dub(I'm the Scatman)Ski-bi dibby dib yo da dub dubYo da dub dubSki-bi dibby dib yo da dub dubYo da dub dubBa-da-ba-da-ba-be bop bop bodda bopeBop ba bodda bopeBe bop ba bodda bopeBop ba boddaBa-da-ba-da-ba-be bop ba bodda bopeBop ba bodda bopeBe bop ba bodda bopeBop ba bodda bope"""self.foo_instance.d=passed_textself.assertEqual(self.foo_instance.d,passed_text)
Package: seriesbr
seriesbr: Uma biblioteca em Python para consultar bancos de dados com séries temporais do BCB, IPEA e IBGEseriesbrajuda a consultar, de forma programática, séries temporais dos
bancos de dados do Banco Central do Brasil (BCB), Instituto de Pesquisa
Econômica Aplicada (IPEA) e Instituto Brasileiro de Geografia e Estatística
(IBGE).É inspirado nos seguintes pacotes escritos em R:rbcb,ipeaDataesidrar.APIA biblioteca possui três módulos,bcb,ipeaeibge. Cada uma possui uma
função chamadaget_seriesque aceita o identificador da série e retorna umDataFrame.Para mais detalhes, leia adocumentação.Exemplofromseriesbrimportbcbbcb.get_series(20786,start="2015",end="2016")20786
Date
2015-01-01  26.54
2015-02-01  27.46
2015-03-01  27.21
2015-04-01  28.41
2015-05-01  29.09
2015-06-01  29.75
2015-07-01  30.67
2015-08-01  31.05
2015-09-01  30.89
2015-10-01  32.00
2015-11-01  32.66
2015-12-01  31.08
2016-01-01  33.62
2016-02-01  35.15
2016-03-01  36.44
2016-04-01  38.05
2016-05-01  38.50
2016-06-01  38.36
2016-07-01  39.21
2016-08-01  39.71
2016-09-01  40.22
2016-10-01  41.18
2016-11-01  40.84
2016-12-01  39.12ContribuindoSinta-se à vontade para abrir issues ou pull requests.Caso queira contribuir, primeiro instale opoetrye depoispoetry install.
Rode os testes localmente compoetry run pytest.LicençaMIT
Package: seriesheatmap
IMDB Series Rating ScraperIntroductionThis tool scrapes the websitehttps://www.imdb.comfor ratings of individual episodes of a series.
A csv file is generated to cache the ratings.
Using matplotlib, the tool then generates a heatmap representation of all episodes in the series.
Because this tools relies on scraping the html tree of the imdb page, it might break anytime.
Feel free to message me if the scraper doesn't work anymore or create a pull request with adjusted xpaths.ExamplesData outputThe following table shows data that is generated by the scraper for the first season ofBreaking Bad.
For the full data output seeexamples/data/Breaking Bad.csv.seasonepisodenamerating11Pilot9.012Cat's in the Bag...8.613...And the Bag's in the River8.714Cancer Man8.215Gray Matter8.316Crazy Handful of Nothin'9.317A No-Rough-Stuff-Type Deal8.8Heatmap outputThe following image shows an example of the heatmap that can be generated.
Heatmaps of some example series can be found underexamples/img/.QuickstartDependenciesPython versionPython 3.9.13Python packages seerequirements.txtSetupClone this repositoryHTTPS$ git clone https://github.com/trflorian/imdb-scraper-heatmap.gitSSH$ git clone git@github.com:trflorian/imdb-scraper-heatmap.git(Optional) Create a virtual environment for this projectInstall the required python packages in your python environment.$ python -m pip install -r requirements.txtRun$ python scraper.pyto scrape the IMDB website for a specific series.Run$ python heatmap.pyto create a plot for the scraped series.Usage$ python .\examples\heatmap.py --help

usage: heatmap.py [-h] [-s] [-d] [-o] [-n NAME]

optional arguments:
  -h, --help            show this help message and exit
  -s, --show            show the heatmap plot instead of saving it
  -d, --dark            use dark mode for the plot style
  -o, --override        override existing plots, only used if show flag is not set
  -n NAME, --name NAME  name of the series, if not set the whole data directory will be scannedDevelopmentUpload to Pypipython -m buildpython -m twine upload --skip-existing dist/*
Package: seriesmgmtsystem
Thesms- SeriesManagmentSystem - Is a tool to manage and distributes exercises to students. The exercises
are prepared indiviually, each with its own resources (like source code) and its solution. From there it is possible
to creates series by combining different exercises together on the fly. Such Series can then be compiled to PDF files (plus additional resources which get zipped)Homepage:https://github.com/digsim/seriesManagementSystemCode:https://github.com/digsim/seriesManagementSystemMailing list:https://github.com/digsim/seriesManagementSystemDependencies:pytvdbapicoloramasqlalchemysqlalchemy-utilssixmysqlclientprogressbar2andsetuptoolsCompatible with:2.7 and 3.3+License:APACHERoadmap2.0: Progress bar,2.1: More fancy stuff,Test Coverage ReportOutput from coverage test:py35 runtests: commands[1] | coverage report
Name                                                Stmts   Miss  Cover
-----------------------------------------------------------------------
src/seriesmgmtsystem/__init__.py                        2      0   100%
src/seriesmgmtsystem/main/__init__.py                   5      5     0%
src/seriesmgmtsystem/main/main.py                      77     77     0%
src/seriesmgmtsystem/main/mainImpl.py                  98     98     0%
src/seriesmgmtsystem/sms/__init__.py                    0      0   100%
src/seriesmgmtsystem/sms/serieManagementSystem.py     298    221    26%
src/seriesmgmtsystem/utils/LaTeX.py                    98     86    12%
src/seriesmgmtsystem/utils/Utils.py                   154    135    12%
src/seriesmgmtsystem/utils/ZipUtils.py                 55     45    18%
src/seriesmgmtsystem/utils/__init__.py                  0      0   100%
-----------------------------------------------------------------------
TOTAL                                                 787    667    15%
Package: seriesnatch
seriesnatch - manage your serie needs by ease=============================================Dependencies============* PyYAML* SQLAlchemy* lxml* requests* transmissionrpc (also transmission-daemon, for torrent downloading)Description=====================Manage all your tv-serie needs with this neat little tool, there are 2 scripts includedseriesnatch & seriesnatch-admin. With seriesnatch-admin you can easily manage the database,you can create an initial database with all records from eztv.it or clear it to start outfresh.With seriesnatch, there are few options right now, the first option is --dev-mode which willenable logging to stdout instead of just purely using syslog. The other option available is--watchlist-update which will scrape eztv.it for any new releases. If any new release(s) arefound it will automatically be downloaded from the site by transmission-daemon.To take full advantage of this, you should use a cron-daemon to do a --watchlist-updateevery so often so it is automated. There are also currently one notifier available, thegmail notifier if configured will email any recipients with a list of updates availableupon an update so you can easily know when a new serie has been downloaded for you.The configuration is written using YAML and should be placed in $HOME/.seriesnatch with aname of config.yml.Example config.yml::transmission:port: 9091username: youruserpassword: yourpasswordwatchlist:- http://eztv.it/shows/683/go-on/- http://eztv.it/shows/670/anger-management/- http://eztv.it/shows/648/once-upon-a-time/notifications:gmail:username: your_sender_gmail@gmail.compassword: your_password_in_plain_textrecipients:- recipient_1@hotmail.com- recipient_2@gmail.comdatabase:filename: my_databse.dbDefault values exist for transmission(username=transmission, password=transmission, port=9091), database(filename=default.db).So unspecified values will be filled in, you are however expected to have a watchlist if there is any shows you areinterested in having watched for you. Notifications are totally optional, but may come in handy if run by a daemon.The database files are stored in $HOME/.seriesnatch, so for that just specfiy a filename.
Package: series-renamer
# Series Renamer[![Version](https://img.shields.io/pypi/v/series-renamer.svg)](https://pypi.python.org/pypi/series-renamer)[![Downloads](https://img.shields.io/pypi/dw/series-renamer.svg)](https://pypi.python.org/pypi/series-renamer)[![Build Status](https://travis-ci.org/aviaryan/series-renamer.svg?branch=master)](https://travis-ci.org/aviaryan/series-renamer)Python script that connects to [thetvdb.com](http://thetvdb.com) and renames your TV series in any fashion you want.### Why another series renamer ?Other series renaming scripts I tried follow a very error-prone procedure. They scan each filename independently and try to extract all information about the episode from that.Now my One Piece episodes are named like `opdub283.mp4` and `---one piece episode 691 -u0026 692 english sub full hd.mp4` . How do you expect them to extract any info from this ?So I decided to make my own *series renamer*. To be able to rename (fix) even badly named files like the above, my script -* scans the working directory non-recursively* gets the name of the TV/Anime series the folder has from the user* gets [TVDB](http://thetvdb.com) information of the TV series the user specified.* scans through the filenames for potential season numbers / episode numbers. Once you have the series name and the season/episode number accurate, nothing can stop your TV series collection from having a proper name.## Installing```bashpip install series-renamer```or download the zip and extract it.```bashpython setup.py install```## Using* Open **command prompt** aka **terminal** in the directory you want to scan and run the following command.```series-renamer```* Give the series name. Make sure you write the name as precisely as possible.* The script will connect to TVDB and then scan the filenames. After that it will give you suggestions on the season numbers/episode numbers of files.* Choose the appropriate option and move forward. Use option 'a' (automatic) if possible.* In the end the script will create a log (series-renamer-log.html) in the root of the folder that was currently examined.* Confirm with (y) and all episodes in the folder will be renamed.## Features* Customizable episode renaming format.* Works even without season information in the filename. It then uses episode_number as the absolute episode_number of the TV Series.* You can explictly specify season and episode number at runtime.* Supports multi-episodes separated by hyphen like `Friends [10x17-18].mkv`.* Subtitle files are automatically renamed.* More [extra configurations](https://github.com/aviaryan/series-renamer/wiki#configjson) to make sure your tv collection is properly detected and renamed.## ExamplesSome sample logs created by series-renamer can be viewed from [this link](http://aviaryan.github.io/series-renamer/examples/index.html).## ImportantIt is recommended you read [some docs](https://github.com/aviaryan/series-renamer/wiki) to be fully comfortable with Series Renamer.## Requirements* tvdb-api## Questions ?Just create an [issue](https://github.com/aviaryan/series-renamer/issues), I will be glad to be of any help.
Package: series-renamer-tools
Series Renamer ToolsBulk changing file names into prettier format.Table of ContentsRequirementInstallationInstalling from PyPIInstalling from GitUsageOptionsYAML InputLicenseRequirementPython 3.6+InstallationInstalling from PyPIpip3installseries-renamer-toolsInstalling from Gitpython3setup.pyinstallUsageseries-renamers--directory[path/to/target/directory]--prefix'Series S01 E'[--dry-run]OptionsNameTypeDescriptionRequiredDefault--directory,-dstringpath to target directoryfalsecurrent directory--prefix,-pstringnew file name prefixtrue--dry-run,-drbooleanonly preview the resultsfalsefalseLicenseSeries Renamer Tools is an open-source tool licensed underMIT License.
Package: serietvapi-bot
SerieTvITaly_bot_downloaderCome installo?Questo pacchetto è disponibilesolo per il Python 3, eseguirlo con Python 2 significherebbe avere errori.pip install serietvapi_botSe restituisce errori provate ad eseguire il comando con i privilegi di amministratore (mettendosudodavanti al comando).Attualmente è ben testato per il sistema operativo macOS, per Windows non è stato testato mentre per il sistema operativo Raspbian (Raspberry Pi) è ancora da testare e supportare.Cosa viene installato?Questo è un tool Python che si appoggia ad altri tool python, tutti gratuiti ed open-source.Ecco tutti i moduli Python che vengono installati quando installate il nostro tool:youtube-dlper effettuare i downloadTelethonpermette di creare un Client Telegram e di eseguire delle operazioni al vostro posto, noi lo utilizziamo per effettuare i caricamenti dei file che sono stati scaricati.requestsè un tool che permette di inviare richieste HTTP con sintassi più umana (quella integrata nel Python è poco umana, prossima a sintasssi Java)Inoltre verrano installati anche altri moduli che sono richiesti da questi moduli.Mi vengono chiesti dati che Telegram dice di non fornire, come mai?Telethon è a tutti gli effetti un Client Telegram alternativo però senza una GUI (interfaccia utente) e per questo motivo sono richiesti alcuni dati sensibili come numero di telefono, codice di verifica e, se impostata, la password.Tali datiNONsono memorizzati nè sul vostro computer nè sui nostri server (potete visionare i file e vedere che tali salvataggi non avvengono).Ci sono due file uno che termina per.jsone l'altro che termina per.sessione, il primo memorizza le credenziali per usare le API sia di Telethon (con i valori api_id e api_hash già inseriti, potete inserire delle vostre se avete un Client tutto vostro) sia del nostro Bot Telegram@SerieTvItaly_bote queste vengono fornite al momento della creazione dell'account API nel Bot.Tali dati sono richiesti solo una volta e valgono per tutta la durata del vostro account, quando l'account è scaduto o non più valido verranno chieste nuovamente le credenziali automaticamente.Il secondo file (.session) ha tutte le informazioni che servono per interagire col vostro profilo (inviare messaggi ed ottenerli, anche media) ma non vi sono riferimenti a numero di telefono o vostra password ma altre informazioni che Telegram fornisce.Essendo un Client Alternativo potenzialmente è possibile usare Telegram anche con questo script Python, come potete vedere anche dai codici i messaggi e i file vengono inviati solo al nostro Bot e nessuna lettura di messaggi avviene fatto perché non ci interessa perché lo scopo di questo script Python è quello di contribuire al miglioramento del nostro Bot e qunidi attribuire premi maggiori.
Package: serifan
Quick DescriptionA python wrapper for theshortboxed.comAPI.InstallationPyPi$pip3install--userserifanExample Usageimportserifanm=serifan.api()# Get this weeks comic releases.results=m.new_releases()# Print the resultsforiinresults:print(f"{i.title}")DocumentationRead the project documentationBugs/RequestsPlease use theGitHub issue trackerto submit bugs or request features.LicenseThis project is licensed under theGPLv3 License.
Package: serious
seriousA dataclass model toolkit: serialization, validation, and more.DocumentationFeaturesModel definitions in pure Python.Validation showing up in code coverage.Type annotations for all public-facing APIs.(Optionally) ensures immutability.Easily extensible.Made for people.Documented rigorously.BasicsInstallationAvailable fromPyPI:pipinstallseriousQuick ExampleCentral part of Serious API are differentModels.Given a regular dataclass:fromdataclassesimportdataclass@dataclassclassPerson:name:strLet’s create aJsonModel:fromserious.jsonimportJsonModelmodel=JsonModel(Person)And use itsdump/load methods:person=Person('Albert Einstein')model.dump(person)# {"name": "Albert Einstein"}ValidationTo add validation to the example above all we need is to add__validate__method to person:fromdataclassesimportdataclassfromtypingimportOptionalfromseriousimportValidationError,Email@dataclassclassPerson:name:stremail:Optional[Email]phone:Optional[str]def__validate__(self):iflen(self.name)==0:raiseValidationError('Every person needs a name')ifself.phoneisNoneandself.emailisNone:raiseValidationError('At least some contact should be present')More on validation.Supported formats:JSONPython DictionariesYAMLForm dataSupported field typesMore in docs.Other dataclassesPrimitives:str,int,float,boolDictionaries: only with string keys:Dict[str, Any]Lists,sets,deques: python collections of any serializable typeTuplesboth with and without ellipsis:tuples as set of independent elements (e.g.Tuple[str, int, date])with ellipses, acting as a frozen list (Tuple[str, ...])Enumerationsby value:of primitives (e.g.OperatingSystem(Enum))typed enums (Color(str, Enum)andFilePermission(IntFlag))Decimal: encoded to JSON as stringDatetime,dateandtime: encoded to theISO 8601formatted stringUUIDserious.types.Timestamp: a UTC timestamp sinceUNIX epochas float ms valueserious.types.Email: a string Tiny Type that supports validation and contains additional propertiescustom immutable alternatives to native python types inserious.types:FrozenList,FrozenDictA bigger examplefromdataclassesimportdataclassfromseriousimportJsonModel,ValidationErrorfromtypingimportListfromenumimportEnumclassSpecialty(Enum):Worker=1Fool=2@dataclass(frozen=True)classMinion:name:strtype:Specialty@dataclass(frozen=True)classBoss:name:strminions:List[Minion]def__validate__(self):iflen(self.minions)<2:raiseValidationError('What kind of boss are you?')boss=Boss("me",[Minion('evil minion',Specialty.Fool),Minion('very evil minion',Specialty.Worker)])boss_json="""{"name": "me","minions": [{"name": "evil minion","type": "Fool"},{"name": "very evil minion","type": "Worker"}]}"""model=JsonModel(Boss,indent=4)assertmodel.dump(boss)==boss_jsonassertmodel.load(boss_json)==bossAcknowledgementsInitially, a fork of@lidatong/dataclasses-json.
Package: serious-django-enums
https://github.com/serioeseGmbH/serious-django-enumsserious-django-enums defines an Enum-like class,AutoEnum, that intends to bring together the pattern
to define choice fields that Django uses, and intuitive usage of Enums like most people know them.Consider the example where you’ve defined your choices on a ChoiceField, e.g.:class SomeForm(forms.Form):
    ...
    STATE_CHOICES = (
        ("ACTIVE", "active"),
        ("ENDED", "ended"),
    )
    field = forms.ChoiceField(choices=STATE_CHOICES, default="ACTIVE")What this package gives you is wrapping this in a class and having it accessible as class attributes:class States(AutoEnum):
    choices = (
        ("ACTIVE", "active"),
        ("ENDED", "ended"),
    )

class SomeForm(forms.Form):
    field = forms.ChoiceField(choices=States.choices, default=States.ACTIVE)which has the advantage of being import-able from different parts of your code and not directly tied to the form, and also gives you nice-looking property access instead of dictionary-like key access.The definition is currently extremely basic, but has suited our needs well.Quick startInstall the package with pip:pip install serious-django-enumsImportserious_django_enums.AutoEnumand subclass it, defining achoicesproperty on the class.Use the auto-defined member properties of your AutoEnum-subclasses wherever you need them.
Package: serious-django-graphene
https://github.com/serioeseGmbH/serious-django-grapheneserious-django-graphene offers a couple of extensions for Graphene development in Django.get_user_from_inforeturns the request’s user from the passed info object.We use this function all the time, for example, to do permission checks on the current user.FormMutationis based onFailableMutation(see below).It defines a Graphene mutation based on a plain old Django form. What is this good for?
Well, we want to employ the builtin capabilities of Django for input validation and
conversion. Why reinvent the wheel to do checks like “string of max length 50” inside
Graphene mutations when Forms can do that for you, and have extensible validators?This is essentially a cleaned up and changed version of the FormMutation delivered with
graphene-django itself. The difference is mainly in how we model the returned data in an
expectable pattern, see FailableMutation.FailableMutationdefines a mutation that contains:Asuccessboolean flagAnerrorvalue, present only if an error occurred, which is (a union of) eitherA list ofValidationErrorin the format like Django returns for validation errors, orAnExecutionError, which just contains anerror_messageString.If you need additional fields, add them by inheriting fromFailableMutation.make_failable_objecttypeturns an existing graphene.ObjectType into a Field that contains:Aresultfield which is an optional value of the original typeAerrorfield which is an optional String value, present only if an error occurredAsuccessboolean flag field. Strictly seen, this is superfluous, as thenull-ness ofresultorerrorcan be checked. However, its existence improves semantics on the
client, as they can now just checkif(result.success) { ... }.Quick startInstall the package with pip:pip install serious-django-grapheneAdd “serious_django_graphene” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'serious_django_graphene',
]Import and useserious_django_graphenewherever you need the Graphene extensionsImport and useserious_django_graphene.testingwherever you need the Graphene test extensions