Saravanan666/pypi-org huggingface dataset:
Package: temp-utils
temp-utils is a set of convenient python utilities for dealing with temporary files and folders. It is built on top of the builtin tempfile module.Context ManagersChanging Working DirectoryUse the context managerchdirto change your working directory temporarily, changing it back at the end of the context.fromtemp_utils.contextmanagersimportchdirwithchdir('path/to/directory'):...Temporary FileUse the context managertemp_fileto create a new temporary file. This file gets deleted at the end of the context.fromtemp_utils.contextmanagersimporttemp_filewithtemp_file()asfile_path:...Temporary FolderUse the context managertemp_dirto create a new temporary folder. This folder gets deleted, along with everything in it, at the end of the context.fromtemp_utils.contextmanagersimporttemp_dirwithtemp_dir()asdir_path:...
Package: tempy
TEMPy is acommand lineutility intended for keeping your windows
machine happy. Just run a command in your terminal every 10 seconds,
week, year (please don’t), or whenever you want and that’s it your temp
files are gone. Simple and fast.TEMPy is written in python paired with the awesomeClickandPrettyTablelibraries, so it’s not windows only. You can run it on
Linux or Mac, don’t know why, but it’s possible.FeaturesIntuitive commandsTemp directory content in tree viewTemp directory content in ASCII tables (like MySQL or PostgreSQL
shell)Temp directory size and total filesLog file with detailed data of the performed deletionsInstallationTempy can be installed with pip with the command:pip install tempyMake sure pip and setuptools are up to date.UsageThe general command structure is:tempy [COMMAND] [OPTION]CommandsCommandOptionDescriptiondelete--adeletes all the files and directoriesdelete--seShows all errors that were encountered in the last deletionanalyze[none]Shows the temp directory contents, number of files, and size.tree[none]Displays a tree view of the temp directorylog[none]Opens the log fileFor more info visite TEMPy Githubpage
Package: tempylate
tempylatetempylate is a pythonic template engine that is little, lightweight and fast.Features:Full python syntax. So there is absolutely nothing to remember in the syntax.It runs in Python.Little, lightweight and fast. (No dependency)Inheriting layouts through template inheritance.Easy to use!InstallationYou can install it using pip.$ pip install tempylateExamplesTitle<title>^^ title ^^</title>Members<body><h1>^^team.name^^members</h1><ul>^^"".join(f'<li><a href="{member.url}">{member.name}</a></li>'formemberinteam.members)^^</ul></body>Inheritance^^self.manager.render_from_file("blog_page_layout.html",title="My sixteenth birthday.",content="""<strong>Today is my birthday!</strong><br>So give me a gift.""")^^DocumentationYou can view the UserGuide and API reference of tempylatehere.ContributingPlease seehere.Licensetempylate is available under the MIT license.Detail:LICENSE
Package: tempyrature
TempyratureTempyrature is a simple Python module to convert temperature scales easily.ScalesTempyrature currently supports 3 temperature ranges:CelciusFahrenheitKelvinInstallationYou can install tempyrature in two main ways:Pypi:Through the command:pip install tempyratureThis command may vary depending on your device.Cloning this repository:If you have GIT installed, you can:git clone https://github.com/Lobooooooo14/tempyrature.gitThis will download this repository to your device, enter the downloaded folder (make sure it is in the same directory as thesetup.pyfile) and use the command:pip install .How to useAfter you have done the installation, you can use the tempyrature as follows:fromtempyratureimportConverterprint(Converter.celsius2fahrenheit(30.5))#30.5°C#>>> 86.0DocumentationYou can see the full documentationhere
Package: temul-toolkit
TEMULFunctions for image and signal processing, based on the packages Scikit-image, Hyperspy, Atomap, PyPrismatic, ASE, periodictable etc. Written by members of the TEMUL group from the University of Limerick, Ireland (though we welcome all help, hints and contributions!)Documentation & Installationpipinstalltemul-toolkitFor full installation instructions and documentation, go totemul-toolkit.readthedocs.io.To use the vast majority of thetemulfunctionality,
import it from the api module::import temul.api as tmlCiteTo cite the TEMUL toolkit, use the following DOI:Interactive Notebooks in the BrowserJupyter Notebooks and MyBinder allow us to analyse data in the browser without needing any downloads using the below "launch binder" button.If the button does not work, trythis link instead. You also share this link with others for quick access.To run through some code documentation tutorials, go to the "code_tutorials" folder after clicking the above button.To analyse data published in the listed scientific papers, go to the "publication_examples" folder after clicking the above button.Publication DetailsFolder Location in TEMULM. Hadjimichael, Y. Liet al,Metal-ferroelectric supercrystals with periodically curved metallic layers, Nature Materials 2021publication_examples/PTO_supercrystal_hadjimichaelK. Mooreet alHighly charged 180 degree head-to-head domain walls in lead titanate, Nature Communications Physics 2020publication_examples/PTO_Junction_mooreInformation for developersLinting (PEP8)We use flake8 to enforce coding style:pipinstall-rtests/requirements.txt
flake8temul
flake8tests
flake8docsTestingTests are carried out withpytest:pipinstall-rtests/requirements.txt
pytesttestsDocumentation (docs)To build the docs, do the following::pipinstall-rdocs/requirements.txt
sphinx-builddocs_build# open "index.html" in the "_build" directoryIncrementing versiontemulgets its version from the latest git tag. If you think that a
new version should be published, create a tag on the master branch
(if you have the necessary permissions to do so):gittag-a'x.y.z'-m'new tag'gitpush--tags<remote>GitHub Actions will then automatically build source package and wheels and
publish them on PyPI.
Package: tenable-sc-config
PurposeA tool to create & load a config .ini file for connecting to a Tenable.SC instanceUsageRunning the config.py file as a the main file will create a blank ini file (with notes)Importing the package will attempt to load the default filename into the config variableIf the default file is found: loads the file and returns an object containing the resultsIf the default file is not found: returns None as the objectSupport for both username/password and API keys is provided, however only one pair is requiredSourceGithub
Package: tenantpy
Tenant Management For Web ApplicationDatabase Tenant IsolationCache Tenant IsolationCustomize Addons Tenant Meta Data Injecte.g:import flask
from flask import Flask
import json
import peewee

