Saravanan666/pypi-org huggingface dataset:
Package: tanh-sinh
The rather modern tanh-sinh quadrature is different from classical Gaussian
integration methods in that it doesn't integrate any function exactly, not even
polynomials of low degree. Its tremendous usefulness rather comes from the fact
that a wide variety of functions, even seemingly difficult ones with
(integrable) singularities, can be integrated witharbitraryprecision.Install withpip install tanh-sinhand use it likeimporttanh_sinhimportnumpyasnpval,error_estimate=tanh_sinh.integrate(lambdax:np.exp(x)*np.cos(x),0,np.pi/2,1.0e-14,# Optional: Specify first and second derivative for better error estimation# f_derivatives={#     1: lambda x: np.exp(x) * (np.cos(x) - np.sin(x)),#     2: lambda x: -2 * np.exp(x) * np.sin(x),# },)If you want more digits, usempmathfor arbitrary precision
arithmetic:importtanh_sinhfrommpmathimportmpimportsympymp.dps=50val,error_estimate=tanh_sinh.integrate(lambdax:mp.exp(x)*sympy.cos(x),0,mp.pi/2,1.0e-50,# !mode="mpmath",)If the function has a singularity at a boundary, it needs to be shifted such that the
singularity is at 0. (This is to avoid round-off errors for points that are very close
to the singularity.)
If there are singularities at both ends, the function can be shifted both ways and be
handed off tointegrate_lr; For example, for the function1 / sqrt(1 - x**2), this
givesimportnumpyimporttanh_sinh# def f(x):#    return 1 / numpy.sqrt(1 - x ** 2)val,error_estimate=tanh_sinh.integrate_lr(lambdax:1/numpy.sqrt(-(x**2)+2*x),# = 1 / sqrt(1 - (x-1)**2)lambdax:1/numpy.sqrt(-(x**2)+2*x),# = 1 / sqrt(1 - (-(x-1))**2)2,# length of the interval1.0e-10,)print(numpy.pi)print(val)3.141592653589793
3.1415926533203944Relevant publicationsHidetosi Takahasi, Masatake Mori, Double Exponential Formulas for Numerical Integration, PM. RIMS, Kyoto Univ., 9 (1974), 721-741Masatake Mori, Discovery of the double exponential transformation and its developments, Publications of the Research Institute for Mathematical Sciences, 41 (4): 897–935, ISSN 0034-5318David H. Bailey, Karthik Jeyabalan, and Xiaoye S. Li, Error function quadrature, Experiment. Math., Volume 14, Issue 3 (2005), 317-329David H. Bailey, Tanh-Sinh High-Precision Quadrature, 2006
Package: tanit
.. image::https://img.shields.io/pypi/v/tanit:target:https://pypi.org/project/tanit.. image::https://img.shields.io/pypi/pyversions/tanit:target:https://pypi.org/project/tanit.. image::https://img.shields.io/travis/com/yassineazzouz/tanit:target:https://travis-ci.com/yassineazzouz/tanit.. image::https://img.shields.io/codecov/c/github/yassineazzouz/tanit:target:https://codecov.io/gh/yassineazzouz/tanitTanitTanit is a distributed, fast, and reliable data transfer service for efficiently moving large amounts of data between different storage technologies. It uses a distributed master worker architecture, to allow very fast data transfer speed and horizontal scaling, while implementing multiple failover, recovery and data consistency checks mechanisms to ensure robustness, fault tolerance and reliability.Tanittypical use cases include but are not limited to :Data migration (across storage technologies)Data Replication.Backup and Disaster recovery.Data life cycle management.FeaturesDistributed data transfer service.Support multiple storage technologies.Easy to setup, configurable services.Command line interface to submit and monitor jobs.Support multiple scheduling algorithms and job priority.Support multiple jobs placement policies across workers.Install::pip install tanit-pyds
Package: tanji
Tanji Encryption Library 👩‍💻🔐Tanji is a Python encryption library that provides a secure and flexible solution for encrypting and decrypting messages. It leverages both symmetric and asymmetric encryption techniques to ensure the confidentiality and integrity of your data.Features 🚀Symmetric Encryption:Utilizes the Advanced Encryption Standard (AES) algorithm for symmetric key encryption.Asymmetric Encryption:Employs RSA algorithm for secure asymmetric key encryption.Base64 Encoding:Efficiently encodes encrypted data using Base64 for safe transmission.Key Pair Generation:Automatically generates RSA key pairs for secure communication.Random Initialization Vectors (IV):Uses random IVs to enhance security.Ease of Use:Simple and straightforward interface for encrypting and decrypting messages.How Tanji Differs 🤔Robust Security:Tanji prioritizes the security of your data by combining symmetric and asymmetric encryption methods.Key Pair Generation:Automatically generates and manages RSA key pairs, simplifying the encryption process.Dynamic Initialization Vectors:Randomly generated IVs for each encryption enhance the resistance against cryptographic attacks.Base64 Encoding:Encoded data ensures compatibility and safe transmission across different systems.Developer-Friendly:Designed to be user-friendly and easily integrated into various Python projects.Getting Started 🏁Install Tanji:pipinstalltanjiUse Tanji in your Python project:fromtanji.tanjiimportTanji# Example Usagetanji=Tanji()encrypted_message,ciphertext=tanji.encrypt_message("Hello, Tanji!")decrypted_message=tanji.decrypt_message(encrypted_message,ciphertext)print("Original Message:","Hello, Tanji!")print("Encrypted Message:",encrypted_message)print("Decrypted Message:",decrypted_message)Contributing 🤝Contributions are welcome! Feel free to submit issues or pull requests.License 📄This project is licensed under the MIT License - see theLICENSEfile for details.
Package: tankerkoenig
Tankerkoenig-PythonPython wrapper for the creativecommons.tankerkoenig.de APINote: The API is under Creative Commons (CC BY 4.0) license. It is used by many clients so please restrict API calls to the minimum.
Every request requires an API key that can be requestedhereExamplesFinding petrol stations around a certain coordinate:importtankerkoenigclient=tankerkoenig.Client(api_key="00000000-0000-0000-0000-000000000002")petrol_stations=client.list(lat=50.114634,lng=8.687657,rad=2,petrol_type=tankerkoenig.Petrol.DIESEL,sort=tankerkoenig.SortingMethod.DISTANCE,)print(petrol_stations)Accessing details of a station by its ID:importtankerkoenigclient=tankerkoenig.Client(api_key="00000000-0000-0000-0000-000000000002")details=client.details(id="24a381e3-0d72-416d-bfd8-b2f65f6e5802")print(details)# Details_Model(#     ok=True,#     license='CC BY 4.0 -  https://creativecommons.tankerkoenig.de',#     data='MTS-K',#     status='ok',#     station=Details_Station(#         id='24a381e3-0d72-416d-bfd8-b2f65f6e5802',#         name='Esso Tankstelle',#         brand='ESSO',#         street='HAUPTSTR. 7',#         houseNumber=' ',#         postCode=84152,#         place='MENGKOFEN',#         openingTimes=[#             Details_OpeningTime(#                 text='Mo-Fr',#                 start='05:00:00',#                 end='22:30:00',#             ),#             Details_OpeningTime(#                 text='Samstag',#                 start='07:00:00',#                 end='22:30:00',#             ),#             Details_OpeningTime(#                 text='Sonntag, Feiertag',#                 start='08:00:00',#                 end='22:30:00',#             ),#         ],#         overrides=[],#         wholeDay=False,#         isOpen=True,#         e5=1.009,#         e10=1.009,#         diesel=1.009,#         lat=48.72210601,#         lng=12.44438439,#         state=None,#     ),# )
Package: tankersdk
Tanker Python SDKOverviewTheTanker SDKprovides an easy-to-use SDK allowing you to protect your users’
data.This repository only contains Python3 bindings. The core library can be found in theTankerHQ/sdk-native GitHub project.ContributingWe are actively working to allow external developers to build and test this project
from source. That being said, we welcome feedback of any kind. Feel free to
open issues or pull requests on theGitLab project.DocumentationSeeAPI documentation.LicenseThe Tanker Python SDK is licensed under theApache License, version 2.0.
Package: tankersdk-identity
Identity SDKTanker identity generation in Python for theTanker SDK.InstallationWithpip:$pipinstalltankersdk-identityAPItankersdk_identity.create_identity(app_id,app_secret,user_id)Create a new Tanker identity. This identity is secret and must only be given to a user who has been authenticated by your application. This identity is used by the Tanker client SDK to open a Tanker sessionapp_idThe app ID, must match the one used in the constructor of the Core SDK.app_secretThe app secret, secret that you have saved right after the creation of your app.user_idThe ID of a user in your application.tankersdk_identity.create_provisional_identity(app_id,"email",email)Create a Tanker provisional identity. It allows you to share a resource with a user who does not have an account in your application yet.app_idThe app ID, must match the one used in the constructor of the Core SDK.emailThe email of the potential recipient of the resource.tankersdk_identity.get_public_identity(identity)Return the public identity from an identity. This public identity can be used by the Tanker client SDK to share encrypted resource.identityA secret identity.Going furtherRead more about identities in theTanker guide.Check theexamplesfolder for usage examples.
Package: tankersdk-user-token
User token generation in Python for theTanker SDK.InstallationWithpip:$pipinstalltankersdk-user-tokenUsageimporttankersdk.usertokendefretrieve_user_token(user_id):""" Fetch a previously stored token """...defstore_user_token(user_id,token):""" Store a previously generated token """...defcheck_auth(user_id):""" Check the user is authenticated """...defserve_user_token(user_id):""" Called during sign/up sign in of your users.

    Send a user token, generated if necessary, but only to
    authenticated users
    """authorized=check_auth(user_id)ifnotauthorized:raiseUnAuthorizedError()token=retrieve_user_token(user_id)ifnottoken:token=tankersdk.usertoken.generate_user_token(trustchain_id,trustchain_private_key,user_id)store_user_token(user_id,token)returntokenGoing furtherRead more about user tokens in theTanker guide.Check theexamplesfolder for usage examples.
Package: tank-forecaster
Tank ForecasterSmall package for generating forecasts of fuel tank demand.Featurestank_forecaster.validationclean and format sales dataclean and format tank reading datause sales data to impute missing values in tank readingstank_forecaster.decompositionscreate seasonal decomposition curves (yearly / monthly / weekly)generate generic decomposition curves for instances of no datatank_forecaster.forecastercreate short term forecasts with generalized additive models (prophet)create long term forecasts with ARIMA type modelstank_forecaster.eventsdefine holidays and special events that effect fuel demandCreditsThis package was created with CookiecutterHistory0.1.0 (2020-05-11)First release on PyPI.
Package: tankioapi
NotificationThis project was created just to exist. Of course, I will update it when the API itself changes, but not immediately. Well, if You want to support this project, You can give it a star.InformationAs mentioned earlier, this project is created just to exist. And so, the module itself is needed to get the top of players and get information about the player separately. If You know more functionality of the API of the gameTanki Online, then please report this functionality in theIssues.FeaturesFullyasync/awaitGetting top of playersGetting information of any player by him nameGetting status of stable serverMaybe deprecatedGetting status of test serversInstallingPython 3.8or higher is requiredTo install a non-speedupversion of the library, do the following:# Linux/macOSpython3-mpipinstall-Utankioapi# Windowspy-3-mpipinstall-UtankioapiOr, to install thespeedupversion, do the following:# Linux/macOSpython3-mpipinstall-U"tankioapi[speedup]"# Windowspy-3-mpipinstall-Utankioapi[speedup]And, to install the development version, do the following:$gitclonehttps://github.com/stngularity/tankioapi
$cdtankioapi
$python3-mpipinstall-U.[speedup]ExamplesHere are examples of some of the features of the library. More examples inexamples/Getting all tops of playersimportasynciofromtoapiimportTop,TopLists,get_topstops:TopLists=asyncio.run(get_tops())efficiency_top:Top=tops.efficiencyprint("----- Efficiency top -----")fornumber,userinenumerate(efficiency_top.users):print(f"#{number+1}{user.name}({user.top_value})")Getting information of playerimportasynciofromtoapiimportUser,get_useruser:User=asyncio.run(get_user("sty"))# and You can specify language# user: User = asyncio.run(get_user("sty", lang="ru"))print(f"Name:{user.name}")rank:str=user.rank.name.title()print(f"Rank:{rank}({user.score}/{user.score_next}{round(user.score/user.score_next*100)}%)")print(f"Has premium:{'Yes'ifuser.premiumelse'No'}")print()print(f"KD:{user.kills}/{user.deaths}({user.kd_ratio})")print(f"Caught golds:{user.caught_golds}")print(f"Crystals:{user.crystals}")print(f"GS:{user.gear_score}")LicenseThis project is distributed under theMITlicense. You can learn more from theLICENSEfile.Made with ❤ and 🍵 by stngularity for everyone
Package: tankobon
tankobonYet another manga downloader.For more info, check out theproject websiteand thedocumentationContributingJust send in a PR with your feature changes/bug fixes. To set up development builds for tankobon, do the following:$gitclonehttps://github.com/ongyx/tankobon&&cdtankobon# (create and enter a virtualenv if you want)$makeinstall-dev# (make your code changes here...)# make sure all tests pass$makeallCreditsfeatherfor the icons (all svgs) in theresourcesfolder.LicenseMIT.
Package: tanoshi
TanoshiA fast, asyncio based web-framework, that you'll enjoy using.Read the docs.Why Tanoshi and what is it?Tanoshi is a fast, asyncio based web-framework, that you'll really enjoy using. Tanoshi is built to revolve around your design decisions, not ours. Tanoshi has no boiler-plate code what so ever, allowing you to have an extremely flexible code base structure. Tanoshi can also be a heavy-weight framework if you choose to opt-in to it's heavy-weight features, such as a database ORM, as well as adaptable authentication. Tanoshi allows you to quickly prototype, as well as expand and scale quickly!It's in the name! -Tanoshi(楽しい) - EnjoyableKey FeaturesModernasyncandawaitsyntax.Seriously impressive performance thanks to Starlette.Opt-in heavy-weight features such as a fully-fledged database ORM.Extremely flexible.Jinja Templating Support.Session and Cookie Middleware.Quick and easy to get started with.ExamplesfromtanoshiimportTanoshifromtanoshi.shortcutsimportrender,redirectapp=Tanoshi(name="MyTanoshiApplication",debug=True,templates_directory="templates/")@app.route("/",methods=["GET","POST"])asyncdefindex(request):context={"message":"Hello Tanoshi!","moreData":["guido","van","rossum"]}returnrender(request,"index.html",context)@app.route("/redirect")asyncdefredirect_route(request):returnredirect("https://www.python.org/")Running tanoshiRunningtanoshion a production server is super simple. Let's use the example above to learn how to run tanoshi. First, you'll need to install a production server such asuvicorn, which is the one I personally recommend. Simply runpip instal uvicornto install uvicorn. Now, if you placed the example code into a file calledmain.py, you'd need to runuvicorn main:appinside the directory where yourmain.pyfile is housed.This process is exactly the same as other asgi frameworks, no changes there!
Package: tansa
Name for JSONA filter to get the json file content from filename in a command line terminal. Type less with a file name along withtansa, while the tansa takes care of frustrating search.Quick StartInstallationThe simplest installation method.pip install tansaSampleWhile sample.json is in your current/nested directory,$ tansa samplewhich will display json contents.[{'sample.json':{key:value}, 'sample2.json':{key:value}}]DevelopmentThe tansa takes one argument as a file name to look for. Customers are free from entering the exact file name such as suffix because the tansa append*to the input as its suffix.TestIn progressContactIf it turns out that you may have found a bug, please openan issue.
Package: tanshicheng
作者:tanshicheng包括:用于读取参数文件
文件、xml、正则的一般处理/读写
时间/过程处理日志:2018年09月11日: 增加过程时间输出(ProgressAndTime)
2018年09月13日: 增加pickle读写(FileProcess)等
2018年09月14日: 增加简化的时间输出(ProgressAndTime.ProgressOut2)等
2018-11-17：仿照 tqdm 增加 ProgressOut3，可以在循环中控制头部输出
Package: tansy
tansyUnstable experiments with interactions.py.Commandstansyprovides a unique way to define options for slash commands - a way that appears often in other Discord Python libraries.Instead of needing a decorator per option or to define the option in one huge list,tansyallows you to define each option in the function itself.
By using a special metadata function, you can specify what each argument/parameter in a function should be like as an option, with tansy smartly handling the rest for you.importinteractionsasipyimporttansy@tansy.slash_command(name="test",description="Nice test command, huh?")asyncdeftest_cmd(ctx:ipy.InteractionContext,the_user:ipy.User=tansy.Option(name="user",description="The user to ping."),):awaitctx.send(the_user.mention)Class Slash CommandIn case you want to try something very unique, or just want to leverage classes,tansyallows you to leverage its toolset to make class slash commands.importinteractionsasipyimporttansy@tansy.class_slash_command(name="test",description="Nice test command, huh?")classTest:the_user:ipy.User=tansy.Option(name="user",description="The user to ping.")asyncdefcallback(self,ctx:ipy.InteractionContext):awaitctx.send(self.the_user.mention)Note that the class is being read and adjusted to be more like a typical functional declaration, and so isn't a fully true class-based approach.
Subclasses are not going to become subcommands (thoughclass_subcommandexists), and while the classdoesget initialized on every run
(meaning you can use custom__init__s, as long as they have no parameters that need to be filled in), the class is largely untouched outside
of declaration and usingcallback.
Package: tantalum
tantalumShort blurb about what your product does.One to two paragraph statement about your product and what it does.InstallationOS X & Linux:pip3installtantalumWindows:pipinstalltantalumUsage exampleA few motivating and useful examples of how your product can be used. Spice this up with code blocks and potentially more screenshots.For more examples and usage, please refer to theWiki.Development setupDescribe how to install all development dependencies and how to run an automated test-suite of some kind. Potentially do this for multiple platforms.pipinstall--editabletantalumDocumentationRead the DocsMetaStephen R A King :stephen.ra.king@gmail.comDistributed under the MIT License. SeeLICENSEfor more information.https://github.com/Stephen-RA-King/tantalum
Package: tantipy
TantipyTantipy is a pure python tool for reading Tantivy.storefiles.ExampleimportjsonimportosfromtantipyimportTantivyReaderindex_path='...'withopen(os.path.join(index_path,'meta.json'))asschema_file:schema=json.load(schema_file)['schema']withopen(os.path.join(index_path,'687e95d2e6f54a3cb1008e69ebbebdd9.store'))asstore_file:content=store_file.read()tantivy_reader=TantivyReader(content,schema)fordocumentintantivy_reader.documents():print(document)
Package: tantivy-mirror
tantivy-pyPython bindings for Tantivy.InstallationThe bindings can be installed using from pypi using pip:pip install tantivyIf no binary wheel is present for your operating system the bindings will be
build from source, this means that Rust needs to be installed before building
can succeed.Note that the bindings are usingPyO3, which
only supports python3.DevelopmentSetting up a development environment can be done in a virtual environment usingnoxor using local packages using the providedMakefile.For thenoxsetup install the virtual environment and build the bindings using:python3 -m pip install nox
noxFor theMakefilebased setup run:makeRunning the tests is done using:make testUsageThe Python bindings have a similar API to Tantivy. To create a index first a schema
needs to be built. After that documents can be added to the index and a reader
can be created to search the index.importtantivy# Declaring our schema.schema_builder=tantivy.SchemaBuilder()schema_builder.add_text_field("title",stored=True)schema_builder.add_text_field("body",stored=True)schema=schema_builder.build()# Creating our index (in memory, but filesystem is available too)index=tantivy.Index(schema)# Adding one document.writer=index.writer()writer.add_document(tantivy.Document(title=["The Old Man and the Sea"],body=["""He was an old man who fished alone in a skiff in the Gulf Stream and he had gone eighty-four days now without taking a fish."""],))# ... and committingwriter.commit()# Reload the index to ensure it points to the last commit.index.reload()searcher=index.searcher()query=index.parse_query("fish days",["title","body"])(best_score,best_doc_address)=searcher.search(query,3).hits[0]best_doc=searcher.doc(best_doc_address)assertbest_doc["title"]==["The Old Man and the Sea"]print(best_doc)
Package: tantrum
Tantrum: Tanium Instrumental API wrapperInstallingExamplesTantrum: Tanium Instrumental API wrapperTantrum is meant to be an API wrapper forTanium. It makes the Tanium API actually usable by providing native python objects for working with API objects, and also provides workflows for complex multi-step operations.InstallingInstalling tantrum viapiporpipenvwill automatically install all of the necessary dependencies.ExamplesTheseexamplesare fairly basic and not intended to be full show & tells. More detailed examples will be added over time.
Package: tanuna
tanunatanuna is a Python package that supports working with dynamic systems. It is
intended to include:Continuous time and discrete time systemsLinear and non-linear systemsTime-invariant and time-varying systemsSISO and MIMO systems, including pure sources and pure sinksSystem characterization (such as impulse- and frequency response)Controller designCurrently, the focus is on continuous-time LTI systems. Please find
documentation including interesting examples onreadthedocs.Furthermore - and maybe foremost - this project serves the author to learn
and try:feedback systemsDistributed revision control (git and github)Modern documentation (sphinx and readthedocs)Distribution (pypi)(maybe) Build serversThe name? Stands for "There Are No Unique Names Anymore" and resulted from an
unsuccessful search for a sensible name that was not used already - well,
almost: "tanuna" seems to be the essive singular form of "tanu". A "tanu" is
a traditional Finnish bonnet worn by women.
Package: tan-up
# tan> 弹出一个世界。
> 开发者快速在 terminal 中打开当前目录，只需要输入tan，提高开发效率。
> 此工具只支持 Python 3.6+。### 快速安装pip 安装（推荐）`python pip install tan_up `pipenv 安装`python pipenv install tan_up `源码安装` python setup.py install `### 快速使用1. Windows
# TODO2. Mac
# TODO### 开源代码[pyperclip](https://github.com/asweigart/pyperclip)### LICENSE
MIT
Package: tao
The Toolkit for Advanced Optimization (TAO) is aimed at the solution
of large-scale optimization problems on high-performance
architectures. Its main goals are portability, performance, scalable
parallelism, and an interface independent of the architecture. TAO is
suitable for both single-processor and massively-parallel
architectures.TipYou can also installtao-devwith:$ pip install petsc==dev tao==dev
Package: taobaopyx
taobaopyxAsyncio version of taobaopy powered by httpxInstallpipinstall-UtaobaopyxUsefromtaobaopyx.taobaoimportAPINode,AsyncTaobaoAPIClientimportasyncioimportlogginglogging.basicConfig(level=logging.DEBUG)client=AsyncTaobaoAPIClient(app_key="fake_key",app_secret="fake_sescret")taobao=APINode(client,"taobao")asyncdefget():res=awaittaobao.mixnick.get(nick="nick")print(res)asyncdefshutdown():awaitclient.aclose()asyncio.run(get())asyncio.run(shutdown())
Package: taobao-sdk
Taobao SDK第三方淘宝SDKUsage使用方法：fromtaobao.apiimportTaoBaotaobao=TaoBao(key,secret,session)taobao.tradeapi.trade_sold_get(...)Api交易类trade_sold_get：查询卖家已卖出的交易数据trade_fullinfo_get： 获取单笔交易的详细信息trade_amount_get： 交易账务查询trade_memo_update: 修改交易备注