Saravanan666/pypi-org huggingface dataset:
Package: secs
Simple Encrypted Container Setup (SECS) is based on Linux Unified Key Setup
(LUKS). Because good Linux Unified Key Setups mean great Simple Encrypted
Container Setups.PurposeIf you are unfamiliar withLUKSencryption, it is most commonly used to encrypt
entire disk partitions on Linux. However, it is also capable of encrypting files
which can be mounted as a loop device, allowing you to create portable encrypted
containers to keep different types of sensitive data isolated.This script is a wrapper to simplify the steps required to create and use these
containers.InstallationSECS can be installed usingpip.$ sudo pip install secs
# or
$ pip install --user secsEither command will install a script calledsecswhich provides all the
functionality.SECS requires root access to run. Note that if you use the second install
option, you will likely have to usesudo -Eso that Python can find the
package.You may find it convenient to use a simple script like thebash scriptincluded in the repo to callsudofor you.ExamplesRoot access (e.g. viasudo) is required for all commands.Create a container. The number is the size in megabytes.$ sudo secs create work_stuff 100
...
$ ls -Ap
work_stuffOpen a container. The default moves the container to.<container>and mounts
to the container path. Use-mto set an explicit mount path.$ sudo secs open work_stuff
...
$ ls -Ap
work_stuff/ .work_stuffClose a container. The default unmounts from the container path and moves the
container back to it’s original path.-mto set the mount path is required
if it was used when the container was opened.$ sudo secs close work_stuff
...
$ ls -Ap
work_stuffExpand a container. The number is the amount in megabytes to increase the size
of the container by.$ sudo secs expand work_stuff 10Implementationsecsis written in Python and is based on theLUKSspecification. It requires
thatcryptsetupbe available. It is currently written to useext4as the
container filesystem. As such, this script will likely only work on Linux
systems.There are no external Python dependencies. The script may be freely copied
anywhere, as long as Python 2 or 3 is available.RelatedTomb- A similar tool, written for zsh.TomberandMausoleum- Python wrappers forTomb.LibreCrypt- May be useful to access your LUKS containers from Windows.
Package: sec-search-client
API for receiving classifications of SEC filings.  Note that this API is in  beta and is subject to change before the release of a stable v1.0.0.  By default, the api will return a maximum of 100 results.   To return more results, pass the &#x60;page&#x60; parameter.   For example, to return the second page of results, pass &#x60;page&#x3D;2&#x60;.  &lt;a href&#x3D;&quot;https://www.secsearch.io/profile&quot; target&#x3D;&quot;_blank&quot;&gt;Get an API Key&lt;/a&gt;   # noqa: E501
Package: secstache
secstacheFillmustachetemplate(s) with secrets from secret store(s).Installationpip install secstacheUsage$ secstache -h
usage: secstache [-h] [--asm key] [--strict] [file1.mustache ...]

Fill mustache template(s) with secrets from secret store(s).

positional arguments:
  file1.mustache  mustache files to process

optional arguments:
  -h, --help      show this help message and exit
  --asm key       AWS Secret Manager key
  --strict        fail if a tag key is not found