from tenantpy.contrib import flask as flask_tenc

app = Flask(__name__)

class User(flask_tenc.BaseModel):
    englishName = peewee.CharField()
    email = peewee.CharField()


class ConfigManager(flask_tenc.ConfigManager):

    def get_config(self, key: flask_tenc.ConfigKeys):
        # get config by any


@app.route("/random")
def random_pet():
    """A cute furry animal endpoint.
    ---
    get:
      description: Get a random pet
      security:
        - ApiKeyAuth: []
      responses:
        200:
          description: Return a pet
          content:
            application/json:
              schema: PetSchema
    """
    # Hardcoded example data
    flask.g.database.begin()
    ins = User.get()
    flask.g.database.rollback()
    pet_data = {
        "name": ins.englishName,
    }
    return flask.Response(json.dumps(pet_data), content_type="application/json")


flask_tenc.init_app(app, ConfigManager())
app.run()
Package: tencat
Tencat is a Python library that offers basic sparse tensor slicing capabilities.InstallationUse the package managerpipto install tencat.pipinstalltencatUsageTencat implements the coordinate format in SparseTensor using a (N,d) ndarray as indices, a (N,) ndarray as values and an optional d length size tuple.fromtencatimporttencatastcnnz=100# Number of nonzero elementsndim=4# Number of dimensionsindices=np.randint(100,(nnz,ndim))# Create random indicesvalues=np.random.rand(nnz,)# create random elementsdense_shape=np.amax(indices,axis=0)+np.random.randint(5,size=(ndim,))sparse_tc=tc.SparseTensor(indices,values,dense_shape)sliced_tc=sparse_tc.slice((1,5,6,4),(3,2,10,5))LicenseMIT
Package: tencdec
What is tencdecA number array to/from bytes high performance encoder/decoder.It gets a list of monotonic increasing integers and can encode it to a byte object very fast in a compressed form using deltas.Then you may store that byte object in a DB or whatever, and when you need the list of integers back, you just decode it.Example:>>> numbers = [0, 1, 2, 3, 4, 28, 87, 87, 500, 501, 507, 2313]
>>> enc = tencdec.encode(numbers)
>>> enc
b'\x00\x01\x01\x01\x01\x18;\x00\x9d\x03\x01\x06\x8e\x0e'
>>> dec = tencdec.decode(enc)
>>> numbers == dec
TrueAnd it's very fast!Using the numbers from the example above,timeitshows around 2 microseconds to encode or decode (in a AMD Ryzen 7 PRO 4750U CPU):$ python3 -m timeit -s "import tencdec; numbers = [0, 1, 2, 3, 4, 28, 87, 87, 500, 501, 507, 2313]" "tencdec.encode(numbers)"
100000 loops, best of 5: 2.28 usec per loop
$ python3 -m timeit -s "import tencdec; e = tencdec.encode([0, 1, 2, 3, 4, 28, 87, 87, 500, 501, 507, 2313])" "tencdec.decode(e)"
100000 loops, best of 5: 2.42 usec per loopThe restriction are that numbers need to be integers (else encoding will crash withTypeError) and monotonic increasing positive (this is verified, otherwise it gets into an infinite loop, but with anassertso you may disable the verification running Python with-Oif you are already sure that list of numbers is ok).Note that there are no external dependencies for this. It's just Python 3 and its standard library.How it worksIt encodes a delta of the numbers. Deltas must always positive (that's why source numbers must be monotonic increasing).If the delta is less than or equal to 127, it's stored directly, otherwise it's stored in multiple bytes, using seven bits on each byte, with the most significant one in 1 if more bytes to process.E.g. for a simple case:0000 0100 -> 4 (in decimal)Multiple bytes:1111 0100
    0000 0011first byte indicates that it goes on, second byte indicates that ends therebits are collected without using the most significant one, in reverse order:000 0011 111 0100 -> 0000 0001 1111 0100 -> 500 (in decimal)
