Saravanan666/pypi-org huggingface dataset:
Package: trusspy
Truss Solver for Python.TrussPyis a 3DTruss-Solver written inPy-thon which is capable of material and geometric nonlinearities. It uses an object-oriented approach to structure the code in meaningful classes, attributes and methods. TrussPy contains both multistep functionality (multiple loadcase analysis with sequenced external forces) and an adaptive method to control incremental stepwidths. A simple post-processing inside TrussPy is directly available via Matplotlib. Model Plots whether in undeformed or deformed configuration with optional contour plots on element forces are easy to show. They may also be generated for a series of increments and saved as a GIF Movie. Last but not least History (a.k.a. x-y) Plots for a series of increments or Path Plots along a given node path may be generated for nodal properties (displacements, forces) or global quantities like the Load-Proportionality-Factor (LPF).Official Documentation:http://trusspy.readthedocs.io/InstallationUsepipto install TrussPypip install trusspyExampleimporttrusspyastpM=tp.Model()# create nodeswithM.NodesasMN:MN.add_node(1,(0,0,0))MN.add_node(2,(1,0,0))# create elementwithM.ElementsasME:ME.add_element(1,[1,2])ME.assign_material("all",[1])ME.assign_geometry("all",[1])# create displacement (U) boundary conditionswithM.BoundariesasMB:MB.add_bound_U(1,(0,0,0))MB.add_bound_U(2,(1,0,0))# create external forceswithM.ExtForcesasMF:MF.add_force(2,(1,0,0))# build model, run, show resultsM.build()M.run()# plot results of last incrementM.plot_model(inc=-1,contour="force")Online NotebookTry TrussPy without installation in anInteractive Online Notebook.ChangelogAll notable changes to this project will be documented inthis file. The format is based onKeep a Changelog, and this project adheres toSemantic Versioning.LicenseTrussPy - Truss Solver for Python (C) 2023 Andreas Dutzler, Graz (Austria).This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.You should have received a copy of the GNU General Public License along with this program. If not, seehttps://www.gnu.org/licenses/.
Package: trussty
Truss Analysis PackageThis package gives functionality to analyse trusses.How to useCreate a mesh using Mesh class.Add joints, members, forces, and supports using coresponding data classes.Changes to any of the above classes are done in the same memory location. Meaning changing a joint outside of a mesh will also change the joint inside the mesh.Supports skyciv node and member cvs files to create mesh from cvs.Versions0.1.1Fixed dependancies0.1.0First version.
Package: truss-utils
truss-utilsThis package is a repository of common functions that help with developing
production AI/ML models with Truss.UseIn themodel.pyof your truss, you can do something like the following:from truss_utils.image import pil_to_64

class Model:
...

    def predict(self, model_input):
        # call Stable diffusion
        ...

        return pil_to_b64(image)
Package: trust
Trust is a read-only hierarchical database with data stored in JSON format and served locally or through REST.Thedetailed documentation of Trust databaseis available on the official website. It also contains an online tool which let you test different queries and parameters.ContributingThesource codeis also available. The package is distributed underMIT License.If you want to have SVN access to the official repository in order to contribute to the project, contact me atarseni.mourzenko@pelicandd.com. If you find it more convinient to clone the source to GitHub, you can do that too.
Package: trustcaptcha-python
Trustcaptcha Python-LibraryThe Python library helps you to integrate Trustcaptcha into your Python backend applications.What is Trustcaptcha?A captcha solution that protects you from bot attacks and puts a special focus on user experience and data protection.You can find more information on your website:www.trustcaptcha.com.How does the library work?Detailed instructions and examples for using the library can be found in ourdocumentation.Short exampleHere you can see a short code example of a possible integration. Please refer to our provideddocumentationfor complete and up-to-date integration instructions.Installing the librarypip install trustcaptcha-pythonFetching and handling the result# Retrieving the verification result
verification_result = CaptchaManager.get_verification_result("<your_secret_key>", <verification_token>)

# Do something with the verification result
if verification_result.verificationPassed is not True or verification_result.score > 0.5:
    print("Verification failed, or bot score is higher than 0.5 – this could indicate a bot.")Ideas and supportIf you have any ideas, suggestions, or need support, pleasecontact us.
