Saravanan666/pypi-org huggingface dataset:
Package: typings-google-calendar-api
typings-google-calendar-apiPython typehint support for Google Calendar API resources.Available ResourcesAclfromtypings_google_calendar_api.aclimportAcl,ScopeRepresentation:https://developers.google.com/calendar/api/v3/reference/acl#resource-representationskind:stretag:strid:strscope:Scoperole:strCalendarsfromtypings_google_calendar_api.calendarsimportCalendar,ConferencePropertiesRepresentation:https://developers.google.com/calendar/api/v3/reference/calendarsl#resource-representationskind:stretag:strid:strsummary:strdescription:strlocation:strtimeZone:strconferenceProperties:ConferencePropertiesColorsfromtypings_google_calendar_api.colorsimportColor,ColorPropertiesRepresentation:https://developers.google.com/calendar/api/v3/reference/colors#resource-representationskind:strupdated:strcalendar:Dict[str,ColorProperties]event:Dict[str,ColorProperties]Eventsfromtypings_google_calendar_api.eventsimport(Event,Attendee,Date,Person,ExtendedProperties,ConferenceSolutionKey,ConferenceSolution,StatusCode,ConferenceDataCreateRequest,EntryPoint,ConferenceData,Gadget,Override,Reminders,Source,Attachment)Representation:https://developers.google.com/calendar/api/v3/reference/events#resource-representationskind:stretag:strid:strstatus:strhtmlLink:strcreated:str# RFC3339 timestampupdated:str# RFC3339 timestampsummary:strdescription:strlocation:strcolorId:strcreator:Personorganizer:Personstart:Dateend:DateendTimeUnspecified:boolrecurrence:List[str]recurringEventId:stroriginalStartTime:Datetransparency:strvisibility:striCalUID:strsequence:intattendees:List[Attendee]attendeesOmitted:boolextendedProperties:ExtendedPropertieshangoutLink:strconferenceData:ConferenceDatagadget:GadgetanyoneCanAddSelf:boolguestsCanInviteOthers:boolguestsCanModify:boolguestsCanSeeOtherGuests:boolprivateCopy:boollocked:boolreminders:Reminderssource:Sourceattachments:List[Attachment]eventType:strTodoCalendarList resource - Open for contributions :octocat:Dependenciestyping_extensions- for python version < 3.7Samplehttps://user-images.githubusercontent.com/913314/152586626-0bc19146-8a75-4fbc-a3c8-763c92d7b8c3.mov
Package: typing-test
Typing TestMinimal command line game for measuring typing speed with no dependencies.Supports both Python2 and Python3.Resembles the format from 10fastfingers.Supports configurable display format, test duration, word length, vocab and more.Use CTRL+R to restart and CTRL+C to exit.Seett --helpfor all options.Recommended installationpython3-mpipinstalltyping_test--userManualgitclonehttps://github.com/ecly/typing_testcdtyping_test
python3-mpipinstall.--userLicenseMIT LicenseCopyright (c) 2019 Emil LynegaardPermission 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: typing-to-configargparse
Typing to ConfigArgParseWrite once with inspection of type hinted python objects from Python's standard librarytypingto generate a ConfigArgParser.ConfigArgParseris a drop in replacement for python's argparse that supports the parsing of configuration files and environment variables in addition to argparse's command line interface.
Type hinting your python objects should be enough to generate a hierarchical ConfigArgParser automtically through inspection.If you want to generate a ConfigArgParser from your docstrings, seedocstr.Considering usingtyping_inspect.
Package: typing-utils
typing-utilsBackport Python3.8+ typing utils & issubtype & moreInstallAPIissubtypeget_originget_argsget_type_hintsInstallpipinstalltyping_utilsAPIissubtypeget_originget_argsget_type_hintsissubtypeCheck that the left argument is a subtype of the right.For unions, check if the type arguments of the left is a subset of the right.
Also works for nested types including ForwardRefs.Examples:fromtyping_utilsimportissubtypeissubtype(typing.List,typing.Any)==Trueissubtype(list,list)==Trueissubtype(list,typing.List)==Trueissubtype(list,typing.Sequence)==Trueissubtype(typing.List[int],list)==Trueissubtype(typing.List[typing.List],list)==Trueissubtype(list,typing.List[int])==Falseissubtype(list,typing.Union[typing.Tuple,typing.Set])==Falseissubtype(typing.List[typing.List],typing.List[typing.Sequence])==TrueJSON=typing.Union[int,float,bool,str,None,typing.Sequence["JSON"],typing.Mapping[str,"JSON"]]issubtype(str,JSON,forward_refs={'JSON':JSON})==Trueissubtype(typing.Dict[str,str],JSON,forward_refs={'JSON':JSON})==Trueissubtype(typing.Dict[str,bytes],JSON,forward_refs={'JSON':JSON})==Falseget_originGet the unsubscripted version of a type.This supports generic types, Callable, Tuple, Union, Literal, Final and ClassVar.
Return None for unsupported types.Examples:fromtyping_utilsimportget_originget_origin(Literal[42])isLiteralget_origin(int)isNoneget_origin(ClassVar[int])isClassVarget_origin(Generic)isGenericget_origin(Generic[T])isGenericget_origin(Union[T,int])isUnionget_origin(List[Tuple[T,T]][int])==listget_argsGet type arguments with all substitutions performed.For unions, basic simplifications used by Union constructor are performed.Examples:fromtyping_utilsimportget_argsget_args(Dict[str,int])==(str,int)get_args(int)==()get_args(Union[int,Union[T,int],str][int])==(int,str)get_args(Union[int,Tuple[T,int]][str])==(int,Tuple[str,int])get_args(Callable[[],T][int])==([],int)get_type_hintsReturn type hints for an object.This is often the same as obj.annotations, but it handles
forward references encoded as string literals, and if necessary
adds Optional[t] if a default value equal to None is set.The argument may be a module, class, method, or function. The annotations
are returned as a dictionary. For classes, annotations include also
inherited members.TypeError is raised if the argument is not of a type that can contain
annotations, and an empty dictionary is returned if no annotations are
present.BEWARE -- the behavior of globalns and localns is counterintuitive
(unless you are familiar with how eval() and exec() work).  The
search order is locals first, then globals.If no dict arguments are passed, an attempt is made to use the
globals from obj (or the respective module's globals for classes),
and these are also used as the locals.  If the object does not appear
to have globals, an empty dictionary is used.If one dict argument is passed, it is used for both globals and
locals.If two dict arguments are passed, they specify globals and
locals, respectively.
Package: typing-validation
Typing-validation is a small library to perform runtime validation of Python objects usingPEP 484 type hints.ContentsInstallUsageAPIContributingLicenseInstallYou can install the latest release fromPyPIas follows:pip install --upgrade typing-validationUsageThe core functionality of this library is provided by thevalidatefunction:>>> from typing_validation import validateThevalidatefunction is invoked with a value and a type as its arguments and it returns nothing when the given value is valid for the given type:>>> validate(12, int)
True # no error raised => 12 is a valid intIf the value is invalid for the given type, thevalidatefunction raises aTypeError:>>> validate(12, str)
TypeError: Runtime validation error raised by validate(val, t), details below.
For type <class 'str'>, invalid value: 12For nested types (e.g. parametric collection/mapping types), the full chain of validation failures is shown by the type error:>>> validate([0, 1, "hi"], list[int])
TypeError: Runtime validation error raised by validate(val, t), details below.
For type list[int], invalid value at idx: 2
  For type <class 'int'>, invalid value: 'hi'The functionis_validis a variant of thevalidatefunction which returnsFalsein case of validation failure, instead of raisingTypeError:>>> from typing_validation import is_valid
>>> is_valid([0, 1, "hi"], list[int])
FalseThe functionlatest_validation_failurecan be used to access detailed information immediately after a failure:>>> from typing_validation import latest_validation_failure
>>> is_valid([0, 1, "hi"], list[int])
False
>>> failure = latest_validation_failure()
>>> print(failure)
Runtime validation error raised by validate(val, t), details below.
For type list[int], invalid value at idx: 2
  For type <class 'int'>, invalid value: 'hi'Please note thatlatest_validation_failureclears the internal failure logs after returning the latest failure, so the latter must be manually stored if it needs to be accessed multiple times.APIFor the full API documentation, seehttps://typing-validation.readthedocs.io/ContributingPlease seeCONTRIBUTING.md.LicenseMIT © Hashberg Ltd.
Package: typing-validation-fix
Typing-validation is a small library to perform runtime validation of Python objects usingPEP 484 type hints.This is a temporary fork of the original project to be used until the original project incorporates a bug fix to work with newer versions of the ‘typing_extensions’ dependency.Bug:https://github.com/hashberg-io/typing-validation/issues/1ContentsInstallUsageAPIContributingLicenseInstallYou can install the latest release fromPyPIas follows:pip install --upgrade typing-validationUsageThe core functionality of this library is provided by thevalidatefunction:>>> from typing_validation import validateThevalidatefunction is invoked with a value and a type as its arguments and it returns nothing when the given value is valid for the given type:>>> validate(12, int)
# nothing is returned => 12 is a valid intIf the value is invalid for the given type, thevalidatefunction raises aTypeError:>>> validate(12, str)
TypeError: For type <class 'str'>, invalid value: 12For nested types (e.g. parametric collection/mapping types), the full chain of validation failures is shown by the type error:>>> validate([0, 1, "hi"], list[int])
TypeError: For type list[int], invalid value: [0, 1, 'hi']
  For type <class 'int'>, invalid value: 'hi'APIFor the full API documentation, seehttps://typing-validation.readthedocs.io/ContributingPlease seeCONTRIBUTING.md.LicenseMIT © Hashberg Ltd.
Package: typingvid
TypingvidTypingvid is a command line utility that allows users to quickly generate typing animation videos using different keyboard layouts and themes. To read more about the inner workings of the tool visithttps://www.gavalas.dev/projects/typingvid.InstallationUsing a package installerThe latest stable version of the script is available on the Python Package Index (PyPI) and can easily be installed using your favorite Python package installer (e.g. pip):pip install typingvidor:python3 -m pip install typingvidTo check If everything went smoothly, you can try running:typingvid --helpFrom sourceAnother option is to clone the entire GitHub repository of the project as follows:git clone https://github.com/GavalasDev/typingvid
cd typingvid
chmod +x typingvid.py
./typingvid.py --helpUsageThe standard format of a typingvid command is the following:typingvid -t TEXT [-l LAYOUT] [-o OUTPUT] [OPTIONS]To see all available options, use:typingvid --helpFor example:typingvid -t "hello world"will generate an animation video using the default layout (en) and store it at the default output location (output.mp4).The extension of theOUTPUTvariable (option-o) defines the type of the output file. For example, to generate a simple GIF:typingvid -t "lorem ipsum" -o "/path/to/file.gif"For more examples, check out theofficial pageof the tool.LicenseLicensed under the MIT license (LICENSE-MITorhttp://opensource.org/licenses/MIT).ContributionUnless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, shall be licensed as above, without any additional terms or conditions.
Package: typist
typistis a test time tool that uses your Sphinx docstrings (you do document
your code right?) to ensure that your callables:are only called with the types they expectonly return types they advertiseonly raise exceptions they advertiseUsageRight now you have to import typist and install it. The argument to install is
the top level package for the code you are interested in testing. In the
future I plan on creating plugins for test frameworks.importtypisttypist.install('keystone')typist implements animport hookthat will use Python’sASTto add a
decorator to all of your callables. The decorator ensures the callable is
properly used based on its docstring type declarations. If your callable
doesn’t have :param:, :returns or :raises: then it works just fine, it’s
just not checked.Type languageTypes will be pulled from the following formats:param {type} varname:some descriptive textrtype avarname:{types}returns {types}:some descriptive text{type}can be any valid Python type. Some examples:intlist:py:class:typist._import_hook.Findertypist._import_hook.Finder{types}can be a list of types separated by commas that includes an optional
‘or’. All the same types as above can be used in the list. Some examples:listor Noneint,floatorlongint,float,longtypist._py.PY2ortypist._py.PY3listorcallablecallableabove is a special case. While technically it’s not a type it does
describe the way an object should behave. Another special cases that doesn’t
work yet, but may soon isiterable.This languasge for specifying a type will grow a bit more rich for collections.
It would be really handy to allow the developer to specify parameterized types
like:list<int>- alistofintdict<str,package.module.Class>- adictwhere the keys are strings and
the values are instances of package.module.ClassBackgroundThe idea to write to this came to me when I was working on Python 3 support
forKeystone. I wanted to ensure that the code was actually getting the
binary or text types that it expected. I was sick of the bullshit practice of.encode(‘utf8’).decode(‘utf8’)(maybe I got that backwards) that made the
exceptions go away, but does nothing to solve the problem.I didn’t bother looking for something that was already implemented because I
wanted to learn a bit about import hooks. If you know of something better then
please let me know. If this is the best thing since sliced bread I’d also like
to know.
Package: typocase
TypocaseLightweight library written in idiomatic Python (no regular expressions), that aims to translate string into various typography conventions.How it worksAccept any string as input.Detect substrings based on special chars or uppercase letters as separators.Join substrings based on the typography convention selected:snake casepascal casecamel casekebab casedot casepath case...InstallUsage>>>fromtypocaseimportTypoCase>>>TypoCase("abc def ghi").snake_case()'abc_def_ghi'>>>TypoCase("abc def ghi").camel_case()'abcDefGhi'>>>TypoCase("abc def ghi").kebab_case()'abc-def-ghi'LicenseThis software is released under the MIT LICENSE.AuthorMartin Tovmassian
Package: typodoo
typodooTowards idiomatic Python with types for Odoo models.This package supports the Odoo Experience 2022 talk (sildes,video).It works best whena few type
annotationsare added to the Odoo core./!\ This is pre-alpha stuff /!\What?pip install typodooto monkey patch the Odoo metaclass on Odoo startup.Then, you can still write this, as usual:fromodooimportmodels,fieldsclassResPartner(models.Model):_inherit="res.partner"friend=fields.Boolean()industry2_id=fields.Many2one('res.partner.industry',string='Secondary Industry',required=True,)But you can also write this:fromodooimportfieldsfromodoo.addons.base.models.res_partnerimport(Partner,ResPartnerIndustry)classResPartner(Partner):friend=fields.Boolean()industry2_id=fields.Many2one[ResPartnerIndustry](string='Secondary Industry',)And also this:fromodoo.addons.my_addon.models.res_partnerimportResPartnerpartners=ResPartner(self.env).search([])Why?Idiomatic python.Native auto completion in IDEs.Static type checking.Developmentpip install -e .Then, copytypodoo_activate.pthto$VIRTUAL_ENV/lib/python3.10/site-packages.
Automating this setup is a TODO.Licensetypodoois distributed under the terms of theMITlicense.
Package: typogrify
Typogrify provides a set of custom filters that automatically apply various
transformations to plain text in order to yield typographically-improved HTML.
While often used in conjunction withJinjaandDjangotemplate systems, the
filters can be used in any environment.InstallationThe following command will install viapip. Pay particular attention to the
package name:pip install typogrifyAlternatively, you can run the following command inside the project’s root
directory:python setup.py installLast but not least, you can simply move the enclosedtypogrifyfolder
into your Python path.RequirementsPython 2.3 and above is supported, including Python 3. The only dependency isSmartyPants, a Python port of a project by John Gruber.InstallingJinjaorDjangois only required if you intend to use the optional
template filters that are included for those frameworks.UsageThe filters can be used in any environment by importing them fromtypogrify.filters:from typogrify.filters import typogrify
content = typogrify(content)For use with Django, you can addtypogrifyto theINSTALLED_APPSsetting
of any Django project in which you wish to use it, and then use{% load typogrify_tags %}in your templates to load the filters it provides.Experimental support for Jinja is intypogrify.templatetags.jinja_filters.Included filtersampWraps ampersands in HTML with<spanclass="amp">so they can be
styled with CSS. Ampersands are also normalized to&amp;. Requires
ampersands to have whitespace or an&nbsp;on both sides. Will not
change any ampersand which has already been wrapped in this fashion.capsWraps multiple capital letters in<spanclass="caps">so they can
be styled with CSS.initial_quotesWraps initial quotes in<spanclass="dquo">for double quotes or<spanclass="quo">for single quotes. Works inside these block
elements:h1,h2,h3,h4,h5,h6plidtddAlso accounts for potential opening inline elements:a,em,strong,span,b,i.smartypantsAppliesSmartyPants.typogrifyApplies all of the following filters, in order:ampwidontsmartypantscapsinitial_quoteswidontBased on Shaun Inman’s PHP utility of the same name, replaces the
space between the last two words in a string with&nbsp;to avoid
a final line of text with only one word.Works inside these block elements:h1,h2,h3,h4,h5,h6plidtddAlso accounts for potential closing inline elements:a,em,strong,span,b,i.
Package: typo-pypi
typo_pypi, experimental methodsinsert a UML diagram for all classesanalizer: forms list from  package managersvalidater: checks typos for any squats or malicious code
server: handles http stuffalgos: mostly levenshtein delete-insert typo generationshould back theoretical claims in thesis workcould be used for a possible API used by a standalone security pypi modulea yet pretty slow and naive implementation
Package: typora-cos
为什么通过Typora QCloud Cos将图片上传到腾讯云对象存储并得到图片外链，可以将 Markdown 文本和图片存储解耦，使得可以在任何地方浏览 Markdown 并且正常显示图片。Typora腾讯云对象存储定价如何使用安装：下载 Python# 安装 Python# 安装 typora_cospipinstall-Utypora_cos创建存储桶：访问权限需要设置成公有读私有写配置：python-mtypora_cos.qcloud--init# 已生成配置文件，请继续完成配置： C:\Users\liaoz\.typora_cos\config.xml从https://console.cloud.tencent.com/cam/capi获取SecretId和SecretKey从https://console.cloud.tencent.com/cos5/bucket创建存储桶并得到存储桶名称bucket和 所属区域region从命令行上传图片：python-mtypora_cos.qcloudhttps://www.python.org/static/img/python-logo.png# 已成功上传：# https://test-1253318070.cos.ap-nanjing.myqcloud.com/7cbb8b7f3ec73ce6716fedaa4d63f6ce.pngpython-mtypora_cos.qcloudC:\Users\liaoz\Pictures\mc.jpg# 已成功上传：# https://test-1253318070.cos.ap-nanjing.myqcloud.com/739d7e571980d16ad192ff72e4f2d5d9.jpegtypora 设置：文件 -> 偏好设置 -> 自定义命令 -> python -m typora_cos.qcloud特性：支持本地图片和网络图片上传（将图片复制并粘贴到 typora）通过图片字节流识别图片格式通过 md5 避免重复上传图片已知问题：网络图片的URL不能包含请求参数（不能包含&字符）版本演进版本描述进度v1基本功能实现v2重构*v3命令行接口v4多线程设计流程：输入一个或多个路径将路径转换成字节流将字节流抽象成对象存储文件类执行上传操作，返回 URL设计模式：策略模式+简单工厂方法、外观模式、简单工厂方法其他：配置和代码解耦
Package: typora-upload
typora-uploadis a plugin of typora that can upload image file to cloud drive based on python.FeaturesSupport oss and github driveHow to installUse source codegit clone https://github.com/TyrantLucifer/typora-upload.git
cd typora-upload
python(python3) setup.py installUse pippip(pip3) install typora-uploadUsageusage: typora-upload [-h] [-u file_path] [-s storage] [-i storage] [-v]

The typora image upload plugin based Python.optional arguments:-h,--helpshow this help message and exit-ufile_path,--uploadfile_pathupload image file-sstorage,--storagestoragestorage type-istorage,--initstorageinit storage config-v,--versiondisplay versionPowered by tyrantlucifer. If you have any questions,you can send e-mails totyrantlucifer@gmail.comDocumentationYou can find all the documentation in theReadme.LicenseMIT LicenseCopyright (c) 2022TyrantLuciferPermission 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: typo-shot
Typo is a script to take screenshot on your website/blog. A simple way to check typography, viewing the page in complete.You just need to provide asite.jsonfile on your website. In the following format:{
  "pages": [
    {
      "title": "Title",
      "url": "http://url.com"
    },
    {
      "title": "Title",
      "url": "http://url.com"
    },
    ...
  ]
}Usagetypo http://flaverton.com

typo <url>ReferenceClassifiersLicenseMIT
Package: typpy
Typpy - Python Type CheckerTyppy is an experimental type checker for Python. It's similar to mypy,
but instead of statically checking the code, it dynamically imports the
modules and is therefore able to perform type check that mypy is unable
to perform. This particularly includes decorated classes and functions.RequirementsTyppy support Python 3.7 and newer.Quick Starttyppypath/to/file.pyStatusCurrently, typpy is still in a very early stage and only support a limited
number of type checks:Variable assignmentsFunction callsTyppy right now even crashes on certain source code inputs. I'm adding support
for different python constructs such as comparison expressions, classes, import
statements and so on. I expect typpy to be able to check most real world code
in the next few weeks.Python version supportPython'stypingmodule and the specs are rapidly evolving with each python
minor version. Therefore, it costs a lot of time to maintain and implement
support for many python versions.Since python 3.6 has end-of-life in December 2021, typpy does not support it.
We encourage developers to upgrade python to a supported version.