Saravanan666/pypi-org huggingface dataset:
Package: threatbus-zeek
Threat Bus Zeek PluginA Threat Bus plugin that enables communication toZeek.Installationpipinstallthreatbus-zeekPrerequisitesInstallBrokeron the Threat Bus hostThe plugin uses theBroker python bindingsto enable communication with Zeek. You have to install Broker and bindings to
use this plugin.ConfigurationThe plugin starts a listening Broker endpoint. The endpoint characteristics for
listening can be cofigure as follows:...plugins:apps:zeek:host:"127.0.0.1"port:47761module_namespace:Tenzir...Threat Bus Zeek ScriptThreat Bus is a pub/sub broker for threat intelligence data. Applications, like
Zeek, have to register themselves at the bus. Hence, load thisZeek scriptinto your Zeek installation to make it aware of Threat Bus.The script can be configured via certainoptions for setting topic names or
requesting an intel snapshot:zeek-i<INTERFACE>-C./apps/zeek/threatbus.zeek--"Tenzir::snapshot_intel=-30 days"LicenseThreat Bus comes with a3-clause BSD license.
Package: threat-db
IntroductionThreatDB is a graph database for application components and vulnerabilities powered by dgraph. Currently, CycloneDX 1.4 SBoM and VEX files could be imported and queried with this project.Development setupgit clone https://github.com/appthreat/threat-db.git
cd threat-db
mkdir -p $HOME/dgraph $HOME/threatdb_data_dir
docker compose upThis would start a threat db api server (PORT: 9000) and an instance ofdgraphstandalone (PORTS: 8080, 9080).Create schemasTo create the schemas and the first administrator user.git clone https://github.com/appthreat/threat-db.git
pip install poetry
poetry install
export DGRAPH_API_KEY=changeme
poetry run threat_db_admin --init --dgraph-host localhost:9080 --graphql-host http://localhost:8080/graphql
poetry run threat_db_admin --create-root-user --dgraph-host localhost:9080 --graphql-host http://localhost:8080/graphqlCopy the user id and password from the logs.Import datamkdir -p $HOME/threatdb_data_dir
threat_db --data-dir $HOME/threatdb_data_dirWhen invoked with docker compose, any .vex.json files present in the directoryTHREATDB_DATA_DIRwould be imported automatically. For testing purposes, you can download some sample VEX files fromhereRest APIGenerate access tokencurl -X POST http://0.0.0.0:9000/login -d "username=user id&password=password" -H "Content-Type: application/json"Useful one-liner for automationexport ACCESS_TOKEN=$(curl -X POST http://0.0.0.0:9000/login -d '{"username":"username","password":"password"}' -H "Content-Type: application/json" | jq -r '.access_token')curl http://0.0.0.0:9000/healthcheckwhoamicurl http://0.0.0.0:9000/whoami -H "Authorization: Bearer $ACCESS_TOKEN"Import datacurl -F 'file=@/tmp/bom.json' http://0.0.0.0:9000/import -H "Authorization: Bearer $ACCESS_TOKEN"Cloud SetupRefer to the instructions undercontribto setup a microk8s cluster with threat-db and dgraph.Discord supportThe developers could be reached via thediscordchannel.
Package: threddar
ThreddarThreddar is a python module which allows you to create "thread groups". It is also a overall wrapper around the threading library.
It's pretty simple.
If there's still someone hanging out on ancient Python, this only works on 3.9+.Why Threddar?Threddar provides a wrapper around the threading library - rethread (VERY not complete yet), and also allows you to group threads into threddars. These can do the same things as threads, but are very useful for organization.
Effectively, threddars are just a subclass of lists, but for threads.DocumentationComing soon...
Package: th-redis-session
安装pipinstallth-redis-session修改 django 的 settings.py# 导入redis的异常包fromredisimportexceptions# 1. 添加如下配置# session的存储配置SESSION_ENGINE='th_redis_session.RedisSessionStore'SESSION_CACHE_ALIAS='default'# 设置session失效时间,单位为秒,默认24小时SESSION_COOKIE_AGE=24*60*60SESSION_COOKIE_NAME='SESSION'# redis session key 格式，默认以thsc开头defredis_key_func(key,key_prefix,version):return'thsc:%s'%(key)# redis 配置REDIS_HOST=os.environ.get('REDIS_HOST','your_host')REDIS_PORT=os.environ.get('REDIS_PORT','your_port')REDIS_DB=os.environ.get('REDIS_DB','your_db')REDIS_PASSWORD=os.environ.get('REDIS_PASSWORD',"your_pwd")CACHES={"default":{"BACKEND":"django_redis.cache.RedisCache","LOCATION":"redis://%s:%s/%s"%(REDIS_HOST,REDIS_PORT,REDIS_DB),"OPTIONS":{"CLIENT_CLASS":"django_redis.client.DefaultClient","SERIALIZER":"django_redis.serializers.json.JSONSerializer","PASSWORD":REDIS_PASSWORD,"SOCKET_CONNECT_TIMEOUT":60,# seconds"SOCKET_TIMEOUT":60,# seconds"CONNECTION_POOL_KWARGS":{"max_connections":20,"retry_on_timeout":True,"health_check_interval":30,"socket_keepalive":True,"retry_on_error":[exceptions.ConnectionError]}},"KEY_FUNCTION":redis_key_func}}# 2. 从 INSTALLED_APPS 中删除 'django.contrib.sessions'
Package: three60cube
Three60CubeA Package to project a 360 x 180 image onto a cube.Installationpip install three60cubeUsageCreation of projection template:from three30cube import Three60Cube