Package: trustedanalytics
trusted analyticstrusted analytics is a platform that simplifies applying graph analytics and machine learning to big data for superior knowledge
discovery and predictive modeling across a wide variety of use cases and solutions. ATK provides an analytics pipeline
spanning feature engineering, graph construction, graph analytics, and machine learning using an extensible,
modular framework. By unifying graph and entity-based machine learning, machine learning developers can incorporate an
entity’s nearby relationships to yield superior predictive models that better represent the contextual information in
the data. All functionality operates at full scale, yet are accessed using a higher level Python data science
programming abstraction to significantly ease the complexity of cluster computing and parallel processing.
The platform is fully extensible through a plugin architecture that allows incorporating the full range of analytics
and machine learning for any solution need in a unified workflow that frees the researchers from the overhead of
understanding, integrating, and inefficiently iterating across a diversity of formats and interfaces.Documentationhttp://trustedanalytics.github.io/atk/Sourcehttps://github.com/trustedanalytics/atk
Package: trustedtwin
TrustedTwin Python Client (external info)The Trusted Twin Python library makes it easy to use the Trusted Twin user infrastructure API in Python applications.
The library version is consistent with the Swagger version of the Trusted Twin API.Client offers synchronous and asynchronous versions which can be used for communication with TT API.RequirementsLibrary requires Python3.6+.InstallationFor synchronous API client:pipinstalltrustedtwinTo use asynchronous client:pipinstalltrustedtwin[async]By default, additional packages required byasynchronousversion are not installed.UsageAuthorizationFor synchronous client:fromtrustedtwin.tt_apiimportTTRESTServiceTT_SERVICE=TTRESTService(auth=$USER_SECRET)For asynchronous client:fromtrustedtwin.tt_api_asyncimportTTAsyncRESTServiceTT_SERVICE=TTAsyncRESTService(auth=$USER_SECRET)Example callsFor synchronous client:importjsonfromtrustedtwin.tt_apiimportTTRESTServicestatus,response=TTRESTService().create_user_secret($ACCOUNT_UUID,$PIN)resp=json.loads(response)TT_SERVICE=TTRESTService(tt_auth=resp['secret'])_body={'description':{'custom_name':'custom_value'}}status,response=TT_SERVICE.create_twin(body=_body)resp=json.loads(response)For asynchronous client:importjsonfromtrustedtwin.tt_api_asyncimportTTAsyncRESTServicestatus,response=awaitTTAsyncRESTService().create_user_secret($ACCOUNT_UUID,$PIN)resp=json.loads(response)TT_SERVICE=TTAsyncRESTService(tt_auth=resp['secret'])_body={'description':{'custom_name':'custom_value'}}status,response=awaitTT_SERVICE.create_twin(body=_body)resp=json.loads(response)For more information please navigate to the officialdocumentation.TrustedTwin Python Client (internal info)Updating the libraryTo update the Python library to the newest version:Upload a tt_api.yaml file corresponding with the respective API version.In the Gitlab interface in the left-hand side pane, selectBuildand go to thePipeline schedulessection.By theDeploy to official pyPi repositoryschedule, click on theRun pipeline schedulebutton.
Package: trustfall
trustfall— Python bindingsUse the Trustfall query engine from Python.APICreate a schema object:fromtrustfallimportSchemamy_schema=Schema("""Your schema text here, written in GraphQL SDL.See an example schema here:https://github.com/obi1kenobi/trustfall/blob/main/pytrustfall/numbers.graphql""")Create an adapter with which to query the schema:fromtypingimportAny,DictfromtrustfallimportAdapter# Choose the type that is used to represent data vertices:Vertex=Dict[str,Any]classMyAdapter(Adapter[Vertex]):# Implement the four abstract methods from Adapter....Execute queries:fromtrustfallimportexecute_querymy_adapter=MyAdapter(...)my_query="""query {# your query here}"""args={# query arguments here}results_iterator=execute_query(my_adapter,my_schema,my_query,args,)forresultinresults_iterator:print(result)InstallingtrustfallThis package is a wrapper around the Trustfall query engine, which is written in Rust.Wheels are available for Windows, macOS (both x86 and ARM), and Linux (manylinux),
for each supported version of CPython (3.9+).This package should work on other platforms as well, in which case its Rust components
may need to be compiled from source as part of the installation process.If you get errors while installing this package, pleasereport your OS and architecture info in an issue.
Package: trustlet
trustlet is a Python package for the study of trust metrics on
social networks.  As of October 2007 it is in alpha stage, with
support for several Advogato-like datasets and a bunch of trust
metrics.http://trustlet.org/Using>>> from trustlet import *
>>> G=Advogato()
>>> G.add_edge(1,2)
>>> G.add_node("spam")
>>> print G.nodes()
[1, 2, 'spam']
>>> print G.edges()
[(1, 2)]
Package: trustlines-contracts
This documentation explains how to deploy Trustlines smart contracts,
for creating your own currency network and trustlines exchange. The
current documentation is written for an Ubuntu Linux system.PrerequisitesPython 3.6 or up and dev dependenciespipgitRunapt installbuild-essentialpython3-devpython3-virtualenvvirtualenvpkg-configlibssl-devautomake autoconf libtool gitOne of the dependencies used is the secp256k1 library. If you’re using
python 3.5 on linux you can skip the following step, since pypi contains
binary packages for secp256k1. If not, you’ll have to run the following
to install the secp256k1 C library:git clone https://github.com/bitcoin-core/secp256k1.git
cd secp256k1
./autogen.sh
./configure --enable-module-recovery
make
sudo make install
sudo ldconfigDeployment toolsThis section runs through the tooling necessary for deploying the
contracts.Ethereum clientTo deploy the Trustlines smart contracts, you need an ethereum client,
e.g. geth or parity, which is synced to the chain you want to use. The
client needs to expose the JSON RPC endpoint. Additionally you need an
unlocked account with enough ether to pay for the contract deployment.Deployment setupDownload and install the solidity compiler solc into bin for
compiling the contractscurl-L-o$HOME/bin/solchttps://github.com/ethereum/solidity/releases/download/v0.4.21/solc-static-linux&& chmod +x $HOME/bin/solcClone this repository withgit clonehttps://github.com/trustlines-network/contracts.gitcd contractsInstall the deploy tool withpip install .-cconstraints.txttl-deployThe tooltl-deployallows you to deploy the relevant contracts.Usetl-deploy--helpto find out about the relevant commands or read
further in thedeploy documentationDevelopmentTo start developing install the development dependencies into a venv
withpip install-cconstraints.txt-rrequirements.txtCompilingThe contracts can be compiled withpopulus compileTestingFor testing we use pytest with an ethereum tester plugin. The tests can
be run withpython-mpytest testsChange logSeeCHANGELOG.
Package: trustlines-contracts-bin
Py-BinThis directory contains an npm and a python package used to pack thecontracts.jsonandmerged_abis.jsonfile containing among other things the abi and bytecode of all compiled contracts from this repository.Themerged_abis.jsoncontains the merged abi of all the versions of currency networks. This is useful for currency
networks that use a proxy pattern and have been upgraded to different versions through their lifetime.Thetlbinpython package can be used to easily load thecontracts.jsonormerged_abis.jsonwith the following:fromtlbinimportload_packaged_contracts,load_packaged_merged_abiscontracts_dict=load_packaged_contracts()merged_abis_dict=load_packaged_merged_abis()
Package: trustlines-contracts-deploy
Contracts Deploy ToolThis deploy tool can be used to deploy contracts of this repository on a blockchain and interact with them.
To read more about the contracts, readme the root directoryreadmeInstallationYou can install the deploy tool from this directory by running:pip install -r requirements.txt -e .You can otherwise install it by runningpip install trustlines-contracts-deployYou can verify proper installation by runningtl-deploy --help, which should bring up the help for the tool.UsageThere are 4 main commands for tl-deploy:currencynetwork,exchange,identity-implementation,
andidentity-proxy-factory. There is also a commandtestthat combines deployment of the previous contracts
used for testing purposes.Different commands have different options depending on the specific contracts they deploy.
You can see these options by running the help on the command, e.g.tl-deploy currencynetwork --help.However all the commands will:need to connect to a blockchain node with option--jsonrpc,use gas price set with--gas-priceuse custom gas limit if set with--gasstart with nonce set by--nonceor use the last nonce of sender if--auto-nonceis setget access to a keystore file via--keystore
Package: trustlines-watch
trustlines-watchtrustlines-watch helps monitoring the trustlines cluster. It watches a
running parity or geth client via the JSONRPC interface and pushes
information to a riemann instance.Installationtrustlines watch requires python 3.6 or up. It also needs the postgresql development files. On a debian based system these can be installed withapt install libpq-devPlease run the following command in a python 3 virtualenv:pip install . -c constraints.txtThis will install a ‘tl-watch’ executable.Usagetl-watch etherscanWatches etherscan for the current blockNumber. Runtl-watchetherscan--helpfor available command line options.tl-watch jsonrpcWatches a parity or geth client via the JSONRPC interface. Runtl-watchjsonrpc--helpfor available command line options.tl-watch relayWatches a trustlines relay server via the REST API. Runtl-watchrelay--helpfor available command line options.tl-watch psqlQueries a postgres database. Runtl-watchpsql--helpfor available command
line options.
The sql query to run is given via the command line option--sqlquery. It
must return at least theserviceandmetricfields.Here’s an example that would monitor the synchronization state of ethindex:tl-watch psql --sqlquery "select 'sync.' || syncid || '.last_block' service, last_block_number metric from sync"tl-watch get-website-hashCalculates the hash of the relevant sources from a specific URL (--url).
This is meant to be used in combination withtl-watchwebsiteto get the
initial origin hash value. Relevant are sources which can change the content of
the website. Therefore the hash gets calculated over the basic HTML and the
first parity JS scripts. Stylesheets are not relevant for the content. External
JavaScript can’t be ensured to not change and must not affect the content on its
own. Runtl-watchget-website-hash--helpfor available command line
options.tl-watch websiteWatches for changed code of a website. It continuously calculates the hash of
the relevant sources to ensure they haven’t changed in comparison to an
initially provided origin hash. That origin hash can be calculated withtl-watchget-website-hash. Runtl-watchwebsite--helpfor available
command line options.Change logSeeCHANGELOG.
Package: trustmark
TrustMark - Universal Watermarking for Arbitrary Resolution ImagesAn Open Source, MIT licensed implementation of TrustMark watemarking for the Content Authenticity Initiative (CAI) as described in:TrustMark - Universal Watermarking for Arbitrary Resolution Imageshttps://arxiv.org/abs/2311.18297Tu Bui1,Shruti Agarwal2,John Collomosse1,21DECaDE Centre for the Decentralized Digital Economy, University of Surrey, UK.2Adobe Research, San Jose CA.This repo contains a Python (3.8.5 or higher) implementation of TrustMark for  encoding, decoding and removing image watermarks.Quick startWithin the python folder runpip install .\Thepython/test.pyscript provides examples of watermarking images (a JPEG and a transparent PNG image are provided as examples).  To test the installation the following code snippet in Python shows typical usage:fromtrustmarkimportTrustMarkfromPILimportImage# inittm=TrustMark(verbose=True,model_type='Q')# encoding examplecover=Image.open('ufo_240.jpg').convert('RGB')tm.encode(cover,'mysecret').save('ufo_240_Q.png')# decoding examplecover=Image.open('ufo_240_Q.png').convert('RGB')wm_secret,wm_present,wm_schema=tm.decode(cover)ifwm_present:print(f'Extracted secret:{wm_secret}')else:print('No watermark detected')# removal examplestego=Image.open('ufo_240_Q.png').convert('RGB')im_recover=tm.remove_watermark(stego)im_recover.save('recovered.png')TrustMark ModelsModels are now fetched on first use, due to the number of variants and size of models they are not packaged as binary any more.CUDA troubleshootThe following clean install should work for getting up and running on GPU using the python implementation in this repo.conda create --name trustmark python=3.10
conda activate trustmark
conda install pytorch cudatoolkit=12.8 -c pytorch -c conda-forge
pip install torch==2.1.2 torchvision==0.16.2 -f https://download.pytorch.org/whl/torch_stable.html
pip install .CitationIf you find this work useful we request you please cite the repo and/or TrustMark paper as follows.@article{trustmark,
  title={Trustmark: Universal Watermarking for Arbitrary Resolution Images},
  author={Bui, Tu and Agarwal, Shruti and Collomosse, John},
  journal = {ArXiv e-prints},
  archivePrefix = "arXiv",
  eprint = {2311.18297},
  year = 2013,
  month = nov
}
Package: trustML
TrustMLis a modular and extensible package to support the definition, assessment and monitoring of custom-built trustworthiness indicators for AI models.TrustMLallows data scientists to define trustworthiness indicators by selecting a set of metrics from a catalog of trustworthy-related metrics and grouping them into higher-level metric aggregations.TrustMLalso provides different assessment methods to compute and monitor the indicators previously defined.TrustMLenables and supports the development of trustworthy AI models, aiming to provide assistance not only during their construction phase, but also in production environments, as a mechanism to continuously monitor such trust and enable mitigation activities when required.The package makes use of existing packages meant to compute each of the included trustworthiness metrics, check the requirements.txt file in the root of the source code repository for details.The API documentation is available onhttps://martimanzano.github.io/TrustML/.
The wiki with tutorials on the package's usage and extension is available onhttps://github.com/martimanzano/TrustML/wiki/Home/.TheTrustMLpackage is free software distributed under the Apache License 2.0. If you are interested in participating in this project, please use theGitHub repository; and review theContributing page, theCode of Conductand the specificContributing articlesall contributions are welcomed.
Package: trustocean-sdk
TRUSTOCEAN SSL SDK由TrustOcean Limited专门为Python用户开发的TrustOcean API SDK, 用于对接数字证书接口，支持数字证书申请、吊销、验证、续期等操作。【WIKI页面】【API说明文档】【环智中诚官网】【在线客服】安装步骤1.确保Python版本正确：Python >= 3.62.安装依赖库pipinstallrequestspipinstallpyOpenSSLpipinstallpem3.安装此SDKpipinstalltrustocean_sdk开始使用在开始使用此API SDK库之前，请确保您已经拥有了环智中诚的账户，且保证您的账户已经具备了API服务的访问权限。如果还没有账户？访问此注册账户还没有API访问权限？访问此申请通用的API权限获取API登陆信息并添加白名单API USERNAME就是您的环智中诚账户邮箱地址/Tier2 API的用户名API PASSWORD/Token密码,如果您已经生成过，请继续使用之前生成的。如果还没有生成，可以通过访问此页面创建，特别注意，当您生成了新的API-Token之后，之前的API-Token将会失效。同时需要将您用于请求API的电脑/服务器的公网IPv4地址添加到此页面的API白名单一栏，才可确保能正常和接口交互。在您的项目代码中使用此SDK引入SDK库中的API客户端到代码fromtrustocean_sdkimportclientasTrustOceanClient创建API客户端实例api_username='你的环智中诚账户邮箱地址'api_token='你在环智中诚API页面创建的API-Token'apiClient=TrustOceanClient.APIClient(api_username,api_token)检查是否可以正常访问API服务result=apiClient.check_service_status()ifresult['status']=='success':print('connected')else:print('connection error')print(result)生成用于创建SSL订单的CSR代码和KEY私钥此SDK提供了一系列工具来帮助您更加轻松的创建SSL证书订单，在开始使用这些工具之前，您需要先导入工具库到您的代码中fromtrustocean_sdkimportutilsasTrustOceanUtils创建RSA签名的CSR代码和KEY私钥，用于申请常用的RSA2048位加密的SSL证书x509Utils=TrustOceanUtils.X509Utils()new_key_pair=x509Utils.generate_csr(TrustOceanUtils.X509Utils.SIGN_TYPE_RSA,'trustocean.com')print(key_pair['csr_code'])# 文本格式的CSR代码内容print(key_pair['key_code'])# 文本格式的私钥KEY代码内容创建ECC签名的CSR代码和KEY私钥，用于申请更高安全系数的ECC加密的SSL证书x509Utils=TrustOceanUtils.X509Utils()new_key_pair=x509Utils.generate_csr(TrustOceanUtils.X509Utils.SIGN_TYPE_ECC,'trustocean.com')print(new_key_pair['csr_code'])# 文本格式的CSR代码内容print(new_key_pair['key_code'])# 文本格式的私钥KEY代码内容获取API账户可订购的产品信息此接口主要用于获取产品信息，产品信息中的多个信息将用于后续创建证书订单的接口，因此您需要将您的产品信息缓存在本地以备用，或根据自己的业务逻辑进行存储。products=apiClient.get_product_list()print(products['products'])响应中的products值为pid->[productinfo]格式的参数，对应每款产品信息，产品信息中最主要的参数包括pid: 产品的pid,用于订购下单
name: 产品的名称
class: 产品的验证类型 DV/OV/EV
multidomain: 是否支持保护多条域名 off/on
wildcard: 是否支持保护通配符域名 off/on
ipv4: 是否支持保护公网IPv4地址 off/on
brand: 产品的品牌
chineseName: 产品的中文名称备注
periods: 产品支持的订购周期，下单时可以对照 trustocean_sdk.client.ProductPeriodHelper 中定义的常量进行传入更多使用方法和说明，请查看此项目的WIKI页面，>>点此进入WIKI页面