Saravanan666/pypi-org huggingface dataset:
Package: seclook
seclookseclookis a security lookup CLI tool that allows you to query various security services on the fly. It is essentially a wrapper over therequestslibrary that removes the need to manually search within Web UIs or write your own requests in Postman or cURL to query these services.You can look up information using commands likeseclook [service] [value], where the service can bevirustotal,shodan,emailrep, and so on. The value is the information you're querying for and varies by service.Installationpip install seclookCopyconfig.ini.samplefrom this directory and place it in~/.seclook/config.iniOpen~/.seclook/config.iniand add in your own API keys for the services you want to use.Some services (e.g., GreyNoise, ThreatFox)don't require API keys, but may be rate-limited more quickly without one or have other limitations. Others (e.g., YARAify) do not need an API key at all and will not be referenced in the config file.UsageBasic usage ofseclookis as follows:seclook[service][value]For example, to look up IP 1.1.1.1 on AbuseIPDB, you'd run:seclookabuseipdb1.1.1.1You can send the JSON response to OpenAI GPT-4 for summarization:seclookvirustotal44d88612fea8a8f36de82e1278abb02f--gpt4You can pipe the output tofxorjqfor further processing:seclookemailrepandrew@akatz.org|fxYou cangrepthe output for known keys to get specific information:seclookvirustotal44d88612fea8a8f36de82e1278abb02f|grepmaliciousOptions--export– Use this flag to export the results to a JSON file on your Desktop.--gpt4– Use this flag to summarize the JSON response from a service in GPT4.Supported servicesVirusTotalShodanEmailrepAbuseIPDBGreyNoiseThreatFoxPulsediveYaraifyYou can also view supported services by passinglistas the service name:seclooklistUpgradingTo upgrade seclook to the latest version:pipinstall--upgradeseclookContributingIf you'd like to contribute to seclook, please feel free to fork the repository, create a feature branch, and then submit a Pull Request.LicenseMIT LicenseContactandrew@akatz.org
Package: secmet
This library is intended to make dealing with secondary metabolite
annotationsas provided by databases likeMIBiGor tools likeantiSMASHeasier from
within python programs.At the moment, it just supports the GenBank file format used byMIBiGandantiSMASH, not
the MIBiG JSON format. Support for this isplanned.InstallingSecMet is a normal Python module, so you can install it from a local
repositorycheckout usingpython setup.py install, or from PyPi usingpip install secmet.Note that secmet is still in early development, and not fit for
production use.PackagingBecause I perfer to work with markdown and Python forces me to usereStructuredText, a Makefile helps in order to create a new PyPi
release. Thepandocutility is required. Run the Makefile usingmake releaseto create anew secmet library sdist.LicenseCopyright 2015  Kai Blin <kblin@biosustain.dtu.dk>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: secmmf
SEC N-MFP2 Money Market Fund Holdings DataAuthor: Yangjue HanDate: May 2020IntroductionThis repository contains code that enables the user to parse and download money market fund holdings information in N-MFP2 filings from SEC EDGAR system. At the end of every month, all U.S. money market funds are required to report their securities holdings to SEC, including identification, maturity, market value, yield to maturity, issuer information, and other features. For repurchase agreement contracts, money market funds also have to report information on collateral securities. The granularity of this dataset provides an unparallel opportunity for financial economists to study questions related to the shadow banking system.Installationpip install secmmfUsageInitial setupThe modulesecmmfcontains a set of functions that parse and download the information in N-MFP2 filings. The user should first specify the path of a directory to store the downloaded data todata_dirand the storage ofdata_dirshould be at least 20GBs. Note that the package can only be used to download N-MFP2 filings, but could be extended to download other filings with a similar format. The package does not provide any data cleaning function.import secmmf