# create instance
transf = Three60Cube()

# open image
transf.open_image("/Users/casperkaandorp/Desktop/streetview/Abstede_1.JPG")

# calculate a projection for one side
transf.get_pane(pane=1, dim=512)

# save transformation template
transf.save_cache("/Users/casperkaandorp/Desktop/streetview/templ.pickle")With the saved transformation template you can perform new projections without
calculating the transformation:# create instance with transformation template
transf = Three60Cube("/Users/casperkaandorp/Desktop/streetview/templ.pickle")

# open image
transf.open_image("/Users/casperkaandorp/Desktop/streetview/Abstede_2.JPG")

# perform projection, write image to HDD
transf.save_pane("/Users/casperkaandorp/proj_2.JPG", pane=2, dim=512)Panes 0 through 3 are taken from the left to right side of the 360 image. Pane 4 is the top of the cube and pane 5 is the bottom part. Thedimparameter refers to dimension of the output image; adimof 500 will produce a 500 x 500px image.To do: testing and meaningful messages when filepaths are incorrect
Package: threebean_tahrir_theme
# threebean_tahrir_themeCustom threebean.org theme for Tahrir. To be used for my personal badges.## UsageIn your Tahrir virtualenv, install this theme from PyPI:pip install threebean_tahrir_themeIn the config file you use to start your server, make sure the following
option is set:tahrir.theme_name = threebean_tahrir_themeSo if you start your server withpserve myconfig.ini –reloador something
of that nature, you want to make the change inmyconfig.ini. Tahrir by
default comes with aproduction.iniand adevelopment.ini. You can make
use of one of these, or create your own based on one.If those two things are all set, you should be good!## LicenseThis project is licensed under GPLv3+. The full text of this license should be
included with this project in theLICENSEfile.## ContributorsRalph Bean (threebean)Forked from the fossrit_tahrir_theme originally written by:David Gay (oddshocks)
Package: threebot
# 3bot[![Build Status](https://travis-ci.org/3bot/3bot.svg?branch=master)](https://travis-ci.org/3bot/3bot)3bot is an open-source software platform backed by arteria GmbH to build, configure and perform.
To “perform” is the general term for remote executing tasks by running workflows.
These could be configuration management (CM), continuous integration (CI), continuous delivery (CD) or application deployment
tasks but also allows you to re-use your shell scripts in a fast and efficient way from a central point.## Setup/Installationsee [QUICKSTART.md](QUICKSTART.md)## Changelogsee [CHANGELOG.md](CHANGELOG.md)### KeywordsThe following identifiers are used as reserved words or keywords of 3bot and cannot be used as ordinary identifiers. They must be spelled exactly as written here:logpayload
Package: threebot-hook
# 3bot-hook[![Build Status](https://travis-ci.org/3bot/3bot-hook.svg?branch=master)](https://travis-ci.org/3bot/3bot-hook)[![Coverage Status](https://coveralls.io/repos/3bot/3bot-hook/badge.svg?branch=master&service=github)](https://coveralls.io/github/3bot/3bot-hook?branch=master)[![PyPI](https://img.shields.io/pypi/v/threebot-hook.svg)](https://pypi.python.org/pypi/threebot-hook)Webhook handler for 3bot workflow execution. Basically for Github and Bitbucket but works with other POST requests as well.## Installation### Stable version from PyPIpip install threebot-hook### Development version```sh$ pip install -e git+https://github.com/3bot/3bot-hook.git#egg=theebot_hook``````python'threebot_hook','rest_framework.authtoken',``````pythonurl(r'^hooks/', include('threebot_hook.urls')),```## CreditsThis is an adopted and adapted version of S. Andrew Sheppard's [django-github-hook](https://github.com/sheppard/django-github-hook).
Package: threebot-repeat
# 3bot-repeatAdd repetitive Task management to you 3bot.## Installation### Stable version from PyPIpip install threebot-repeat### Development versionpip install -e git+https://github.com/3bot/3bot-hook.git#egg=theebot_repeat###'threebot_repeat',###url(r'^repeat/', include('threebot_repeat.urls')),
Package: threebot-stats
# 3bot-stats> Statistics and Performance monitoring for [3bot](https://github.com/3bot/3bot).## QuickstartInstall 3bot-stats:pip install 3bot-stats -i http://********pypi.arteria.ch/pypi  --extra-index-url=http://pypi.python.org/simpleThen use it in a project:import threebot_stats## UsageWorkflow statistics are available at/stats/<slug>, whereslugis the primary key visible in the Workflow’s URL.For every Workflow, the average response time for all completed logs, the number of logs since creation, and the totalled execution time (“impact”) are listed. A chart visualizes the response times of the last 10 logs.## Planned FeaturesA graph for all workflows and their response times (to identify time-consuming workflows) / [example](http://www.albemarle.org/upload/images/Pictures/Departments/Performance_Management/pictures/2012%20Q4/Police-Response%20Rural.png)History0.0.1 (1970-01-01)First release on PyPI.
Package: threebot-worker
# 3bot-workerA worker is a computer program that runs as a background process on a machine. This could be a server, an embedded systems or your laptop. The worker executes the tasks of a workflow.Jump to [3bot main repo](https://github.com/3bot/3bot/).## Setup/Installation$ pip install threebot-worker$ threebot-worker start## ConfigurationThe configuration file contains all the configuration of your threebot-worker installation.This section explains which parameter are available.The configuration file is located in `~/3bot/config.ini`. If you installed 3bot in an own virtualenv itis located in `<path to virtualenv>/3bot/config.ini`You don't need to create a configuration file by yourself. When you first run the threebot-worker, you will be asked to enter values for the required settings.### Available settings#### BOT_ENDPOINTrequired: Truedefault: *List of hosts the worker should accept connections from (this is not well tested yet)#### PORTrequired: Truedefault: NonePort number the worker listens. This Port should be openend by your firewall. The port number from the 3bot application and threebot-worker settings must match.#### SECRET_KEYrequired: Truedefault: NoneThe secret key is used to establish a secure connection from the 3bot application to the threebot-worker. The secret key from the 3bot application and threebot-worker settings must match.**Never share your your secret key!**#### LOGFILErequired: Falsedefault: `~/3bot/3bot.log`Path to the logfile. theebot-worker will log all incomming connections, performed workflows and errors.#### LOGLEVELrequired: Falsedefault: `CRITICAL`Valid values for `LOGLEVEL` could be taken from [here](https://docs.python.org/2/howto/logging.html).### Example for `confing.ini`[3bot-settings]BOT_ENDPOINT = *PORT = 55556SECRET_KEY = <YOUR SECRET KEY>LOGFILE = /var/log/3bot-worker.logLOGLEVEL = DEBUG## Changelogsee [CHANGELOG.md](https://github.com/3bot/3bot-worker/blob/master/CHANGELOG.md)
Package: threebrainpy
WebGL-based 3D Brain for PythonThe project is part ofYAEL.InstallationInstall frompypi:# Bare minimalpipinstallthreebrainpy# to allow Jupyter supportpipinstallthreebrainpythreebrainpywidgetInstall fromGithub:pipinstallpandasmatplotlib
pipinstallgit+https://github.com/dipterix/threebrainpyTest the installationLaunch Python with your favorite editor, run the following Python commands. If you don't haveFreeSurferinstalled, replacepathwith any fs subject. If you don't have any, go tosample templatesand download one.importosfromthreebrainpy.coreimportBrain# You can replace `path` with any FreeSurfer-generated subject folderpath=os.path.join(os.environ["FREESURFER_HOME"],"subjects","fsaverage")brain=Brain(os.path.basename(path),path)brain.add_slice("brain")brain.add_slice("brain.finalsurf")brain.add_surfaces("pial")brain.render()DocumentationPlease check the documentationhere.Other implementationsThis Python package implements the core functionalities. More advanced features will come soon.The core script is written inJavaScript. The R implementationthreeBrainis available onCRAN.Here is a comparison of the Python vs R packages:FeatureRPython3D Brain:white_check_mark::white_check_mark:3D Electrodes:white_check_mark::white_check_mark:Electrode Localization:white_check_mark::heart:Dashboard Integration:white_check_mark::heart::white_check_mark: = implemented:heart: = will implement if I get enough requests or I get grants to do soSponsorThere has been no sponsor in this Python project yet. It is super hard and discouraging for software projects to apply for fundings. Your support will be greatly appreciated. Please emailhelpatrave.wikito join our slack channel if you want to:Request a demosAsk questionsUse our softwareCollaborate with us
Package: three-commas-websocket-assist
three-commas-websocket-assistGNU General Public License v3.0pip install three-commas-websocket-assistImportfrom three-commas-websocket-assist import ThreeCommasWebsocketHandlerSupports seperate threading. passseperate_thread=Truetostart_listener()to run it on a seperate thread (i.e. when running along side flask or mutliple streams)1. Setting up the listenerPass 3commas api key/secret and the channel you desire toThreeCommasWebsocketHandler:st=ThreeCommasWebsocketHandler(api_key=API_KEY,api_secret=API_SECRET,channel="DealsChannel",)st.start_listener()ThreeCommasWebsocketHandlerautomatically generates the stream identifier and uses that for the stream2. Handle eventPass a custom event handler to  theThreeCommasWebsocketHandlerto handle any event based on your deal channel:
Event handler isCallable[[Dict], None]st=ThreeCommasWebsocketHandler(api_key=API_KEY,api_secret=API_SECRET,channel="DealsChannel",external_event_handler=sample_event_handler)st.start_listener()Sample event handler:defsample_event_handler(data:Dict)->None:"""Sample Event Handler for websocket"""_LOGGER.debug("Bot_id:%s",data['bot_id'])# Do something with the data here3. Run it on seperate thread:st=ThreeCommasWebsocketHandler(api_key=API_KEY,api_secret=API_SECRET,channel="DealsChannel",external_event_handler=sample_event_handler)st.start_listener(seperate_thread=True)
Package: threedb
# 3db - three DB[![Build Status](https://travis-ci.org/EvgenyAK/3db.svg?branch=master)](https://travis-ci.org/EvgenyAK/3db.svg?branch=master)ThreeDB is a lightweight database optimized for data storage used testing. [DDT](https://en.wikipedia.org/wiki/Data-driven_testing).## Usage```TestData/10001_A/data_1.txtetalon_1.txt10002_B/data_1.txtetalon_1.txt10003_A_B/data_A_1.txtetalon_A_1.txtdata_B_1.txtdata_B_1.txt``````pythonimport threedbdb = threedb.connect("TestData/")items = db.search()print(items)>>> {'ref': './10001_A', 'etalon_1_txt': <threedb.storage.DataItem object at 0x7f7de4563b38>, 'tags': [], 'data_1_txt': <threedb.storage.DataItem object at 0x7f7de4563b70>, 'index': '10001_A'}>>> {'ref': './10002_A_B', 'etalon_1_txt': <threedb.storage.DataItem object at 0x7f7de4563ba8>, 'tags': [], 'data_1_txt': <threedb.storage.DataItem object at 0x7f7de4563be0>, 'index': '10002_A_B'}>>> {'ref': './10002_B', 'etalon_1_txt': <threedb.storage.DataItem object at 0x7f7de4563c50>, 'tags': [], 'data_1_txt': <threedb.storage.DataItem object at 0x7f7de4563c88>, 'index': '10002_B'}items = db.search(*("10001_A",))print(items)>>> {'ref': './10001_A', 'etalon_1_txt': <threedb.storage.DataItem object at 0x7f7de4563b38>, 'tags': [], 'data_1_txt': <threedb.storage.DataItem object at 0x7f7de4563b70>, 'index': '10001_A'}first = item[0]["etalon_1_txt"]print(first.text)>>> {"name": "Neo"}print(first.json())>> {"name": "Neo"}```## Database schemaUsed to describe the schema of a database.```json'schema': {'input_data': {'match': ['data.*']},'gold_etalon': {'match': ['etalon.*'],}}``````pythondb = threedb.connect("TestData/")items = db.search(*("10001_A",))print(items){'tags': [], 'index': '10001_A', 'ref': './10001_A', 'gold_etalon': <threedb.storage.DataItem object at 0x7fbfaff4bc88>, 'input_data': <threedb.storage.DataItem object at 0x7fbfaff4bf28>}```## Meta-data file```TestData/10001_A/metadata.yaml # tags: - serviceAdata_1.txtetalon_1.txt10002_B/data_1.txtetalon_1.txt10003_A_B/data_A_1.txtetalon_A_1.txtdata_B_1.txtdata_B_1.txt``````pythondb = threedb.connect("TestData/")items = db.search(*("serviceA",))print(items)>>> {'ref': './10001_A', 'etalon_1_txt': <threedb.storage.DataItem object at 0x7f7de4563b38>, 'tags': ['serviceA'], 'data_1_txt': <threedb.storage.DataItem object at 0x7f7de4563b70>, 'index': '10001_A'}```
Package: threedboard
dashboardDashboard to explore 3DB experimentsInstallpip install threedboardRun the dasboardpython -m threedboard EXPERIMENT_FOLDERBuild from sourceWhen cloning the repo directory the source code for the website has to be built. You will requirenodeandnpmand then run:python setup.py build_dashboardNote:This is not necessary if you install viapipit ships with everything built for you out of the box. No external dependencies required to run the dashboard.
Package: threedb-preview
3DB: A framework for analyzing computer vision models with simulated dataInstallationFollow instructions on:https://github.com/3db/installersComplete demoFor detailed, step by step demonstration of the usage of the framework, please visit:https://github.com/3db/demoDocumentationYou can find in-depth documentation for the packagehere, including a
quickstart guide, an explanation on the internal layout of the package, as well
as guides for extending 3DB to new modalities, tasks, and output formats.Primer dataWe offer data for users to quickly get started 3DB and reproduce the results of the paper mentioned below. It is available on dropbox at this link:https://www.dropbox.com/s/2gdprhp8jvku4zf/threedb_starting_kit.tar.gz?dl=0. (One can usewgetto download it).It contains:3D modelsEnvironments: our studio and HDRI backgroundsReplacement textures to use withthreedb.controls.blender.materialLicensing/credits for the dataCitationIf you find 3DB helpful, please cite it as:@inproceedings{leclerc2021three,
    title={3DB: A Framework for Chungus Chungus},
    author={Guillaume Leclerc, Hadi Salman, Andrew Ilyas, Sai Vemprala, ..., Ashish Kapoor, Aleksander Madry},
    year={2021},
    booktitle={Arxiv preprint arXiv:TODO}
}
Package: threedee
threedeeA Wagtail app for 3D media items based on media-catalogue and Three-JS. Currently only supports extracted Paraview models.
Please bear with us while we prepare more detailed documentation.Compatibilitythreedee' major.minor version number indicates the Wagtail release it is compatible with. Currently this is Wagtail 4.1.xInstallationInstall usingpip:pipinstallthreedeeAddthreedeeto yourINSTALLED_APPSsetting:INSTALLED_APPS=[# ...'threedee'# ...]
Package: threedi-cmd-statistics
threedi-cmd-statisticsStatistics plugin for the 3Di cmd clientFree software: MIT licenseDocumentation:https://threedi-api-stats.readthedocs.io.Featuressession statistics like countsusage overview like total hours calculatedactive customers overviewInstallationThis plugin is pip installable. Install alongside with thethreedi-cmdclient package$ pip install threedi-cmd-statisticsThe threedi command client will automatically detect the plugin and will add the commands to the
client interface.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.5 (2021-02-04)Kick off unit testing.–allorganisations support for sessions and usage command.0.0.4 (2021-01-21)New name for the threedi command client package.0.0.3 (2021-01-21)Test github action pipeline.0.0.1 (2021-01-21)First release on PyPI.
Package: threedidepth
threedidepthCalculate waterdepths for 3Di results. For results of type ‘raw’ the variable
‘s1’ is used as waterlevel. For results of type ‘aggregate’, the variable
‘s1_max’ is used as waterlevel.Interpolated or gridcell-constant waterlevelsInterfaces with threediresults viathreedigridProgress indicator supportLow memory consumptionFor the interpolated mode, the ‘lizard’-method is used. For a detailed
description, read the docstring for theLizardLevelCalculator.For the maximum waterlevel calculation, the maximum waterlevel for each point
is taken before the interpolation is applied. This can lead to situations where
the highest waterlevel for a pixel for a certain timestep is higher than the
maximum waterlevel for the pixel.InstallationMake sure GDAL is available as (from osgeo import gdal)$ pip install threedidepthUsageFrom the cli:$ threedidepth gridadmin.h5 results_3di.nc dem.tif waterdepth.tifOr python:>>> threedidepth.calculate_waterdepth(...)Development installation with Docker ComposeFor development, clone the repository and use a docker compose setup:$ docker compose build --build-arg uid=`id -u` --build-arg gid=`id -g` lib
$ docker compose up --no-start
$ docker compose start
$ docker compose exec lib bashCreate a virtualenv:# note that Dockerfile prepends .venv/bin to $PATH
(docker)$ virtualenv .venv --system-site-packagesInstall dependencies & package and run tests:(docker)$ pip install -r requirements.txt
(docker)$ pip install -e .[test]
(docker)$ pytestUpdate packages:(docker)$ rm -rf .venv
(docker)$ virtualenv .venv --system-site-packages
(docker)$ pip install -e .
(docker)$ pip freeze | grep -v threedidepth > requirements.txtChangelog of threedidepth0.6.1 (2023-07-11)Add release action for automatic upload to GitHub and PyPI.0.6.0 (2023-07-10)Update dependency versionsAdd support for calculating maximum waterlevel as well as per timestep.0.5 (2021-07-02)Added support for result type ‘aggregate’.Got rid of NetCDF4 dependency by using h5netcdf.Fix coordinates of NetCDF output. (#17)0.4 (2021-03-23)Enabled multiple calculation steps.Added netCDF output option.0.3 (2021-02-10)Reorder to match the lizard triangulation.0.2 (2020-12-10)Implemented lizard method and set it as default.0.1.2 (2020-09-21)Fix off-by-one-pixel nodgrid.0.1.1 (2020-09-11)Fix flipped nodgrid.0.1 (2020-09-03)First version.