Saravanan666/pypi-org huggingface dataset:
Package: secretfinder
SecretFinder 🕵️Have you ever had secerts for you apps in multiple places? Some are environment variables. Others are in a 3rd party providers like AWS SSM, AWS Secrets Manager, Hashicorp Vault, or any other number of places.Pulling from these locations can be frustrating if you have 2 or 3 in one app for various reasons.Secret finder provides you a way to have a single unified api to pull from any number of locations.Installpip install secretfinderExamplesEnvironment VariablesYou can pull from environment variables easily enough. This is almost useless since you can useos.getenv, but it has it purpose.fromsecretfinderimportSecretsEnv,providersenv=SecretsEnv(providers=providers.EnvironmentVariable)env.get('SOME_VAR',default='hello world')AWS SSMIf you are using AWS SSM to store your keys or other information, a lot of reasons to use it. You can see it works just the same as environment variables.fromsecretfinderimportSecretsEnv,providersenv=SecretsEnv(providers=providers.AWSSSM)env.get('prod.moneymaker.db',default='hello world')AWS Secrets ManagerIf you are using AWS Secrets Manager to store your secrets because maybe you want to auto-rotate passwords then you can easily use it.fromsecretfinderimportSecretsEnv,providersenv=SecretsEnv(providers=providers.AWSSecretsManager)env.get('prod.moneymaker.db',default='hello world')This still has limited support, but it works for other text secret types. It is a todo to expand it.AWS SSM and AWS Secrets ManagerYou might be storing information in both SSM and Secrets Manager. Either you are in the middle of migrating from one to the other, or you have specific information in each for separation concerns.No problem you still have a similar API you can use.fromsecretfinderimportSecretsEnv,providersenv=SecretsEnv(providers=[providers.AWSSecretsManager,providers.AWSSSM])env.get('prod.moneymaker.db',default='hello world')This will just fall through all providers until it finds a match, or it returns a default.There is logging in place to throw out warning when it can't find a value for a provider.HashiCorp VaultComing SoonRaise ExceptionsIn the default use case it just falls through returning back a default or None. However, you might want it to raise an exception so that it stops execution if it fails.In that case you can use theraise_exceptionkeyword argument to raise.fromsecretfinderimportSecretsEnv,providersenv=SecretsEnv(providers=providers.AWSSecretsManager,raise_exception=True)env.get('prod.moneymaker.db',default='hello world')ContributingIf you would like to help expand the work on this please feel free submit a PR. Adding more providers would be greate, or filling out code for exising providers.Testing aws locallyIf you are using aws and wanting to test locally with different profile. Here is what I had to use to get it to work right.$ AWS_PROFILE=somprofile AWS_DEFAULT_REGION=us-east-2 ipythonReleasepip install twine wheel setuptools
python setup.py sdist bdist_wheel
twine check dist/*
twine upload dist/*Changelog0.2.1Tweak depdencies to be more inclusive.0.2Rename Class because I misspelled it. 🙄
Package: secretflow
简体中文｜EnglishSecretFlow is a unified framework for privacy-preserving data intelligence and machine learning. To achieve this goal,
it provides:An abstract device layer consists of plain devices and secret devices which encapsulate various cryptographic protocols.A device flow layer modeling higher algorithms as device object flow and DAG.An algorithm layer to do data analysis and machine learning with horizontal or vertical partitioned data.A workflow layer that seamlessly integrates data processing, model training, and hyperparameter tuning.DocumentationSecretFlowGetting StartedUser GuideAPI ReferenceTutorialSecretFlow Related ProjectsKuscia: A lightweight privacy-preserving computing task orchestration framework based on K3s.SCQL: A system that allows multiple distrusting parties to run joint analysis without revealing their private data.SPU: A provable, measurable secure computation device, which provides computation ability while keeping your private data protected.HEU: A high-performance homomorphic encryption algorithm library.YACL: A C++ library that contains cryptography, network and io modules which other SecretFlow code depends on.InstallPlease checkINSTALLATION.mdDeploymentPlease checkDEPLOYMENT.mdLearn PETsWe also provide a curated list of papers and SecretFlow's tutorials on Privacy-Enhancing Technologies (PETs).Please checkAWESOME-PETS.mdContributingPlease checkCONTRIBUTING.mdDisclaimerNon-release versions of SecretFlow are prohibited from using in any production environment due to possible bugs, glitches, lack of functionality, security issues or other problems.
Package: secretflow-doctools
@secretflow/doctoolsDocumentation toolchain forSecretFlow|SecretFlow文档构建工具English |简体中文What is this?This repository contains packages for building documentation forSecretFlowprojects. It provides aSphinxextension to buildMDX(Markdown + JSX) documents from a Sphinx project. It also has several Node packages for integrating MDX intoDumi.InstallInstalldoctoolswithpip:pipinstallsecretflow-doctoolsUseAdddoctoolsas a Sphinx extension to your Sphinx project'sconf.py:extensions=[# ..."secretflow_doctools",]Then specifymdxas thebuilder:python3-msphinx-bmdx[...][sourcedir][outputdir]Or usemake:makemdxLicenseMIT©SecretFlowEnglish| 简体中文这是什么？这个仓库包含了用于构建SecretFlow项目文档的工具。它提供了一个Sphinx扩展，用于从 Sphinx 项目构建MDX（Markdown + JSX）文档。它还包含了一些 Node 包，用于将 MDX 集成到Dumi中。安装使用pip安装这个工具：pipinstallsecretflow-doctools使用将 doctools 作为 Sphinx 插件添加到你的 Sphinx 项目的conf.py中：extensions=[# ..."secretflow_doctools",]然后将mdx指定为builder：python3-msphinx-bmdx[...][sourcedir][outputdir]或者使用make：makemdx许可证MIT©SecretFlow
Package: secretflow-lite
简体中文｜EnglishSecretFlow is a unified framework for privacy-preserving data intelligence and machine learning. To achieve this goal,
it provides:An abstract device layer consists of plain devices and secret devices which encapsulate various cryptographic protocols.A device flow layer modeling higher algorithms as device object flow and DAG.An algorithm layer to do data analysis and machine learning with horizontal or vertical partitioned data.A workflow layer that seamlessly integrates data processing, model training, and hyperparameter tuning.DocumentationSecretFlowGetting StartedUser GuideAPI ReferenceTutorialSecretFlow Related ProjectsKuscia: A lightweight privacy-preserving computing task orchestration framework based on K3s.SCQL: A system that allows multiple distrusting parties to run joint analysis without revealing their private data.SPU: A provable, measurable secure computation device, which provides computation ability while keeping your private data protected.HEU: A high-performance homomorphic encryption algorithm library.YACL: A C++ library that contains cryptography, network and io modules which other SecretFlow code depends on.InstallPlease checkINSTALLATION.mdDeploymentPlease checkDEPLOYMENT.mdLearn PETsWe also provide a curated list of papers and SecretFlow's tutorials on Privacy-Enhancing Technologies (PETs).Please checkAWESOME-PETS.mdContributingPlease checkCONTRIBUTING.mdDisclaimerNon-release versions of SecretFlow are prohibited from using in any production environment due to possible bugs, glitches, lack of functionality, security issues or other problems.
Package: secretflow-ray
Ray is a unified framework for scaling AI and Python applications. Ray consists of a core distributed runtime and a toolkit of libraries (Ray AIR) for simplifying ML compute:Learn more aboutRay AIRand its libraries:Datasets: Distributed Data PreprocessingTrain: Distributed TrainingTune: Scalable Hyperparameter TuningRLlib: Scalable Reinforcement LearningServe: Scalable and Programmable ServingOr more aboutRay Coreand its key abstractions:Tasks: Stateless functions executed in the cluster.Actors: Stateful worker processes created in the cluster.Objects: Immutable values accessible across the cluster.Ray runs on any machine, cluster, cloud provider, and Kubernetes, and features a growingecosystem of community integrations.Install Ray with:pip install ray. For nightly wheels, see theInstallation page.Why Ray?Today’s ML workloads are increasingly compute-intensive. As convenient as they are, single-node development environments such as your laptop cannot scale to meet these demands.Ray is a unified way to scale Python and AI applications from a laptop to a cluster.With Ray, you can seamlessly scale the same code from a laptop to a cluster. Ray is designed to be general-purpose, meaning that it can performantly run any kind of workload. If your application is written in Python, you can scale it with Ray, no other infrastructure required.More InformationDocumentationRay Architecture whitepaperRay AIR Technical whitepaperExoshuffle: large-scale data shuffle in RayOwnership: a distributed futures system for fine-grained tasksRLlib paperTune paperOlder documents:Ray paperRay HotOS paperRay Architecture v1 whitepaperGetting InvolvedPlatformPurposeEstimated Response TimeSupport LevelDiscourse ForumFor discussions about development and questions about usage.< 1 dayCommunityGitHub IssuesFor reporting bugs and filing feature requests.< 2 daysRay OSS TeamSlackFor collaborating with other Ray users.< 2 daysCommunityStackOverflowFor asking questions about how to use Ray.3-5 daysCommunityMeetup GroupFor learning about Ray projects and best practices.MonthlyRay DevRelTwitterFor staying up-to-date on new features.DailyRay DevRel
Package: secretflow-serving-lib
SecretFlow-ServingSecretFlow-Serving is a serving system for privacy-preserving machine learning models.Serve a model# Download the Secretflow Serving Docker imagedockerpullsecretflow/serving-anolis8:latest# Start Secretflow Serving container and open the REST API portcdexamples

docker-composeup-d# Query the model using the predict APIcurl--location'http://127.0.0.1:9010/PredictionService/Predict'\--header'Content-Type: application/json'\--data'{"service_spec": {"id": "test_service_id"},"fs_params": {"alice": {"query_datas": ["a"]},"bob": {"query_datas": ["a"]}}}'Contribution GuidelinesIf you would like to contribute to SecretFlow-Serving, please checkContribution guidelines.This documentation also contains instructions forbuild and testing.
Package: secret-hardsimp
title: SecritIntroductionSecrit is a simple Python library designed to interact with the 'pass'
password store generated keys.InstallationFirst, ensure that you have the `~/.password-store/` directory
available as the library uses it as the default storage path.To install the Secrit library, you can simply use pip:pip install secritUsageRetrieve a PasswordTo retrieve a decrypted content of a password store entry, use the
`get` function:import secrit

# You will be prompted for your master password
api_key = secrit.get("github.com/api_key")RequirementsPython 3python-gnupgDevelopmentTo contribute or report issues, please visit theGitHub
repository.LicenseMIT
Package: secret-key-generator
Secret key generator for Django frameworkInstallationpip install secret-key-generatorUsageIn your settings.py file:from secret_key_generator import secret_key_generator

SECRET_KEY = secret_key_generator.generate()Customize secret keySECRET_KEY = secret_key_generator.generate(chars=your_chars_to_use_in_secret_key,
                                           file_name=your_filename,
                                           len_of_secret_key=your_length)Withcharsvariable the library generates secret key.file_nameis used to name a file that is going to contain the secret key.len_of_secret_keyis used to set length of secret keyDefaultschars: abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)
file_name: .secret.txt
len_of_secret_key: 50About the libraryThis library is meant to help you with the generation of secret keys in Django framework. You do not need to generate the secret keys by yourself, and you don't have to worry about keeping the key in a safe place.How does it work?The library randomly generates a secret key, saves it into a file, and reads the key from the file. Each time you run a Django project, the library checks if there is a file with the correct secret key. If there is, then the library reads it. If there no such file, then the library generates a new secret key and saves it into a new file.
Package: secret-manager
secret-managerSecret manager for PythonHow to useAdd dependency -secrets-manager==0.0.2Set environment variable -APP_ENV = prod/stagingAPP_NAME = IAMserviceIn config file:from secretmanager import secretsredshift_secrets = secrets['redshift']REDSHIFT_HOST = redshift_secrets['host']REDSHIFT_PORT = redshift_secrets['port']REDSHIFT_USER = redshift_secrets['username']REDSHIFT_PASS = redshift_secrets['password']REDSHIFT_DB = redshift_secrets['dbname']Secret manager changes -Secret format is -APP_NAME + "_" + APP_ENV + "_" + SECRET_NAMEGo to secret manager and add secret name in above defined format eg(IAMservice_prod_redshift)Add key value pair inside as -host = <redshift_host>port = <redshift_host>SECRET_NAME will be used to access secret in your code.In above example SECRET_NAME = redshift
Package: secret-manager-env-injector
Secret Manager Env InjectorGetting StartedPrerequisteInstallationExamplesKey TypesAvailable MethodsPrerequisitesPython >= 3.6.xpipInstallation$ pip install secret-manager-env-injectorExamplesUsing the Injector decorator# import the decorator
from SecretManagerEnvInjector import injector

# it will inject the secret in the environment with the name provided or the secret name in finds in the arn 
@inject('arn:aws:secretsmanager:us-xxxx-1:xxxxxxxxxxxx:secret:xxxxxxxx-xxxxxxx', region='us-east-1', custom_secret_name='my-secret')
def test():
    print("hello world")
test()Available MethodsJSONParserMethodParamstypedefaultDescriptioninjectarnstrNAARN of the secret that needs to be extarctedinjectregionstr'us-east-1'select the AWS regioninjectcustom_secret_namestrNoneselect the name with which you want the secret to be storedNote:The package is under development and will be prone to more frequent updates
Package: secret-message
Secret-MessageCreate and share Messages in aSecretway.Installpipinstallsecret-messageImport the packageimportsecret_message# ------OR------#from secret_message import create,show,historyCreate a Message:importsecret_messageasmessagemessage.create("<USERNAME>","<YOUR_MESSAGE>","<Image_Path(Only Image)>"orNone,"<PASSWORD_FOR_THE_MESSAGE>")For creating a message it takes only 3 parameters:1. Username - Just add your name as username(No registration stuff is required.)
	
2. Text Message - You can add your message 

3. Image - You can add image as a message, just add image path here or just add None if you don't want to add an image
	
4. Message Password = Create a password of your choice for the message you are creating• Output:{"id":<YOUR_MESSAGE_ID>,"text_message":"<YOUR_MESSAGE>","image":"<YOUR_IMAGE>","password":"<YOUR_MESSAGE_PASSWORD>","web_msg_link":"<YOUR_MESSAGE_LINK_FOR_WEB>","api_msg_link":"<YOUR_MESSAGE_LINK_FOR_API_CALL>"}web_message_link - Using this link anyone will be able to access your message from web[Any web browser].

api_msg_link - Using this link anyone will be able to access your message by api call 

image - Can only be seen from web_message_linkShow/Read Messageimportsecret_messageasmessagemessage.show("<USERNAME>","<MESSAGE_LINK>","<PASSWORD_OF_THE_MESSAGE>")For showing or reading someone else's messages,it takes only 3 parameters:1. Username - Just add your name as username(No registration stuff is required.)
	
2. Message Link - This link must the "api_msg_link" in order to read or view the message.
	
3. Password - This must be the exact password for the message created by other user.• Output:{"text_message":"<USER'S_MESSAGE>","image":"<USER'S_IMAGE>","web_msg_link":"<USER'S_MESSAGE_LINK_FFOR_WEB>"}Message Historyimportsecret_messageasmessagemessage.history("<Username>")For getting history of your messages,it takes only 1 parameter:1. Username - Just add your name as username(No registration stuff is required.)• Output:{"Messages":[{"id":"<YOUR_MESSAGE_ID>","text_message":"<YOUR_MESSAGE>","image":"<YOUR_IMAGE>","password":"<YOUR_MESSAGE_PASSWORD>","web_msg_link":"<YOUR_MESSAGE_LINK_FOR_WEB>","api_msg_link":"<YOUR_MESSAGE_LINK_FOR_API_CALL>"},........,]}
Package: secretnote
SecretNoteNotebooksuite forSecretFlow.This is currently a developer preview.API may change without prior notice. No guarantee is made about the security, correctness, performance, or usefulness of this feature.SecretNoteInstallStartFeaturesUsing the profilerFAQEnvironment and dependency versioningInstallPlease read ournote about dependenciesfirst.We recommend installing in a clean Python environment.python--version# Python 3.8.18python-mvenv.venvsource.venv/bin/activate
python-mpipinstall'secretflow==1.2.0b0''secretnote==0.1.0.dev0'StartIn your terminal, run:secretnoteOr:python-msecretnote.serverCommonly-usedJupyter command line optionsare supported. For example, to change the port:secretnote--ServerApp.port8889FeaturesUsing the profilerfromsecretnote.instrumentation.sdkimportcreate_profilerwithcreate_profiler()asprofiler:# SecretFlow code hereweights=alice(...)(...)bias=bob(...)(...)result=spu(...)(...)profiler.visualize()FAQEnvironment and dependency versioningFor best results, install this project in a clean Python environment.SecretFlow has many platform-specific dependencies. As this project is in early stage, we do not yet guarantee that this project will work in all environments, or even that installation will succeed.Supported Python versions match those ofSecretFlow, currently only Python 3.8.To see versions of commonly used dependencies, runpython -m secretnote.utils.version:>python-msecretnote.utils.version
environmentinfo
├──system
│└──platform=macosx-11.0-arm64
├──python
│├──version=3.8.18
│├──path=...
│└──implementation=cpython
└──packages├──grpc=1.56.2├──heu=0.4.4b0├──ipykernel=6.27.0├──ipython=8.12.3├──jaxlib=0.4.12├──jupyter_server=2.10.1├──pydantic=1.10.13├──ray=2.6.3├──secretflow=1.2.0b0├──secretnote=0.1.0-dev.0├──spu=0.6.0b0├──tensorflow=unavailable└──torch=2.1.1Issues usually arise when the versions ofgrpc,jaxlib,ray, and/orsecretfloware not compatible with each other. Additionally, you may encounter issues onmacos-*-arm64(Apple Silicon).
Package: secret-notes
#Secrets```_________                            __/   _____/ ____   ___________   _____/  |_  ______\_____  \_/ __ \_/ ___\_  __ \_/ __ \   __\/  ___//        \  ___/\  \___|  | \/\  ___/|  |  \___ \/_______  /\___  >\___  >__|    \___  >__| /____  >\/     \/     \/            \/          \/```Secrets is a little Python wrapper around gpg to automate encryptednotekeeping. You need to already have a gpg key (I wrote a [guide togpg](https://github.com/aliceriot/gpg_workshop/blob/master/gpg.markdown)if you haven't got one) and you need to have your gpg configured to usegpg-agent (allows the key to be unlocked and stay open for a bit).##InstallingThere's only one dependency right now, the[python-gnupg](https://pythonhosted.org/python-gnupg/) module. If you'renot on Debian or Ubuntu do this:```pip install -r requirements.txt```and then add `secrets.py` to your path somehow (you'll also need to add`#!/usr/bin/python` to the top). If you're a Debian user you can do```sudo apt-get install dh-virtualenvsudo dpkg-buildpackage -us -uc```in the directory into which you cloned this repo, and you'll get a nicetasty Debian package you can install! Great! As a reminder you can thendo:```sudo dpkg --install ../secrets_0.1_amd64.deb```and that's it!##Keeping super secret notes!To start off you should do```secrets init```to configure the program. Then to list your notes:```secrets list```to see your secrets (titles only).To start a new note called foo:```secrets new foo```Secrets will open the notes in your `$EDITOR`. If you haven't set thatbefore it's probably Vim or nano?To get rid of useless secrets (like foo) do:```secrets delete foo```To put the contents of foo on `stdout` try:```secrets echo foo```and finally, do:```secrets foo```to edit an existing note foo. Nice!##Warnings and disclaimers and blahI'm not a cryptographer or security expert. This program certainly hassome security flaws. Don't use it if you adversary is more technicallysophisticated than 'your roommate snooping through your recent documents'.In particular I made several decisions which are not secure - the contentsof the notes live in files in `/tmp` in plaintext while you're editingthem. The whole notes database is also in memory when the program isrunning. Oops!Happy secreting!###TODO
Package: secrets2env
secret2envCommand-line tool for generating sourcable environment variables from secrets in AWS Secrets Manager
using a YAML definition.Installation$pipinstallsecrets2envEnvironment DefinitionBelow is an example environment definition. The values for environment variables will be generated
using.format()and keyword arguments.-secret:aws/secret-namename:ENV_SECRETvalue:"{key1-in-secret}"-secret:production/postgresqlname:PSQL_URIvalue:"postgresql://{username}:{password}@postgresql:5432/{dbname}"UsagePath to a definition like the one can be provided as argument, otherwise it defaults to./aws-secrets.yml.
Runningsecrets2envwill print a sourceable environment to STDOUT which can beevald or redirected to an environment file.# with path to definition file$secrets2env--definitionpath/to/definition.yml# or using the default path (./aws-secrets.yml) with the definition above$secrets2envIt will result in the following output# Autogenerated by <path/to/installed/secrets2env.py>exportENV_SECRET='some-secret'exportPSQL_URI='postgresql://pg-user:pg-pw@postgresql:5432/pgdb'# you can eval directlyeval"`secrets2env`"# or redirect to fileecho-e"\n`secrets2env`">>env.shLimitations / TODOscurrently only supportsSecretStringcurrently only supports OsX and Linuxno automated tests
Package: secretsantasolver
SecretSantaSolverIntroductionWe all know the pain of secret santas in the family. Not only will you eventually need to come up with a creative and personal gift for you loved ones, one has to first actually find a way to assign your future recipient. This often involves many rounds of discussions, scribbling down notes, drawing your own name and thus, frustration. But fear no more. With SecretSantaSolver, you can easily do these assignments in a quick and fun way!InstallationSecretSantaSolver comes with no dependencies. The recommended way to install SecretSantaSolver is via thepipcommandpip  install SecretSantaSolverAlternatively, you can also install from the github source using poetrygit clone 
cd secretsantasolver
poetry installUsageThe main (and only) class isSecretSantaSolverYou need to pass in the names of the persons involved.
To enable you to also hand over the data, you can export the assigned pairs using theexportmethod. This will write a.txtfile per name to the provided path. Each file contains their secret santa, that you can send over via mail or other means.import SecretSantaSolver 

names = [
    "Alex",
    "Jack",
    "Jill
]

santasolver = SecretSantaSolver.SecretSantaSolver(names = names)
santasolver.assign()
santasolver.export("path/to/folder")If you want to prevent partners being the secretsanta of each other, you can also pass in the names of their partners and set theprohibit_partnersflag toTrue:names = [
    "Alex",
    "Jack",
    "Jill
]

partners = [
    "Jill",
    "",
    "Alex"
]

santasolver = SecretSantaSolver.SecretSantaSolver(names = names, partners = partners)
santasolver.assign(prohibit_partners = True)
santasolver.export("path/to/folder")