Package: tencentApi
腾讯Api的CNS模块补充简介腾讯云产品有提供支持多种语言的官方的SDK文档，也包括python，但是对于cns模块支持有限，目前（2020-6-3）并没有现成的python模块来操作腾讯云的域名管理。根据官方api文档，使用python访问腾讯云的cns资源，并实现ipv6动态域名解析功能。安装pip工具安装pip install tencentApi源码安装git clone https://github.com/shenchucheng/tencentapi.git tencentapi
cd tencentapi
python3 setup.py sdist bdist_wheel
python3 -m pip install dist/tencentApi*.tar.gzcli工具安装完成后可使用cns工具行命令cns --help  # 显示帮助信息
cns config  # 进行ip环境检测
cns ddns run <flags>  
cns profile ~/.cnsrc  # 生成动态域名解析json文件
cns ddns run --profile ~/.cnsrc  # 以配置文件的方式启动 !!!注意补充配置文件的信息
Package: tencentcloud-apigateway-authorization
tencentcloud-apigateway-authorizationGenerate headers with authorization for the request of TencentCloud Apigateway API.
为腾讯云Api网管服务的AP的请求I生成带有authorization认证信息的headerInstallpipinstalltencentcloud-apigateway-authorizationUseimportosfromapigatewayimportAuthimportrequestssecretId=os.environ['secretId']secretKey=os.environ['secretKey']auth=Auth(secretId,secretKey)headers=auth.generateHeaders()response=requests.get('https://service-{appid}.ap-shanghai.apigateway.myqcloud.com/release/api',headers=headers)print(response.json())AuthorYixian Du
Package: tencentcloud-django-cos-storage
Tencent Cloud Django COS Storage腾讯云对象存储（COS）服务 for Django。环境要求Python: >=3.7, <4Django: >=2.2, <3.3安装pip install tencentcloud-django-cos-storage基本使用在项目的 settings.py 中设置DEFAULT_FILE_STORAGE：DEFAULT_FILE_STORAGE="django_cos_storage.TencentCOSStorage"此外，还需要设置腾讯云对象存储服务相关的必要信息：TENCENTCOS_STORAGE={"BUCKET":"存储桶名称","CONFIG":{"Region":"地域信息","SecretId":"密钥 SecretId","SecretKey":"密钥 SecretKey",}}详情可参考腾讯云对象存储官方文档设置示例TENCENTCOS_STORAGE={# 存储桶名称，必填"BUCKET":"存储桶名称",# 存储桶文件根路径，选填，默认 '/'"ROOT_PATH":"/",# 上传文件时最大缓冲区大小（单位 MB），选填，默认 100"UPLOAD_MAX_BUFFER_SIZE":100,# 上传文件时分块大小（单位 MB），选填，默认 10"UPLOAD_PART_SIZE":10,# 上传并发上传时最大线程数，选填，默认 5"UPLOAD_MAX_THREAD":5,# 腾讯云存储 Python SDK 的配置参数，详细说明请参考腾讯云官方文档。# 注意：CONFIG中字段的大小写请与python-sdk中CosConfig的构造参数保持一致"CONFIG":{"Region":"地域信息","SecretId":"密钥 SecretId","SecretKey":"密钥 SecretKey",}}说明BUCKET存储桶名称，必填ROOT_PATH文件根路径，选填，默认为 '/'UPLOAD_MAX_BUFFER_SIZE上传文件时最大缓冲区大小（单位 MB），选填，默认 100。
其中缓冲区是一个线程安全队列，队列的元素为单个文件分块，队列中所有分块的大小加起来不超过UPLOAD_MAX_BUFFER_SIZE。UPLOAD_PART_SIZE上传文件时分块大小（单位 MB），选填，默认 10。UPLOAD_MAX_BUFFER_SIZE和UPLOAD_PART_SIZE共同决定了缓冲队列的大小，即QueueSize=UPLOAD_MAX_BUFFER_SIZE/UPLOAD_PART_SIZE。UPLOAD_MAX_THREAD并发上传的最大线程数，选填，默认 5。
当文件的大小超过UPLOAD_PART_SIZE时将使用分块的方式并发上传文件，此配置项设置并发上传的最大线程数。如果文件大小不超过UPLOAD_PART_SIZE，则不会使用分块的方式上传，此时该配置项不起任何作用。CONFIG注意：CONFIG中字段的大小写请与python-sdk中CosConfig的构造参数保持一致腾讯云对象存储 Python SDK 的配置参数，其中Region、SecretId、SecretKey为必填参数。
关于配置参数的详细说明请参考腾讯云对象存储 Python SDK 官方文档
Package: tencentcloud-dlc-connector
Tencent Cloud DLC Connector is a python SDK connecting to DLC elastic engines, compatible with DPAPI2.0The SDK works on Python versions:3.9Quick StartFirst, install the library:$pipinstalltencentcloud-dlc-connectoror download source code from github and install:importtdlc_connectorimportdatatimefromtdlc_connectorimportconstantsconn=tdlc_connector.connect(region="<REGION>",secret_id="<SECRET_ID>",secret_key="<SECRET_KEY>",engine="<ENGINE>",engine_type=constants.EngineType.SPARK,result_style=constants.ResultStyles.LIST,download=False,mode=constants.Mode.LASY)cursor=conn.cursor()count=cursor.execute("SELECT 1")cursor.fetchone()
Package: tencentcloud-iac-pulumi
Pulumi TencentCloud Resource ProviderThe Pulumi TencentCloud Resource Provider lets you manageTencentCloudresources.InstallingInstall tencentcloud providerThe sdks installation will fully support package auto download in the future, but now we recommend downloading manually:pulumiplugininstallresourcetencentcloud--servergithub://api.github.com/tencentcloudstackThis package is available for several languages/platforms:Node.js (JavaScript/TypeScript)To use from JavaScript or TypeScript in Node.js, install using eithernpm:npminstall@tencentcloud_iac/pulumioryarn:yarnadd@tencentcloud_iac/pulumiPythonTo use from Python, install usingpip:pipinstalltencentcloud_iac_pulumiGoTo use from Go, usego getto grab the latest version of the library:gogetgithub.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/...ConfigurationThe following configuration points are available for thetencentcloudprovider:Secret IDThe API Secret ID, read from environment variableTENCENTCLOUD_SECRET_IDif not preset.pulumiconfigsettencentcloud:secretId[your-secret-id]--secretSecret KeyThe API Secret Key, read from environment variableTENCENTCLOUD_SECRET_KEYif not preset.pulumiconfigsettencentcloud:secretKey[your-secret-key]--secretRegionThe region in which to deploy resources, read from environment variableTENCENTCLOUD_REGIONif not preset.pulumiconfigsettencentcloud:regionap-singaporeSecurity Token (Optional)The Security Token for temporary access, read from environment variableTENCENTCLOUD_SECURITY_TOKENif not preset.pulumiconfigsettencentcloud:securityToken[your-security-token]--secret
Package: tencent-cloud-sdk-auth
Tencent Cloud SDK for Python - AuthA subpackage of the Tencent Cloud SDK for Python. This package implements related functions such as access credential type and signature calculation for Tencent Cloud SDK for Python.Please note that this package does not depend on any other components of the Tencent Cloud SDK for Python and can be installed and used independently.InstallationWith the Python package manager, you can quickly install the Tencent Cloud SDK for Python - Auth.pipinstalltencent-cloud-sdk-authYou can also try to build and install locally:pythonsetup.pyinstallOtherIf you encounter any problems during use, you are welcome to navigate to theIssuespage to submit and we will be happy to assist you with the problem.
Package: tencent-cloud-sdk-common
Tencent Cloud SDK for Python - CommonA subpackage of the Tencent Cloud SDK for Python. This sub-package integrates external packages that Tencent Cloud SDK for Python depends on, avoiding the need to deploy additional external dependencies of Tencent Cloud SDK for Python when deploying on a serverless platform.Tips:Note that if the required external dependencies are already installed in the Tencent Cloud SDK for Python, dependencies are not looked up from this package by default.InstallationWith the Python package manager, you can quickly install the Tencent Cloud SDK for Python - Common.pipinstalltencent-cloud-sdk-commonYou can also try to build and install locally:pythonsetup.pyinstallLicenseThis package includes the third-party packages that the Tencent Cloud SDK for Python relies on. We do not modify the source code of these dependent packages unless necessary. If the source code of these dependent packages is modified, we will explain the details of the modification.To facilitate the deployment and migration of the Tencent Cloud SDK for Python, we have encapsulated the dependent packages in a package calledtencent-cloud-sdk-common, which are:https://pypi.org/project/aiohttp/https://pypi.org/project/aiosignal/https://pypi.org/project/async-timeout/https://pypi.org/project/attr/https://pypi.org/project/charset-normalizer/https://pypi.org/project/multidict/https://pypi.org/project/yarl/https://pypi.org/project/idna/https://pypi.org/project/idna_ssl/https://pypi.org/project/typing-extensions/https://pypi.org/project/certifi/It is worth noting that our use of these dependent packages is subject to their open source licenses.OtherIf you encounter any problems during use, you are welcome to navigate to theIssuespage to submit and we will be happy to assist you with the problem.
Package: tencent-cloud-sdk-core
Tencent Cloud SDK for Python - CoreThe core component of the Tencent Cloud SDK for Python. Most Tencent Cloud SDK for Python components rely on the core functionality provided by this package.Tips:Please note that this package depends on certain components and open source packages and cannot be installed and used independently.InstallationWith the Python package manager, you can quickly install the Tencent Cloud SDK for Python - Auth.pipinstalltencent-cloud-sdk-coreYou can also try to build and install locally:pythonsetup.pyinstallRequirementsThis component depends on the following packages:tencent-cloud-sdk-auth >= 0.1.4tencent-cloud-sdk-common >= 0.1.1OtherIf you encounter any problems during use, you are welcome to navigate to theIssuespage to submit and we will be happy to assist you with the problem.
Package: tencentcloud-sdk-python
Tencent Cloud Python SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.The SDK works on Python versions:2.7 and greater, including 3.xQuick StartFirst, install the library:$pipinstalltencentcloud-sdk-pythonor download source code from github and install:$gitclonehttps://github.com/tencentcloud/tencentcloud-sdk-python.git$cdtencentcloud-sdk-python$pythonsetup.pyinstall
Package: tencentcloud-sdk-python-aa
Tencent Cloud Python Aa SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
The SDK works on Python versions:2.7 and greater, including 3.xQuick StartFirst, install the library:$pipinstalltencentcloud-sdk-python-common$pipinstalltencentcloud-sdk-python-aaor download source code from github and install:$gitclonehttps://github.com/tencentcloud/tencentcloud-sdk-python.git$cdtencentcloud-sdk-python$pythonpackage.py--componentscommonaa
Package: tencentcloud-sdk-python-aai
Tencent Cloud Python Aai SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
The SDK works on Python versions:2.7 and greater, including 3.xQuick StartFirst, install the library:$pipinstalltencentcloud-sdk-python-common$pipinstalltencentcloud-sdk-python-aaior download source code from github and install:$gitclonehttps://github.com/tencentcloud/tencentcloud-sdk-python.git$cdtencentcloud-sdk-python$pythonpackage.py--componentscommonaai
Package: tencentcloud-sdk-python-acp
Tencent Cloud Python Acp SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
The SDK works on Python versions:2.7 and greater, including 3.xQuick StartFirst, install the library:$pipinstalltencentcloud-sdk-python-common$pipinstalltencentcloud-sdk-python-acpor download source code from github and install:$gitclonehttps://github.com/tencentcloud/tencentcloud-sdk-python.git$cdtencentcloud-sdk-python$pythonpackage.py--componentscommonacp
Package: tencentcloud-sdk-python-advisor
Tencent Cloud Python Advisor SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
The SDK works on Python versions:2.7 and greater, including 3.xQuick StartFirst, install the library:$pipinstalltencentcloud-sdk-python-common$pipinstalltencentcloud-sdk-python-advisoror download source code from github and install:$gitclonehttps://github.com/tencentcloud/tencentcloud-sdk-python.git$cdtencentcloud-sdk-python$pythonpackage.py--componentscommonadvisor
Package: tencentcloud-sdk-python-af
Tencent Cloud Python Af SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
The SDK works on Python versions:2.7 and greater, including 3.xQuick StartFirst, install the library:$pipinstalltencentcloud-sdk-python-common$pipinstalltencentcloud-sdk-python-afor download source code from github and install:$gitclonehttps://github.com/tencentcloud/tencentcloud-sdk-python.git$cdtencentcloud-sdk-python$pythonpackage.py--componentscommonaf
Package: tencentcloud-sdk-python-afc
Tencent Cloud Python Afc SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
The SDK works on Python versions:2.7 and greater, including 3.xQuick StartFirst, install the library:$pipinstalltencentcloud-sdk-python-common$pipinstalltencentcloud-sdk-python-afcor download source code from github and install:$gitclonehttps://github.com/tencentcloud/tencentcloud-sdk-python.git$cdtencentcloud-sdk-python$pythonpackage.py--componentscommonafc
Package: tencentcloud-sdk-python-aiart
Tencent Cloud Python Aiart SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
The SDK works on Python versions:2.7 and greater, including 3.xQuick StartFirst, install the library:$pipinstalltencentcloud-sdk-python-common$pipinstalltencentcloud-sdk-python-aiartor download source code from github and install:$gitclonehttps://github.com/tencentcloud/tencentcloud-sdk-python.git$cdtencentcloud-sdk-python$pythonpackage.py--componentscommonaiart
Package: tencentcloud-sdk-python-ame
Tencent Cloud Python Ame SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
The SDK works on Python versions:2.7 and greater, including 3.xQuick StartFirst, install the library:$pipinstalltencentcloud-sdk-python-common$pipinstalltencentcloud-sdk-python-ameor download source code from github and install:$gitclonehttps://github.com/tencentcloud/tencentcloud-sdk-python.git$cdtencentcloud-sdk-python$pythonpackage.py--componentscommoname