Saravanan666/pypi-org huggingface dataset:
Package: types-whatthepatch
Typing stubs for whatthepatchThis is a PEP 561 type stub package for thewhatthepatchpackage. It
can be used by type-checking tools likemypy,pyright,pytype,
PyCharm, etc. to check code that useswhatthepatch. The source for this package can be found athttps://github.com/python/typeshed/tree/main/stubs/whatthepatch. All fixes for
types and metadata should be contributed there.Seehttps://github.com/python/typeshed/blob/main/README.mdfor more details.
This package was generated from typeshed commitafe18e95a9592434e93b648de5194cfe54443f84and was tested
with mypy 1.4.1, pyright 1.1.318, and
pytype 2023.6.16.
Package: types-workalendar
Typing stubs for workalendarThis is a PEP 561 type stub package for theworkalendarpackage. It
can be used by type-checking tools likemypy,pyright,pytype,
PyCharm, etc. to check code that usesworkalendar. The source for this package can be found athttps://github.com/python/typeshed/tree/main/stubs/workalendar. All fixes for
types and metadata should be contributed there.Seehttps://github.com/python/typeshed/blob/main/README.mdfor more details.
This package was generated from typeshed commit40c639fcb0e2c2628fff019e4b769fd364c46665and was tested
with mypy 1.5.1, pyright 1.1.323, and
pytype 2023.8.14.
Package: types-WTForms
Typing stubs for WTFormsThis is aPEP 561type stub package for theWTFormspackage.
It can be used by type-checking tools likemypy,pyright,pytype,
PyCharm, etc. to check code that usesWTForms.This version oftypes-WTFormsaims to provide accurate annotations
forWTForms==3.1.*.
The source for this package can be found athttps://github.com/python/typeshed/tree/main/stubs/WTForms. All fixes for
types and metadata should be contributed there.Seehttps://github.com/python/typeshed/blob/main/README.mdfor more details.
This package was generated from typeshed commita2a6aee89213d87ed6f86cf723a7fc4ed3c219a2and was tested
with mypy 1.8.0, pyright 1.1.342, and
pytype 2024.1.24.
Package: types-wxpython
Typing stubs for wxPythonVersion: wxPython 4.2.0This package contains typing stubs forwxPython.This package is not maintained by the wxPython maintainers. It is maintained by users of wxPython.Any help is always appreciated.How it worksThe base for the stubs is generated fromdocs.wxpython.org. It crawls the documentation looking for Python classes, functions, and literals. This means that changes in the documentation are automatically reflected in the stubs when they are regenerated.We do not manually update anything in the `wx-stubs' folder. Everything is generated by the generator.Runrun.bat/run.shto generate the stubs.OverridesBecause we generated things based on online information, sometimes we have to resort to guessing, or sometimes the online documentation does not contain certain information. To fix these problems, we can override the typing.You can find the overrides ingenerator/overrides.py.In this file you can override any parameter by specifying the key and the parameter you want to override. You can change the typing of any class, function, or literal. These are applied after the typing is retrieved from the online documentation.To update the stubs run:run.bat. This will result in newly updated stubs in thewx-stubsfolder.MissingThe online documentation may be incomplete, or sometimes we just can't understand the page. In these cases, we can add typing to the stubs.You can find this file ingenerator/extras.py.Here you can add any missing typing.To update the stubs run:run.bat. This will result in newly updated stubs in thewx-stubsfolder.Help is appreciatedWe started this project because we use wxPython ourselves and code typing is really helpful for finding bugs.
But there is so much in wxPython. We fixed problems in the stubs as they came up in our code. This can cause things to not work for your code.We have decided to open source the work we have put into creating the best wxPython typing there is.
We want you to help. You can create an issue if you find problems with the typing. Or create a pull request if you have fixed something.GuidelinesYou don't need to commit newly generated stubs to your PR. We will generate them when we release a new version of the stubs.
Package: types-xmltodict
Typing stubs for xmltodictThis is a PEP 561 type stub package for thexmltodictpackage. It
can be used by type-checking tools likemypy,pyright,pytype,
PyCharm, etc. to check code that usesxmltodict. The source for this package can be found athttps://github.com/python/typeshed/tree/main/stubs/xmltodict. All fixes for
types and metadata should be contributed there.Seehttps://github.com/python/typeshed/blob/main/README.mdfor more details.
This package was generated from typeshed commitafe18e95a9592434e93b648de5194cfe54443f84and was tested
with mypy 1.4.1, pyright 1.1.318, and
pytype 2023.6.16.
Package: types-xxhash
Typing stubs for xxhashThis is a PEP 561 type stub package for thexxhashpackage. It
can be used by type-checking tools likemypy,pyright,pytype,
PyCharm, etc. to check code that usesxxhash. The source for this package can be found athttps://github.com/python/typeshed/tree/main/stubs/xxhash. All fixes for
types and metadata should be contributed there.Note:Thexxhashpackage includes type annotations or type stubs
since version 3.1.0. Please uninstall thetypes-xxhashpackage if you use this or a newer version.Seehttps://github.com/python/typeshed/blob/main/README.mdfor more details.
This package was generated from typeshed commit880c0da4045cd5ff2c29b73429629adf27e49d50.
Package: types-zstd
Typing stubs for zstdThis is a PEP 561 type stub package for thezstdpackage. It
can be used by type-checking tools likemypy,pyright,pytype,
PyCharm, etc. to check code that useszstd. The source for this package can be found athttps://github.com/python/typeshed/tree/main/stubs/zstd. All fixes for
types and metadata should be contributed there.Seehttps://github.com/python/typeshed/blob/main/README.mdfor more details.
This package was generated from typeshed commitafe18e95a9592434e93b648de5194cfe54443f84and was tested
with mypy 1.4.1, pyright 1.1.318, and
pytype 2023.6.16.
Package: types-zxcvbn
Typing stubs for zxcvbnThis is aPEP 561type stub package for thezxcvbnpackage.
It can be used by type-checking tools likemypy,pyright,pytype,
PyCharm, etc. to check code that useszxcvbn.This version oftypes-zxcvbnaims to provide accurate annotations
forzxcvbn==4.4.*.
The source for this package can be found athttps://github.com/python/typeshed/tree/main/stubs/zxcvbn. All fixes for
types and metadata should be contributed there.Seehttps://github.com/python/typeshed/blob/main/README.mdfor more details.
This package was generated from typeshed commit1de5830a2703936a96a126248227d5c7db883674and was tested
with mypy 1.8.0, pyright 1.1.342, and
pytype 2023.12.18.
Package: typetalk
typetalk-pyTypetalk API client written in PythonUsageSimple bot exampleimportosimporttypetalkbot=typetalk.Bot(token=os.environ['TYPETALK_TOKEN'])res=bot.post_message(topic_id=os.environ['TYPETALK_TOPIC_ID'],message='Hello, world!')assertres['post']['message']=='Hello, world!'LinksTypetalk API Document
Package: typetest
Test your typing speed without leaving the terminal.:clipboard: descriptiontypetestis a self-contained minimal typing test program written withblessed.
As is, it is a near clone of10fastfingerswith an added bonus of being able to see typing speed as you're typing.:zap: featuresadjustable settingsstoring test resultsanalysing mistakeseasy to track improvement:chart_with_upwards_trend: analyse test results withtypetest-analyse!:shipit: installationinstall python3install pip (python package manager)runpip install typetestruntypetestOptionallymake an alias fortypetest, I usettruntypetest-analyseto get insights:bulb: ideas for testsAlong withtypetestthis repository features sample tests.
Try them like so:typetest -s -d 60 -i common_200or scrape something off the internet, like afeatured articleon wikipedia.#!/usr/bin/env python3importreimportrequestsfrombs4importBeautifulSoupword_pattern=re.compile(r"['A-Za-z\d\-]+[,\.\?\!]?")# symbols to keepurl='https://en.wikipedia.org/wiki/Special:RandomInCategory/Featured_articles'r=requests.get(url)soup=BeautifulSoup(r.text,'html.parser')forsupinsoup.select('sup'):sup.extract()# remove citationstext=' '.join(p.textforpinsoup.select('p'))text=re.sub(r'\[.*?\]|\(.*?\)','',text)# remove parenthesisprint(' '.join(re.findall(word_pattern,text)))If you create a file calledwiki_randomyou can start the test withwiki_random | typetest.
Write your own scraper, you may find some suggestionshere.:question: usageusage: typetest [-h] [-d DURATION] [--hash HASH] [-i INPUT] [-o OUTPUT_DIRECTORY] [-s] [-r ROWS]

optional arguments:
  -h, --help            show this help message and exit
  -d DURATION, --duration DURATION
                        duration in seconds (default: inf)
  --hash HASH           custom hash (generated from input by default)
  -i INPUT, --input INPUT
                        file to read words from (default: sys.stdin)
  -o OUTPUT_DIRECTORY, --output-directory OUTPUT_DIRECTORY
                        file to store results in
                        (default: /home/medo/repos/typetest/typetest/results)
  -s, --shuffle         shuffle words (default: False)
  -r ROWS, --rows ROWS  number of test rows to show (default: 2)

example:
  typetest -i test.txt -s -d 60
  echo 'The typing seems really strong today.' | typetest -d 3.5
  typetest < test.txt

shortcuts:
  ^c / ctrl+c           end the test and get results now
  ^[ / ctrl+[ / esc     end the test and get results now
  ^h / ctrl+h / bksp    delete a character
  ^r / ctrl+r / tab     restart the same test
  ^s / ctrl+s           restart the test with words reshuffled
  ^w / ctrl+w           delete a word
  ^u / ctrl+u           delete a word
Package: typetest-cli
Python versionstypetest-cliworks with all versions of python >= 3.8Installationpip installpipinstalltypetest-cliGitHubgitclonehttps://github.com/senyc/typetest-clicdtypetest-clipythonsetup.pyinstallRunningtypetest-cliAfter install you should be able to run the program withtypetestortypetest-cliUsageusage: typetest [-h] [--hide-acc] [--hide-wpm] [--only-base] [--no-blocking]

Lightweight typing speed commandline tool. Can be exited with Ctrl-c or return.

options:
  -h, --help         show this help message and exit
  --hide-acc, -a     hides the accuracy statistic
  --hide-wpm, -w     hides the word per minute statistic
  --only-base, -b    Only uses the base text
  --no-blocking, -n  Do not block input after 3 failed attmpts

Will only disply typing speed and accuracy upon completion of the line
Package: type-this-game
type-this-gameWritten in: PythonSimple game, where you win by typing the source code of the game itself.META!For indentation, use four spaces ortab.To play:$gitclonehttps://github.com/Laurentiu-Andronache/type-this-game.git
$cdtype-this-game
$pythontype-this-gameor:$pipinstalltype-this-game
$python-mtype-this-gameOn Linux, you can alsochmod +xit, and run with./type-this-game.pyIf you want level 2, consider changing the script so that it also reports
the total number of retries (when you're toldNo! Try again!).If you want level 3, make it compatible with Python 2.7! If you'll do this one,
please submit a pull request with the modifications.
Package: typethon
TypethonTypethon is an extremely lightweight and simple module for strongly typed Python.Typethon haszero dependencies, nada, zilch! Typethondoesn't even use imports from the standard library!(except for argument parsing in the CLIs, but they are completely optional and only provide linting / building functionality)(There are dependencies for development and building, but they are not acquired on installing Typethon.)Installation fromPyPIInstall via pip:pip install typethonDecorator Examplefromtypethon.decoratorsimport*@ReturnType(types=int,constraints=(lambdax:x>0),use_arg_passing=False)# ReturnType must go before if disabling arg passing, although I have not found a reason for a user to do so@ArgumentTypes(types={"a":int,"b":int},constraints={"a":(lambdax:x>0,lambdax:x<10),"b":(lambdax:x>0,lambdax:x<10)},use_arg_passing=False)defconstrained_add(a,b):returna+b@ArgumentTypes(use_annotations=True,constraints={"b":(lambdax:x>0,lambdax:x<=100)})@ReturnType(types=type(None))# must use NoneType to specify we actually want to restrict the return type to None, not just have no restrictiondefmultiplier_procedure(a:str,b:int):print(a*b)@ReturnType(use_annotations=True)defsilent_procedure()->None:# the annotation parser handles None to NoneType conversion automagically hereprint("Hello World!")@Strict()# syntactic sugar for @ArgumentTypes(use_annotations=True) combined with @ReturnType(use_annotations=True), this does not accept any argumentsdefstrict_uppercase(a:str)->str:print(a)returna.upper()@Strict(arg_constraints={"a":(lambdax:x>0,lambdax:x<5)},return_constraints=(lambdax:x>0,lambdax:x<10))# Strict also accepts constraints, denoted as separate argumentsdefstrict_constrained_multiply(a:int)->int:print(a)returna*2print(constrained_add(1,2))multiplier_procedure("hello",3)silent_procedure()print(strict_uppercase("hi!"))strict_constrained_multiply(4)DevelopmentClone the repository:git clone https://github.com/obfuscatedgenerated/Typethon.git(optional but recommended) Create a virtual environment:python -m venv env(orpython3 -m venv env) and then activate it:.\env\Scripts\activate(orsource env/bin/activate)Install build/dev dependencies:pip install -r requirements.txtOnce you've made changes, add yourself as a contributor:python build_tool.py add_contributor <your username>then commit and make a PR.VSCode users: it's recommended to use the Pylance language server as opposed to the Jedi language server as Jedi has issues with wrapper functions when displaying function signatures. You can do this by installing the Pylance extension and changing/setting thepython.languageServertoPylancein your settings.json file.BuildingMake sure all build/dev dependencies are installed:pip install -r requirements.txtFrom your virtual environment (if you used one, otherwise just run as usual):python build_tool.py build
Package: typetowritescreen
Installation:
To install just hit pip install typetowritescreen
for linux or macosx pip3 install typetowrite sceen
Usage:
In your main.kv file:#:import TypeToWriteScreen typetowritescreen.typetowritescreen.TypeToWriteScreen
TypeToWriteScreen:id:typetowritescreen
name:"typetowritescreen"to change the Background in your main.py self.screen.ids.typetowritescreen.background = 'background.jpg'
Package: typetrainer
Type TrainerThis small utility allows you to grow your typing skills in soft and
non-annoying manner. It tries to behave closely to proprietary VerseQ
application – adaptive typing tutor which dynamically changes exercises to help
trainee to learn hard places thoroughly.InstallThe most easy way via pypi:pip install typetraineror:easy_install typetrainerOr you can install from sources:python setup.py build
sudo python setup.py installOr run directly from sources without any install:./run.pyAlso you need pygtk to be installed.UsageSimply run:typetrainerAfter start you can click right mouse button at keyboard to activate popup menu.
It contains:Tutor generator selector.Keyboard selector.Recent files list.Open file dialog item.Tutor generator needs utf-8 encoded file to make exercises for you. You should
provide it via command line or activatingOpendialog.Personally I prefer to run type trainer with fortunes.TODOPython tutor.Statistic plots.Advanced Russian tutor.
Package: typetwo
Type TwoProvides a simple set of classes for handling type-II slowly changing dimension style data.
Also provides helper classes for reading and writing JSON payloads with ISO-compliant dates.Example Usage: TypeTworows=[{"id":1,"name":"Henry","age":34}{"id":2,"name":"Fred","age":42}]history=TypeType(rows,RowKey("id"),from_field="start",to_field="end")iter(history)>>>{"id":1,"name":"Henry","age":34,"start":datetime(1900,1,1),"end":datetime(2999,12,31)}>>>{"id":2,"name":"Fred","age":42,"start":datetime(1900,1,1),"end":datetime(2999,12,31)}history+={"id":1,"name":"Henry","age":37}iter(history)>>>{"id":1,"name":"Henry","age":34,"start":datetime(1900,1,1),"end":datetime(2022,6,12,3,0,0)}>>>{"id":1,"name":"Henry","age":37,"start":datetime(2022,6,12,3,0,0),"end":datetime(2999,12,31)}>>>{"id":2,"name":"Fred","age":42,"start":datetime(1900,1,1),"end":datetime(2999,12,31)}history+=[{"id":1,"name":"Henry","age":99}{"id":2,"name":"Fred","age":99}]iter(history)>>>{"id":1,"name":"Henry","age":34,"start":datetime(1900,1,1),"end":datetime(2022,6,12,3,0,0)}>>>{"id":1,"name":"Henry","age":37,"start":datetime(2022,6,12,3,0,0),"end":datetimedatetime(2022,6,12,3,15,0)}>>>{"id":1,"name":"Henry","age":99,"start":datetime(2022,6,12,3,15,0),"end":datetime(2999,12,31)}>>>{"id":2,"name":"Fred","age":42,"start":datetime(1900,1,1),"end":datetime(2022,6,12,3,15,0)}>>>{"id":2,"name":"Fred","age":99,"start":datetime(2022,6,12,3,15,0),"end":datetime(2999,12,31)}
Package: typetype
typetypeA Command Line Typing Game by Ahmet OzerInstallationTo install typetype, use the following command:pip install typetypeUsageTo start playing the game, simply run:typetypeOptions-lighteroption will make the untyped characters lighter (windows default)-darkeroption will make the untyped characters darker (mac default)To use the custom '|' cursor that I made, run the game with the-cursoroption.Abouttypetypeis a minimalistic command line typing game. I made this game becuase I couldn't find any command line typing games that I liked, so I decided to make one myself. I made this game in 1 week and worked on it during my trip to canada. Since it is a minimalistic game, I did not include much text/instructions. In order to see the game's unwritten controls please read the Navigation section before playing the game.ControlsPlease read the following instructions to familiarize yourself with the game's controls before playing:Mode Selection Pages:Use the arrow keys to navigate and select different game modes.Press the Enter key to confirm the selected mode.Press the Delete key to go back to the previous game.Press the Esc key to quit the game (only applicable on the first page).Inside The Game:Simply start typing to play the game!Press the Esc key to restart the game.Press tab+enter to restart the game.If the timer hasn't started yet, press * to return to the menu.Results/End Page:Use the Esc key to quit the game.
Package: typeunions
Type Unionstypeunionsis a library providingalgebraic data typesin Python, with a clean and intuitive syntax that use all the strength ofmatchanddataclassin python 3.10Installpip install typeunionsUsage@typeunionclassMessageQuit:()Move:{'x':int,'y':int}Write:(str)ChangeColor:(int,int,int)Each types (Quit,Move,Write,ChangeColor) is a pythondataclass. Hence you can use thematchcasepattern:message=Message.ChangeColor(255,128,0)matchmessage:caseQuit:print("quit")caseMove(x,y):print(f"move{x}{y}")caseWrite(s):print(s)caseChangeColor(r,g,b):print(f"{r}{g}{b}")case_:print("error")Here is an exemple of the same code with rust enumenumMessage{Quit,Move{x:i32,y:i32},Write(String),ChangeColor(i32,i32,i32),}matchmessage{Quit=>println!("quit")Move(x,y)=>println!("move {} {}",x,y)Write(s)=>println!(s)ChangeColor(r,g,b)=>println!(f"{}{}{}",r,g,b)}
Package: type-utils
Type UtilsThis python module provides some basic type utilities.InstallationYou can installType Utilsfrom this Github repository withpython3 setup.py install, or just install it directly from pypi withpip3 install type-utils.APIConversionsb2s: bytes to strings2b: string to bytesb2h: bytes to hexh2b: hex to bytesb2timestamp: bytes to timestamptimestamp2b: timestamp to bytesb2b64urlsafe: bytes to base64urlsafeb64urlsafe2b: base64urlsafe to bytesb2b64: bytes to base64b642b: base64 to bytesRequirestherequire_*functions ensure the given argument is from a specify type and try to convert them if possible.require_bytesrequire_timestamp_bytesrequire_stringrequire_int
Package: type-valid
# python-type-valid[![Python type valid Build passed](https://travis-ci.org/edmhs/python-type-valid.svg?branch=master)](https://travis-ci.org/edmhs/python-type-valid)[![Python type valid Code Coverage](https://codecov.io/gh/codecov/example-python/branch/master/graph/badge.svg)](https://codecov.io/gh/edmhs/python-type-valid)[![Maintainability](https://api.codeclimate.com/v1/badges/a99a88d28ad37a79dbf6/maintainability)](https://codeclimate.com/github/edmhs/python-type-valid)Python type validation decorator, validates input and output types### Installation~~~shpip install type-valid~~~### Usage~~~pythonfrom type_valid import type_valid@type_validdef hello(name: str) -> str:return name#validhello("Bob")#invalidhello(1)@type_validdef user(name: str, age: int, salary: float) -> str:return name+str(age)+str(salary)#validuser(name="Bob", age=25, salary=1000.00)~~~### Raises TypeError~~~shTypeError: in method 'hello', Argument 'name' is not of type <class 'str'>, received <class 'int'>~~~### Todo:* Validate input DONE* Validate Output DONE* Validate input **kwargs ?* Validate mandatory **kwargs ?* Multiple types ?### Types examples~~~str ""int 4float 10.5list []tuple ()...~~~
Package: typeworld
typeworld.apiand the headless client module intypeworld.client,
as well as various tools.
Home-page:https://github.com/typeworld/typeworldAuthor: Type.World
Author-email:hello@type.worldLicense: apache-2.0
Description: UNKNOWN
Keywords: fonts
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Text Processing :: Fonts
Package: type-yaml
type-yamlDescribes a yaml schema using Python types.Simple Python types such aslist[str]ordict[int, list[str]]that allow yaml to verify that the type fits and parse values based on it.RequirementsPython 3.8+PyYAMLInstallpip install type-yamlFeatures:intfloatstrboollist/typing.Listdict/typing.Dictset/typing.Settuple/typing.Tupledataclassdefault values and default-factoryspecial notation in yaml with metadataoperator |/typing.Uniontyping.Anylazy evaluation by string representation of typeExamplesfromdataclassesimportdataclassfromtype_yamlimportload@dataclassclassPoint:x:inty:intprint(load(list[Point],open("points.yaml")))# >>> [Point(x=1, y=2), Point(x=3, y=4)]# points.yaml-x:1y:2-x:3y:4UsageFunctions such asload,loads,dump, anddumpscan be imported from type_yaml. The details of each are as follows.load(type, stream, **kwargs)Load a yaml file and parse it into a Python object.typeis a type that can be parsed by type_yaml.streamis a text stream. e.g.open("file.yaml")optionsloader: yaml loader of PyYAML. default:yaml.SafeLoadertrue_strings: list of strings that are parsed asTrue. default:("true", "yes", "on", "1")false_strings: list of strings that are parsed asFalse. default:("false", "no", "off", "0")type_name_map,globalns,localns: a dictionary or namespace of variable names is given to allow interpretation of the string representation of the typeloads(type, string, **kwargs)Load a yaml string and parse it into a Python object.typeis a type that can be parsed by type_yaml.stringis a yaml string.options is same asloaddump(value, stream, **kwargs)Dump a Python object to a yaml file.valueis a Python object that can be parsed by type_yaml.streamis a text stream. e.g.open("file.yaml")optionsdumper: yaml dumper of PyYAML. default: `type_yaml.yaml_interpreter.RealYamlDumperdumps(value, **kwargs)Dump a Python object to a yaml string.valueis a Python object that can be parsed by type_yaml.options is same asdumpOtherThe license is the MIT License.If you have any bugs, mistakes, feature suggestions, etc., issues and pull requests are welcome.