EXAMPLE:
	Create db.conf from db.conf.mustache using secrets in AWS Secret Manager under "prod/db"

		secstache --asm prod/db db.conf.mustacheExampleSay, you have a secret stored in secrets manager under the name ofprod/dbwith the SecretString set to:{
  "DB_USER": "foo_user",
  "DB_PASS": "foo_pass"
}You can create a mustache file like this:$ cat db.conf.mustache
DB_NAME = foo_db
DB_USER = {{DB_USER}}
DB_PASS = {{DB_PASS}}and runsecstachethis way:$ secstache --asm prod/db db.conf.mustache
Rendered db.conf.mustache to db.confThis creates the db.conf file that looks like this:$ cat db.conf
DB_NAME = foo_db
DB_USER = foo_user
DB_PASS = foo_passSupported secret storesAWS Secrets ManagerLoad secrets fromAWS Secrets Managervia--asm keyoption. Note that your environment must be configured so as to supportboto3. (I.e., you must be able to runawssuccessfully in your environment.)Other secret storesPR's welcome! :grin:
Package: secstructartist
secstructartistThis package allows to include pretty secondary structure schemes in
matplotlib plots.Table of contentInstallationPrerequisitesInstallation from PyPIInstallation from GitHubUsageA simple exampleCustomizing your plotsLicenseContributingAuthorsInstallationPrerequisitesGeneral prerequisites:Python 3.8 or higherpipThird-party python packages:matplotlibnumpyInstallation from PyPIThis is the recommended way to install the package.Create a virtual environment (optional but recommended):python3 -m venv secstructartist
source secstructartist/bin/activateInstall python modulepip install secstructartistInstallation from GitHubHere, you will download the repository, and manually build and install the
package.Create a virtual environment (optional but recommended):python3 -m venv secstructartist
source secstructartist/bin/activateClone the repository:git clone https://github.com/bickeld/secstructartist.git
cd secstructartistBuild package and installmake build
make installUsageIn theexamples/directory there is a Jupyter notebook (link)
with plenty of code examples for simple and advanced use cases. Therefore, only
the  basics usage will be shown here.A simple exampleThe simplest possible use case:importmatplotlib.pyplotaspltimportsecstructartistasssasecstruct_str="LLLSSSSSLLLLLHHHHHHHHLLLHHHHHHHHLLLLLLLLLSSSSSSLLLL"fig,_objs=ssa.draw(secstruct_str)fig.savefig("example0.png")Customizing your plotsPlots can be modified by initializing a customSecStructArtist.importmatplotlib.pyplotaspltimportsecstructartistasssasecstruct_str="LLLSSSSSLLLLLHHHHHHHHLLLHHHHHHHHLLLLLLLLLSSSSSSLLLL"nres=len(secstruct_str)# Initialize a custom SecStructArtist istance to modify settingsartist=ssa.SecStructArtist()# Set global settingsartist.height=.7artist.linewidth=.8# Set settings of "H" - Helicesartist["H"].fillcolor=(.9,0.,0.)artist["H"].shadecolor=(.7,0.,0.)artist["H"].ribbon_period=3.6artist["H"].ribbon_width=2.2# Set settings of "S" - beta-Sheetsartist["S"].arrow_length=2.7artist["S"].fillcolor="#ddcc00"artist["S"].height=.5# Set settings of "L" - loopartist["L"].linecolor="blue"artist["L"].linewidth=1.8# Generate figure and axisfig,ax=plt.subplots(figsize=(4,.4),dpi=150)# Include secondary structure scheme above the plotartist.draw(secstruct_str,xpos=list(range(3,3+nres)),ypos=3.5,ax=ax)ax.set_xlabel("Residue index")ax.set_ylim([3,4])fig.savefig("example1.png")LicenseDistributed under the GNU General Public License v3 (GPLv3) License.ContributingIf you find a bug, please open abug report.
If you have an idea for an improvement or new feature, please open afeature request.Authors- David Bickel
Package: sectemp-bootstrap
This is a structure template for Python command line applications, ready to be
released and distributed via setuptools/PyPI/pip for Python 2 and 3.UsageClone this repository and adopt the bootstrap structure for your own project.
This is just a starting point, but I hope a good one. From there on, you should
read and followhttp://python-packaging-user-guide.readthedocs.org/en/latest/,
the definite resource on Python packaging.BehaviorFlexible invocationThe application can be run right from the source directory, in two different
ways:Treating the bootstrap directory as a packageandas the main script:$ python -m bootstrap arg1 arg2
Executing bootstrap version 0.2.0.
List of argument strings: ['arg1', 'arg2']
Stuff and Boo():
<class 'bootstrap.stuff.Stuff'>
<bootstrap.bootstrap.Boo object at 0x7f43d9f65a90>Using the bootstrap-runner.py wrapper:$ ./bootstrap-runner.py arg1 arg2
Executing bootstrap version 0.2.0.
List of argument strings: ['arg1', 'arg2']
Stuff and Boo():
<class 'bootstrap.stuff.Stuff'>
<bootstrap.bootstrap.Boo object at 0x7f149554ead0>Installation sets up bootstrap commandSituation before installation:$ bootstrap
bash: bootstrap: command not foundInstallation right from the source tree (or via pip from PyPI):$ python setup.py installNow, thebootstrapcommand is available:$ bootstrap arg1 arg2
Executing bootstrap version 0.2.0.
List of argument strings: ['arg1', 'arg2']
Stuff and Boo():
<class 'bootstrap.stuff.Stuff'>
<bootstrap.bootstrap.Boo object at 0x7f366749a190>On Unix-like systems, the installation places abootstrapscript into a
centralizedbindirectory, which should be in yourPATH. On Windows,bootstrap.exeis placed into a centralizedScriptsdirectory which
should also be in yourPATH.
Package: section-explore
sectionMimics the behavior of Cisco IOS's| section ...command. Just like IOS, it supports parsing through a file and viewing sections of matched data. Like IOS, it supports _ as a blank, end-of-line, etc., (see here) for things like interfaces (for example, Gi1/1/1_ would not show Gi1/1/10, Gi1/1/11, etc). Requires Python 3.6 or higher.Cisco IOS Example:show run brief | sec ^crypto (ipsec|isakmp)Read a file and interpret it the same as:
show command output | sectionExamples:python3 section.py "^interface Vlan10_" core9500.cfgcat core9500.cfg | python3 section.py "^interface Vlan10_"Usage: section [options] "pattern to match" [filename]