data_dir = ## YOUR DIRECTORY HERE ##
pathfile = 'xmlpath.csv' # no need to change thisBuild index of filingsFirst we download and extract the paths of filings from SEC EDGAR system using methoddownload_sec_index().By specifyingstart_dateandend_date, the user will limit the time range to [start_date,end_date]. The default start date is 2016-10 and end date is the current month.The method will output a csv file namedindex_file.csvindata_dir. We then usegenerate_index()to create a file of urls linked to XML files that can be easily parsed, namedpathfile.secmmf.download_sec_index(data_dir, form_name = 'N-MFP2', start_date = '2016-10', end_date = '2020-05')
generate_index(data_dir, pathfile)Download raw filesNext, we download XML files frompathfileand parse them into un-modified csv files usingscrape().Depending on the number of files to download and internet connection, this step might take up to 4 hours.Paths contained inpathfileare divided into 20 blocks and the corresponding csv files will be saved into 20 different subfolders.If the program is interrupted at any block, the user can specifystart_blockorend_blockto modify the exact portion of files to download.scrape(data_dir, pathfile, N_blocks=20, start_block=1, end_block=20)Generate fund-level and holdings-level tablesRaw csv files contain unstructure data that combine both fund-level information and asset holdings. We can usegen_table_fund()andgen_table_holdings()to generate tables with ready-to-use data on fund-level information and asset holdings. Finally,wrap()method combines all formatted tables into a single table for each level of information and clean up the data folder.gen_table_fund(data_dir, pathfile)
gen_table_holdings(data_dir, pathfile)
wrap(data_dir)
# Done!
Package: secmod
secmodA simple module proxy for python.
Avoids importing the module but gives an interface like ModuleType.This useful when you want to examine the contents of the module without executing it.
For example so safe the docstring or code in a database.Installpip install secmodor install it from githubpip install git+https://github.com/cloasdata/secmod.gitor just clone itusagefrompathlibimportPathfromsecmodimportModuleProxyfp_module=Path("some_module.py")module=ModuleProxy(fp_module)print(module.__doc__)Copyright © 2022 Simon BauerPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: secodadk
Secoda Development KitIntroductionThe Secoda SDK is a powerful tool for developers to create custom integrations with the Secoda platform. It provides a framework for connecting and ingesting data from various sources into Secoda, allowing for a rich and interconnected data ecosystem.SecodaIntegration ClassThe SecodaIntegration class is an abstract base class that should be extended by any new integration. It manages authentication, network strategy, and the ingestion of resources and lineage.When you create a custom integration by subclassing SecodaIntegration, you are required to provide a concrete implementation of theextractmethod. This method should contain the logic necessary to connect to your data source, retrieve data, and process it as needed.Key Methodsdeclare_resource(resource: Resource): Declare a resource such as a table, dashboard, or column to be ingested.declare_lineage(lineage: DeclaredLineage): Declare a lineage, representing a relationship between two resources.Network Methodshttp_get(), http_post(), http_put(), http_patch(), http_delete(): Perform HTTP requests of various methods. These methods accept parameters for URL, query parameters, headers, and body data, along with flags for redirect following and SSL verification.Resource ModelOverview
The Resource model represents a resource within the Secoda platform, such as a table, column, or dashboard.Lineage ModelsLineageIDLineageID represents resource(s) in your workspace, which can be either:A resource rom the current custom integration (InternalResource)A table or a column in your workspace (ExternalTable, ExternalColumn)Or a set of tables referenced in a SQL query (TablesFromSQLQuery)DeclaredLineageOverviewThe DeclaredLineage model captures the relationship between two resources in your workspace, which can be either from the current integration or external entities.Attributesfrom_identifier: The starting point of the lineage, represented by a LineageID.to_identifier: The endpoint of the lineage, also represented by a LineageID.Allowed lineages typesCurrently, we support the following lineage types:InternalResource ↔ InternalResourceInternalResource ↔ ExternalTableInternalResource ↔ ExternalColumnExternalTable ↔ ExternalTableTablesFromSQLQuery -> InternalResource
Package: se-code
se_code 对python源代码代码加密保护，带密运行# -*- coding: utf-8 -*-# @Time    : 2021/11/11 14:42# @Author  : wywimportshutil'''2021-11-18 修改demo 注释说明2021-11-12 新增功能:se_single 对整个工程代码加密成单独文件可避免模块结构暴露 , 只会加密代码部分，加密后产生的代码空目录不能删除,1. se_project 工程加密处理:源码工程目录参考示例/home/projectscriptrun.sh...serving # 源码目录configconfig.py...utils...runner.py #程序主入口 main()2. 注册运行解析器se_register_module(root_dir)root_dir 加密工程根路径 上例root_dir目录: /home/project_se'''#package_name 如果制作.whl , 自定义设置包，否则默认为包含代码的最近目录名deftest_se_project(src_dir='/home/project',dst_dir='/home/project_se',package_name=None,ext='.pys'):fromse_codeimportse_project#目标文件夹存在则自动删除dst_exists_remove=False#对工程代码加密成单独文件se_single=False#忽略复制文件，文件对工程运行没有用ignore=shutil.ignore_patterns('test','.git','.idea','setup.py')#package_name# 如果是pypi包，package_name 需要设置包名,否则可以设置None#加密接受规则rules=['serving/utils/*','serving/run*','serving/http_client/http*']se_project(src_dir,dst_dir,package_name=package_name,ext=ext,dst_exists_remove=dst_exists_remove,se_single=se_single,ignore=ignore,rules=rules,key=bytes([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),iv=bytes([1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]))defrun():# 如果是pip 包加密，例如包名为 nn_serving , module_root_dir=os.path.dirname(nn_serving.__file__)# demo 对于此示例 /home/project_se/serving/start.py , 代码模块都在 /home/project_se/serving,  module_root_dir=/home/project_se/servingimportsys,ossys.path.append('..')fromse_codeimportse_register_module#root_dir目录下必须存在__meta__目录下必须存在__meta__.pys#root_dir='/home/project_se'root_dir=os.path.abspath(os.path.join(os.path.dirname(__file__),os.pardir))se_register_module(root_dir=root_dir)fromserving.runnerimportmainmain()
Package: secomlint
SECOMlintLinter to measure compliance againstSECOMconvention. SECOM is a convention for making security commit messages more readable and structured. Check theCONFIG.mdfile to know how to configure the template in your repository.Installationpip install secomlint
python -m spacy download en_core_web_lgFrom the source code:git clone https://github.com/TQRG/secomlint.git
cd secomlint
pip install .
python -m spacy download en_core_web_lgUsagesecomlint --helpUsage: secomlint [OPTIONS]

  Linter to check compliance against SECOM (https://tqrg.github.io/secom/).

Options:
  --no-compliance        Show missing compliance.
  --is-body-informative  Checks body for security information.
  --score                Show compliance score.
  --config TEXT          Rule configuration file path name.
  --help                 Show this message and exit.Run toolgit log -1 --pretty=%B | secomlintwheregit log -1 --pretty=%Bgets the commit message of the local commit.Check only the rules that are not in compliance:git log -1 --pretty=%B | secomlint --no-complianceCalculate compliance score:git log -1 --pretty=%B | secomlint --no-compliance --scoreConfigurationThe linter has a default configuration that can be overridden with a.ymlfile using the following syntax:rule_name:
    active: {true | false}
    type: {0 - warning | 1 - error}
    value: {string | regex}An example would be:header_starts_with_type:
  active: true
  type: 0
  value: 'fix'
metadata_has_detection:
  active: false(The ruleheader_starts_with_typeis active, outputs warnings and checks if header starts with type fix. The rulemetadata_has_detectionwas deactivated.)git log -1 --pretty=%B | secomlint --config=config.ymlCheck if the message's body is informative enoughIt is important that the body of security commit messages are somehow informative; SECOMlint checks the message's body for security-related keywords.git log -1 --pretty=%B | secomlint --is-body-informative👍 Good to go! Extractor found the following security related words in the message's body:
   - protocols
Package: se-com-opts
se_com_opts常用的selenium-webdriver设置更新1.0.5 2021/11/16对注释和部分参数名进行修改，减少使用时引用的参数错误。介绍常用的selenium webdriver chrome options配置项设置工具。属性options: 根据设置的参数所返回的chrome_options。参数localdata_path: 浏览器本地文件的地址，默认为None，可赋值'default'来导入本地文件的默认地址。extension_dir：存放浏览器插件的【文件夹地址】，默认为None，插件必须为打包好的crx格式，【不能】与无窗口模式同时使用。headless: 无窗口模式，默认为False。pic: 无图模式，默认为False。js: 不加载Javascript，默认为False。css：不加载CSS，默认为False。用例SetChromeOptions(webdriver).options: 返回最基础的设置项。SetChromeOptions(webdriver,localdata_path = ’default').options: 返回使用默认本地*文件地址的设置项。SetChromeOptions(webdriverm, extension_dir = <extension_dir>).options: 返回使用crx插件的设置项。
Package: second-brain-tools
2023I am releasing a hotfix for the PyPI package, version 0.0.4. This update addresses a minor issue caused by a change in the naming scheme of GitHub repositories, which was preventing the package from building properly in all Python environments. Additionally, I would like to inform you that support for pypy37 has been discontinued.I am currently addressing the challenges caused by the insufficient documentation and actively working on improving it.EOLThe project has been flagged as EOL (End of Life) on December 2022. Moving forward to a more simplistic approach for better automation and other changes. You can still use the structure but please don’t expect more updates or support.Overview[![GitHub Actions Build Status](https://github.com/rohanbatrain/Second-Brain-Tools/actions/workflows/pylint.yml/badge.svg)](https://github.com/rohanbatrain/Second-Brain-Tools/actions/)
[![GitHub Actions Build Status](https://github.com/rohanbatrain/Second-Brain-Tools/actions/workflows/build.yml/badge.svg)](https://github.com/rohanbatrain/Second-Brain-Tools/actions/)
[![GitHub Actions Build Status](https://github.com/rohanbatrain/Second-Brain-Tools/actions/workflows/mkdocs.yml/badge.svg)](https://github.com/rohanbatrain/Second-Brain-Tools/actions/)
[![Coverage Status](https://codecov.io/gh/rohanbatrain/Second-Brain-Tools/branch/main/graphs/badge.svg?branch=main)](https://codecov.io/github/rohanbatrain/Second-Brain-Tools)
[![PyPI Package latest release](https://img.shields.io/pypi/v/second-brain-tools.svg)](https://pypi.org/project/second-brain-tools)
[![PyPI Wheel](https://img.shields.io/pypi/wheel/second-brain-tools.svg)](https://pypi.org/project/second-brain-tools)
[![Supported versions](https://img.shields.io/pypi/pyversions/second-brain-tools.svg)](https://pypi.org/project/second-brain-tools)
[![Supported implementations](https://img.shields.io/pypi/implementation/second-brain-tools.svg)](https://pypi.org/project/second-brain-tools)
[![Commits since latest release](https://img.shields.io/github/commits-since/rohanbatrain/Second-Brain-Tools/v0.0.4.svg)](https://github.com/rohanbatrain/Second-Brain-Tools/compare/v0.0.4…main)This project is a toolset for Second Brain. It helps to quickly and efficiently create notes using Second Brain Vault.Free software: Apache Software License 2.0PrerequisitesMake sure you have Python 3 and pip installed.Please install Git on your specific system in order to run this code.Installationpip install https://github.com/rohanbatrain/Second-Brain-Tools/archive/main.zipDocumentationTo use the project:fromsecond_brain_toolsimportclicli.main()Or from your terminal:second-brain-tools--helpChangelog0.0.0 (2022-11-17)First release on PyPI.0.0.4 (2023-06-04)Fixed a minor issue with repository naming, preventing unexpected behavior.Implemented substantial quality of life improvements for enhanced user experience.Devoted additional time to address various minor issues, improving overall stability.Introduced comprehensive documentation support, accessible at [here](https://rohanbatrain.github.io/Second-Brain-Tools-2022/).
Package: second_hand_songs_wrapper
A simple wrapper for [secondhandsongs](http://www.secondhandsongs.com/) database [api](http://www.secondhandsongs.com/wiki/API/Main) of info on various versions and covers of songs.Instead of manually constructing search strings, fetching json, and building models it creates models from functions to fetch certain kinds of data.Note: The SHS API is still in beta testing! Luckily the library uses data validation(the very nice [voluptuous library](http://pypi.python.org/pypi/voluptuous/)) so it will break by throwing exceptions rather then give back strange results when the api changes. The api does not currently specify a version perhaps because it is in beta.The classes are based on the data types listed on the [api page](http://www.secondhandsongs.com/wiki/API/Main). The fields match the dictionary keys in the json response, they are also initialized one by one to None before setting them dynamically from the fetched json data to allow static tools such as eclipse/pydev’s autocomplete to work on them.
Except for performances, creditedWorks, and releases keys of a ShsArtist. The json api returns the uri where to fetch the data for these keys instead of actual data. The wrapper library stores the uri under performances_uri, creditedWorks_uri, and releases_uri fields and fetches the actual data only when first requested under performances_data, creditedWorks_data, and releases_data. ShsArtist has no performances, creditedWorks, or releases fields.Each model class has a get_from_resource_id factory function to grab the resource associated with that id:ex.:second_hand_songs.ShsArtist.get_from_resource_id(360) returns data about “Iggy Pop”Of course most resources aren’t identified by resource_id but by uri so you can also download a resource directly with :second_hand_songs.getShsResource(uri)You can also search for a performance or work:ex.:second_hand_songs.second_hand_search(“blackbird”, performer=”beatles”)
Package: second-opinion-ruler
Second Opinion Rulersecond_opinion_ruleris aspaCycomponent that extendsSpanRulerwith a second opinion. Foreachpattern you can provide a callback (available inregistry.misc) on the matchedSpan- with this you can decide to discard the match, add additional spans to the match and/or mutate the matched span, e.g. add a parseddatetimeto a custom attribute.Installationpip install second_opinion_rulerUsageimportspacyfromspacy.tokensimportSpanfromspacy.utilimportregistry# create date as custom attribute extensionSpan.set_extension("date",default=None)# add datetime parser to registry.misc# IMPORTANT: first argument has to be Span and the return type has to be list[Span]@registry.misc("to_datetime.v1")defto_datetime(span:Span,format:str,attr:str="date")->list[Span]:# parse the datedate=datetime.datetime.strptime(span.text,format)# add the parsed date to the custom attributespan._.set(attr,date)# just return matched spanreturn[span]# load a modelnlp=spacy.blank("en")# add the second opinion rulerruler=nlp.add_pipe("second_opinion_ruler",config={"validate":True,"annotate_ents":True,})# add a pattern with a second opinion handler (on_match)ruler.add_patterns([{"label":"DATE","pattern":"21.04.1986","on_match":{"id":"to_datetime.v1","kwargs":{"format":"%d.%m.%Y","attr":"my_date"},},}])doc=nlp("This date 21.04.1986 will be a DATE entity while the structured information will be extracted to `Span._.extructure`")# verifyassertdoc.ents[0]._.date==datetime.datetime(1986,4,21)
Package: second-pkg-joeyding
sample_projectThis is a template project, you need to do the following to generate your project:Text replacement: "sample_project" to "${your_project_name}"Text replacement: "sample-project" to "${your-project-name}"Text replacement: "./src/sample_project" to "./src/${your_project_name}"Edit "./src/${your_project_name}/_version_.py"Prepare1. Install the pip3 fromhttps://pypi.org/project/pip/2. Install the twine (publish)pip3 install twineCommands1. Install to environment:pip3 install -r requirements-dev.txt2. Packcge:python3 setup.py sdist bdist_wheel3. Packcge and Upload:python3 setup.py sdist bdist_wheel

twine upload dist/*
Package: seconds
Seconds is a utility package to transform seconds to minutes, hours, etc. and vice versa
quickly, easily, understandable by humans and without external dependencies
so its performance is excellent and it's extremely lightweight!Why use Seconds?Since Seconds doesn't contain external dependencies, it's extremely lightweight (only 12kB!)
and very fast, it becomes the perfect tool to manage and transform time!Quick startInstallationSeconds requires Python 3.x and can be installed throughpipwith the following command.pip3install-Useconds# Or from github's latest commit# Available branches:#   • masterpip3install-Ugit+https://github.com/NTBBloodbath/Seconds@branchUsage exampleThis is a brief example of Secs.# Lets import Secs class from Seconds PackagefromsecondsimportSecs# Lets pass 5 minutes to seconds and seconds to 10 minutesSecs("5m")# => 300Secs(600)# => 10 minutes# But we want to abbreviate our minutes so we# will pass the abbrev parameter to optionsSecs(600,abbrev=True)# => 10m# Lets pass 6 months to seconds and then pass 1 year to secondsSecs("6mo")# => 110451600Secs("1y")# => 220903200DocumentationYou can see the Seconds documentation through thehelp()function of the REPL.LicenseSeconds is distributed under MIT License.ContributingYou can see how to contributehereCode of ConductYou can see the code of conducthere