positional arguments:
  pattern-to-match      pattern to match; quotes are required if pattern contains spaces; supports regex
  filename              file to read from; if not specified, read from STDIN

optional arguments:
  -h, --help            show this help message and exit
  -i, --ignore-case     ignore case distinctions
  -m NUM, --max-count NUM
                        stop after NUM matches
  -n, --line-number     print line number with output lines
  -b, --add-blank       add a blank line between matched sections for readability
  -v, --verbose         show pattern that will be matched
Package: sectionproperties
sectionpropertiesis a python package for the analysis of arbitrary cross-sections
using the finite element method.sectionpropertiescan be used to determine
section properties to be used in structural design and visualise cross-sectional
stresses resulting from combinations of applied forces and bending moments.Subscribeto thesectionpropertiesmailing list!InstallationYou can installsectionpropertiesviapipfromPyPI:pipinstallsectionpropertiesDocumentationsectionpropertiesis fully documented including a user walkthrough, examples,
background theory and an API guide. The documentation can found athttps://sectionproperties.readthedocs.io/.FeaturesSee the complete list ofsectionpropertiesfeatureshere.ContributingContributions are very welcome. To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,sectionpropertiesis free
and open source software.SupportFound a bug 🐛, or have a feature request ✨, raise an issue on the
GitHubissue trackerAlternatively you can get support on thediscussionspage.Disclaimersectionpropertiesis an open source engineering tool that continues to benefit from
the collaboration of many contributors. Although efforts have been made to ensure the
that relevant engineering theories have been correctly implemented, it remains the
user's responsibility to confirm and accept the output. Refer to thelicensefor clarification of the conditions of use.CreditsThis project was generated from@cjolowicz'sHypermodern Python Cookiecuttertemplate.
Package: sectool
SECTOOLA tool for keeping secrets during software builds and deployments.ChallengeThe secrets like API keys or passwords should be used during run time and provided by execution environment.
The simple solution is keeping them as environment variables. But values of the variables are usually kept as
plain text inside files likeDockerfileordocker-compose.ymlwhich is not secure.Way to solveThe tool solves the issue, it allows you to keep secrets in an encrypted file and inject the values
during software builds.How it works?You create an .ini file where in sectionsecretsyou keep all your secrets.Encrypt the file. Later you can use the file (or files if you need different secrets for different environments).Runsectoolby specifying the file and your deployment config file. The tool reads your
deployment config, injects the corresponding values and print the result to stdout.Here is the step when Linux magic begins, the stdout can be piped to your building or deployment tool,
alsoxargscan help.ExamplesFirst of all, installsectool:python3-mpipinstallsectoolAnd develop a shell code that calls sectool:# The function has three arguments# * path to encrypted file keeping secrets# * password for decrypting the file# * path to file where we need to merge variablesmerge(){read-r-d''script<<-"----EOF"importos
fromsectoolimportprocess
process(os.environ['SEC_FILE'],os.environ['PASS'],os.environ['TMPL_FILE'])----EOFSEC_FILE="$1"PASS="$2"TMPL_FILE="$3"python3-c"$script"}Inject toDockerfileand build a Docker image:echo-n"Enter your password: "readPASSWORD
merge"secrets.dat"$PASSWORD"Dockerfile"|dockerbuild-ttulip-f-.Inject todocker-compose.ymland build all images mentioned there:echo-n"Enter your password: "readPASSWORD
merge"secrets.dat"$PASSWORD"docker-compose.yml"|docker-compose-f-buildInject to AWS Task Definition:echo-n"Enter your password: "readPASSWORD
merge"secrets.dat"$PASSWORD"my-aws-task-def.json"|xargs-0awsecsregister-task-definition--regioneu-west-1--cli-input-jsonHow do I encrypt .ini file?Easy. You needopenssl, the software is very popular and included in almost popular Linux/Unix distributions.How do I encrypt file?opensslenc-aes128-pbkdf2-insecrets.ini-outsecrets.datDon't forget password that the tool will ask! If you forget it, you won't be able to get access to your secrets.How do I decrypt to check if everything okay?opensslenc-aes128-pbkdf2-d-insecrets.dat-passpass:<password>How do I mention secret variables in my, for instance, Dockerfile?Just use a name of the variable in double curly brackets{{api_key}}Example of .ini file:[secrets]api_key=AGTDBLWLB5BGG7NNVHVExample of Dockerfile:FROMubuntu:20.04USERwheelENVAPI_KEY={{api_key}}
Package: secudata
A Python library for gettingsecurity dataofChina.Installationpip install secudataFunction Introductiondef getData(symbol=None, start=None, end=None,ktype='D', autype='normal', retry_count=3, pause=0.05):
获取股票当日交易记录
Parameters:
    symbol: string
            股票标识 e.g. SH600000
    start: string
            开始日期 format：YYYY-MM-DD 为空时默认为API最早日期, 分钟数据中没有作用
    end: string
            结束日期 format：YYYY-MM-DD 为空时去最近一个交易日，分钟数据中没有作用
    ktype：string
            数据类型，D=日k线 W=周 M=月 1=1分钟 5=5分钟 15=15分钟 30=30分钟 60=60分钟，默认为D
    autype:string
            复权类型，before-前复权 after-后复权 normal-不复权，默认为normal
    retry_count: int, 默认 3
            如果遇到网络等问题重复执行的次数
    pause: int, 默认 0.05
            重复请求数据过程中暂停的秒数, 防止请求间隔太短出现问题
Return:
    DataFrame:
            属性:日期 ，开盘价， 最高价， 收盘价， 最低价， 成交量， 价格变动 ，涨跌幅，5日均价，10日均价，20日均价，30日均价，换手率，成交额
            索引:日期Quick Startimport secudata as sd
sd.getData('SH000001')return:
    DataFrame:
    属性:日期 ，开盘价， 最高价， 收盘价， 最低价， 成交量， 价格变动 ，涨跌幅，5日均价，10日均价，20日均价，30日均价，换手率，成交额

    索引:日期Require_packagepandas
Package: secularize
# HolyC-for-Linuxrun HolyC on Linux secularly[![Build Status](http://ec2-54-162-194-49.compute-1.amazonaws.com/job/holyc-for-linux/job/master/badge/icon)](http://ec2-54-162-194-49.compute-1.amazonaws.com/job/holyc-for-linux/job/master/)[![PyPI version](https://badge.fury.io/py/secularize.svg)](https://badge.fury.io/py/secularize)#### DisclaimerThis tool is in super-hella-mega alpha stage. If you use this, you will die. Or worse, your current operating system will be replaced with TempleOS. I've only tested this on `3.7-dev`.## Install```pip install secularize```## TranslateThe primary use is to translate holyc to c. Do this with:`secularize examples/test.hc`this turns `examples/test.hc````cF64 *s = 3;U0 test(I16 a, U8 b, F64 c) {Print("hello");}F64 pest(I8 d) {Print("nothing");}Print("%s %s", "hello", "world");I64 b = 2.000;```into `examples/test.c````cvoid test(short a, unsigned char b, double c){printf("hello");}double pest(char d){printf("nothing");}int main(){double* s = 3;printf("%s %s", "hello", "world");long b = 2.0;}```## DebuggingTo add a feature, it's useful to get the AST of an expected target. To do this, write the C file you're trying to translate to, then run `secularize dump-ast name-of-file.c`. This will pretty print the AST to json.```sh$ cat examples/math.cint main(){long a = 3;long b = 2;}$ secularize dump-ast examples/math.c{"_nodetype": "FileAST","coord": null,"ext": [{"_nodetype": "FuncDef","coord": "examples/math.c:1:5","decl": {"_nodetype": "Decl","name": "main","quals": [],"storage": [],"funcspec": [],"coord": "examples/math.c:1:5","type": {"_nodetype": "FuncDecl","coord": "examples/math.c:1:5","type": {"_nodetype": "TypeDecl","declname": "main","quals": [],"coord": "examples/math.c:1:5","type": {"_nodetype": "IdentifierType","names": ["int"],"coord": "examples/math.c:1:1"}},"args": null},"init": null,"bitsize": null},"body": {"_nodetype": "Compound","coord": "examples/math.c:2:1","block_items": [{"_nodetype": "Decl","name": "a","quals": [],"storage": [],"funcspec": [],"coord": "examples/math.c:3:8","type": {"_nodetype": "TypeDecl","declname": "a","quals": [],"coord": "examples/math.c:3:8","type": {"_nodetype": "IdentifierType","names": ["long"],"coord": "examples/math.c:3:3"}},"init": {"_nodetype": "Constant","type": "int","value": "3","coord": "examples/math.c:3:12"},"bitsize": null},{"_nodetype": "Decl","name": "b","quals": [],"storage": [],"funcspec": [],"coord": "examples/math.c:4:8","type": {"_nodetype": "TypeDecl","declname": "b","quals": [],"coord": "examples/math.c:4:8","type": {"_nodetype": "IdentifierType","names": ["long"],"coord": "examples/math.c:4:3"}},"init": {"_nodetype": "Constant","type": "int","value": "2","coord": "examples/math.c:4:12"},"bitsize": null}]},"param_decls": null}]}```## What's Supported- print statements- primitive data types- basic functions## What's Not SupportedEverything else. Deal with it.
Package: secupy
Secupy!We protect your Python source code and your business.
High End Encryption for your Python Source Code. Secupy is the most efficiente and cost effective solution to protect your Intellectual Property. The decryption process takes place during module import, with no impact on the performance of the running application. It works on any platform, with any framework or code.Quick StartFirst of all you need an account.Registreto obtain an api token.WarningWithout the registration you can only encrypt one file that will last 24 hours.NoteWith the registration, you can obtain a free token to build a daily valid software or production token with no limit for our builded software. An api token is a 40 character lenght string.Install secupy from pip:$pipinstallsecupyActivate your hostsecupy activate --token <api token>$secupyactivate--tokenX123456789Y123456789Z123456789K123456789Build you softwaresecupy build -s <source code directory> -d <destination directory>$secupybuild-s.-d./buildAnd finally run it assuming we call a module calledentrypointin thebuilddirectory:$cdbuild
$secupy-mentrypoint
Package: secure
secure.pysecure.py 🔒 is a lightweight package that adds optional security headers for Python web frameworks.Supported Python web frameworksaiohttp,Bottle,CherryPy,Django,Falcon,FastAPI,Flask,hug,Masonite,Pyramid,Quart,Responder,Sanic,Starlette,TornadoInstallpip:pip install securePipenv:pipenv install secureAfter installing secure:importsecuresecure_headers=secure.Secure()Secure HeadersExamplesecure_headers.framework(response)Default HTTP response headers:strict-transport-security: max-age=63072000; includeSubdomainsx-frame-options: SAMEORIGINx-xss-protection: 0x-content-type-options: nosniffreferrer-policy: no-referrer, strict-origin-when-cross-origincache-control: no-storePolicy BuildersPolicy Builder ExampleContent Security Policy builder:csp=(secure.ContentSecurityPolicy().default_src("'none'").base_uri("'self'").connect_src("'self'","api.spam.com").frame_src("'none'").img_src("'self'","static.spam.com"))secure_headers=secure.Secure(csp=csp)HTTP response headers:strict-transport-security: max-age=63072000; includeSubdomainsx-frame-options: SAMEORIGINx-xss-protection: 0x-content-type-options: nosniffreferrer-policy: no-referrer, strict-origin-when-cross-origincache-control: no-storecontent-security-policy: default-src 'none'; base-uri 'self'; connect-src 'self' api.spam.com; frame-src 'none'; img-src 'self' static.spam.com"DocumentationPlease see the full set of documentation athttps://secure.readthedocs.ioFastAPI ExampleimportuvicornfromfastapiimportFastAPIimportsecureapp=FastAPI()server=secure.Server().set("Secure")csp=(secure.ContentSecurityPolicy().default_src("'none'").base_uri("'self'").connect_src("'self'""api.spam.com").frame_src("'none'").img_src("'self'","static.spam.com"))hsts=secure.StrictTransportSecurity().include_subdomains().preload().max_age(2592000)referrer=secure.ReferrerPolicy().no_referrer()permissions_value=(secure.PermissionsPolicy().geolocation("self","'spam.com'").vibrate())cache_value=secure.CacheControl().must_revalidate()secure_headers=secure.Secure(server=server,csp=csp,hsts=hsts,referrer=referrer,permissions=permissions_value,cache=cache_value,)@app.middleware("http")asyncdefset_secure_headers(request,call_next):response=awaitcall_next(request)secure_headers.framework.fastapi(response)returnresponse@app.get("/")asyncdefroot():return{"message":"Secure"}if__name__=="__main__":uvicorn.run(app,port=8081,host="localhost")HTTP response headers:server: Securestrict-transport-security: includeSubDomains; preload; max-age=2592000x-frame-options: SAMEORIGINx-xss-protection: 0x-content-type-options: nosniffcontent-security-policy: default-src 'none'; base-uri 'self'; connect-src 'self'api.spam.com; frame-src 'none'; img-src 'self' static.spam.comreferrer-policy: no-referrercache-control: must-revalidatepermissions-policy: geolocation=(self 'spam.com'), vibrate=()Resourceskennethreitz/setup.py: 📦 A Human’s Ultimate Guide to setup.py.OWASP - Secure Headers ProjectMozilla Web Securitysecurityheaders.comMDN Web Docsweb.devThe World Wide Web Consortium (W3C)