Saravanan666/pypi-org huggingface dataset:
Package: bge-python-sdk
BGE 开放平台 SDK - Python 版____  ____________   ______  __________  ______  _   __   _____ ____  __ __
   / __ )/ ____/ ____/  / __ \ \/ /_  __/ / / / __ \/ | / /  / ___// __ \/ //_/
  / __  / / __/ __/    / /_/ /\  / / / / /_/ / / / /  |/ /   \__ \/ / / / ,<   
 / /_/ / /_/ / /___   / ____/ / / / / / __  / /_/ / /|  /   ___/ / /_/ / /| |  
/_____/\____/_____/  /_/     /_/ /_/ /_/ /_/\____/_/ |_/   /____/_____/_/ |_|BGE 开放平台 是一个跨越多级数据的（多）组学数据平台，开发者在获得用户授权后，将可以通过开放平台提供的 API 访问关联用户的（多）组学数据，甚至写入数据。基于开放平台 API，开发者可避免重复开发采样、提取、测序和生信分析等繁复的流程，直接使用清洁的结构化数据。开发者可以通过开放平台提供的 API 创建极具创意性的（多）组学应用，如：包含药物代谢或药物服用建议的应用包含体检数据和营养代谢基因的餐饮应用包含肠道菌群数据和痛风相关基因的痛风管理应用基于祖源成分的社交网络应用，等等BGE 开放平台 API 基于 OAuth 2.0 开发，并使用 SSL/TLS 加密传输，确保用户数据正确无误地授权，并安全地传输到第三方应用，确保用户数据不会被未经授权的应用获得。安装推荐使用 pip 进行安装。$pipinstall-Ubge-python-sdk或者$makeinstall再或者$pythonsetup.pyinstallSDK 文档更加详细的 SDK 文档请查看SDK Documents。快速开始BGE 开放平台支持 OAuth2 的两种模式，分别是用户授权模式、客户端模式。详情请参考开放平台文档https://api.bge.genomics.cn/doc。ENDPOINTSBGE 开放平台提供了如下可用的endpoint。endpoint解释https://api.bge.genomics.cn线上环境主域名地址https://api.bge.omgut.com线上环境副域名地址，主域名地址不可用时可替换此域名地址授权码模式frombgesdkimportOAuth2,APIcode='???????'# 用户确认授权后平台返回的授权码client_id='demo'client_secret='demo'redirect_uri='http://test.cn'oauth2=OAuth2(client_id,client_secret,endpoint='https://api.bge.genomics.cn',max_retries=3,timeout=16,verbose=False)token=oauth2.exchange_authorization_code(code,redirect_uri)api=oauth2.get_api(token.access_token)print(api.get_user())api=API(token.access_token)print(api.get_user())客户端模式frombgesdkimportOAuth2,APIclient_id='demo'client_secret='demo'oauth2=OAuth2(client_id,client_secret,endpoint='https://api.bge.genomics.cn',max_retries=3,timeout=16,verbose=False)token=oauth2.get_credentials_token()api=oauth2.get_api(token.access_token)print(api.get_variants('E-B1243433','rs333'))api=API(token.access_token)print(api.get_variants('E-B1243433','rs333'))Contributorsxiangji1204'sgithubleafcoder(leafcoder@gmail.com)'sgithub
Package: bget
bgetbget - a python bilibili favourites batch downloaderInstallpipinstallbgetUseDownloadconfig.tomland edit it as your need.Get your bilibili.com cookies. You can usethis chrome extension (Get cookies.txt).Download FFMpeg and ensure is in yourPATH.Usebget -hto get help.Build & DevelopmentPoetry is used to build and develop.LicenseMIT License
Package: bgetlib
bgetlibbgetlibis a bilibili API library.InstallpipinstallbgetlibQuickstartimportbgetlibfrombgetlib.modelsimportQualityOptionsbapi=bgetlib.BilibiliAPI("bilibili.com_cookies.txt")# https://space.bilibili.com/36081646/favlist?fid=976082846videos=bapi.get_favorites_all(976082846)quality=QualityOptions()forvideoinvideos:video_detail=bapi.get_video(video["id"])forpartinvideo_detail["pages"]:bapi.save_stream(video_detail["aid"],part["cid"],quality,f"av{video['id']}-P{part['page']}.mp4")
Package: bgg4py
bgg4pybgg4py is a Boardgamegeek API wrapper.RequirementsPython 3.7+Installation$pipinstallbgg4pyExampleCLICheck Command Options$ python -m bgg4py.cli
Usage: cli.py [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  family-items
  forum-lists
  forums
  geeklist
  hot-items
  search
  thing
  threads
  user-collection
  usersCheck Subcommand Options$ python -m bgg4py.cli users
Usage: cli.py users [OPTIONS]
Try 'cli.py users --help' for help.

Error: Missing option '--name'.Run!$ python -m bgg4py.cli users --name hiroaqii

https://www.boardgamegeek.com/xmlapi2/user?name=hiroaqii&guilds=1&hot=1&top=1

{
    "id": 1422482,
    "name": "hiroaqii",
    "firstname": "hiro",
    "lastname": "aqii",
    "avatarlink": "N/A",
    "yearregistered": 2016,
    "lastlogin": "2020-06-06",
    "stateorprovince": "",
    "country": "",
    "webaddress": "",
    "xboxaccount": "",
    "wiiaccount": "",
    "psnaccount": "",
    "battlenetaccount": "",
    "steamaccount": "",
    "traderating": 0,
    "marketrating": 1
}Scriptfrombgg4pyimportapiret=api.user_collection('hiroaqii')# returns a dictionary representing the model as JSON Schemprint(ret.schema())# output exampleprint(ret.item_list[0].image)print(retret.item_list[0])print(ret.item_list[0].status)print(ret.item_list[0].status.lastmodified)print("\n".join([item.nameforiteminret.item_list]))# output jsonret_json=json.dumps(ret.dict(),indent=4,ensure_ascii=False)pritn(ret_json)
Package: bgg-api
BGG-APIA Python API forboardgamegeek.comInstallationpipinstallbgg-apiUsagefromboardgamegeekimportBGGClientbgg=BGGClient()game=bgg.game("Monopoly")print(game.year)# 1935print(game.rating_average)# 4.36166Development# Install dependenciespipinstall-rrequirements/develop.txt# Install pre-commit hookspre-commitinstall# Format XML filescdtest/xml
find.-execsh-c'xmllint --format "$1" > "$1.tmp" && mv "$1.tmp" "$1"'_{}\;# Run testspytest.# Run tests with toxtoxPublishing# Bump version (patch, minor, major)bump2versionpatch# Push to githubgitpush--tagsoriginmaster
Package: bggcohomology
bgg-cohomologyThis is an implementation of a computer algorithm to compute the BGG resolution and its cohomology of a Verma module.You can find the documentation for this package right here:https://bgg-cohomology.readthedocs.io/en/latest/InstallationAfter installingsagerun the following command:sage -pip install git+https://github.com/RikVoorhaar/bgg-cohomology.gitIn MacOS and linux this should run just fine. When using Windows,
make sure to run this command from the Sagemath Shell.To open the.ipynbfiles in thecomputationsandexamplesfolders, you need to
first of all clone this repository. Then you can either launchSagemath Notebook(on Windows) or run the following in the command line:sage -nUsageThere is a basic tutorial of how to use this module in theexamplesdirectory.
Furthermore thecomputationsdirectory contains notebooks with the code we used
for the results in our preprint.CreditAll the code has been written byRik Voorhaar.
Additional credit goes toNicolas Hemelsoetfor many aspects of the algorithm implemented here.
This work has been partially financially supported byNCCR SwissMAP.This software is free to use and edit. When using this software for academic purposes, please cite
the following preprint:https://arxiv.org/abs/1911.00871
Package: bgls
BGLSBGLS is a Python package that implements theBravyi,Gosset, andLiuSampling algorithm presented inHow to simulate quantum measurement without computing marginals (Phys. Rev. Lett.) (arXiv)forCirqcircuits.QuickstartInstallationpipinstallbglsExampleimportcirqimportbgls# Example circuit to run.qubits=cirq.LineQubit.range(2)circuit=cirq.Circuit(cirq.H.on(qubits[0]),cirq.CNOT.on(*qubits),cirq.measure(*qubits,key="z"))# Run the circuit with BGLS.simulator=bgls.Simulator(initial_state=cirq.StateVectorSimulationState(qubits=qubits,initial_state=0),apply_op=cirq.protocols.act_on,compute_probability=bgls.born.compute_probability_state_vector,)results=simulator.run(circuit,repetitions=10)print(results.histogram(key="z"))Sample output:Counter({0: 6, 3: 4})DocumentationSee more details and examples in theDocumentation for BGLS.
Package: bgm
Python Package Template📦 一个快速上传到PyPI的 Python Package 模版。上传到 PyPI 后可以使用pip install安装。1 使用方法点击本项目右上角的绿色按钮Use this template（使用此模板），输入名称和说明，完成创建；将项目克隆到本地，这里以本项目为例，实际操作时这里需要替换你自己的项目；gitclonehttps://github.com/Ailln/python-package-template.git--depth1修改配置，文件中有提示；cdyour_package_name# 1. 替换默认项目名称 package_name 为你的项目名称# Usage: bash scripts/set_package_name.sh os_name old_name new_name# os_name 支持的有 `mac` 和 `linux`# old_name 是 package_name# new_name 是你的项目名称bashscripts/set_package_name.shmacpackage_nameyour_package_name# 2. 将 `README.md` 修改为你的项目介绍，也就是你当前在读的这个文本。编写你的 Package 代码，并进行测试。# 在本地进行充分测试bashscripts/local_test.sh上传到 PyPi（需要注册），参考如何发布自己的包到 pypi；bashscripts/upload_pypi.sh更新到 Github。gitpush2 项目结构.
├── package_name # 项目名称
│    ├── shell # 在命令行中执行的代码
│    │    ├── __init__.py
│    │    └── usage.py
│    └── src # 静态资源
│          └── temp.txt
├── scripts
│    ├── set_package_name.sh # 批量替换默认的项目名称
│    ├── local_install.sh
│    ├── local_test.sh
│    └── upload_pypi.sh
├── README.md # 项目文档
├── requirements.txt # 包依赖
├── .gitignore # 忽略文件
├── MANIFEST.in # 要包含在 sdist 命令构建的分发中的文件列表。
├── LICENSE # 这里面的内容为本项目的 License，你需要手动替换它。
└── setup.py # 安装配置3 TODO增加 test 相关代码。4 许可5 参考Packaging Python Projects如何从模板创建仓库？如何发布自己的包到 pypi ？
Package: bgmiget
BgmiGetHow to Installpip install bgmigetBasic UsageSearch anime by "search" commnad.bgmiget search '因为太怕痛' 7 "sc" "桜都字幕组"
>0  -> 【因为太怕痛...】【07】【桜都字幕组】Then, download anime by index.bgmiget download 0Subscribe anime by "subscribe" command, and list them by "show_subscribed" command.At last, check for updates on anime by "upgrade" command.
Package: bgnlp
bgnlp: Model-first approach to Bulgarian NLPpipinstallbgnlpPackage functionalitiesPart-of-speechLemmatizationNamed Entity RecognitionKeyword ExtractionCommatizationPlease note - only the first time you run one of these operations a model will be downloaded! Therefore, the first run might take more time.Part-of-speech (PoS) taggingfrombgnlpimportposprint(pos("Това е библиотека за обработка на естествен език."))[{"word":"Това","tag":"PDOsn","bg_desc":"местоимение","en_desc":"pronoun"},{"word":"е","tag":"VLINr3s","bg_desc":"глагол","en_desc":"verb"},{"word":"библиотека","tag":"NCFsof","bg_desc":"съществително име","en_desc":"noun"},{"word":"за","tag":"R","bg_desc":"предлог","en_desc":"preposition"},{"word":"обработка","tag":"NCFsof","bg_desc":"съществително име","en_desc":"noun"},{"word":"на","tag":"R","bg_desc":"предлог","en_desc":"preposition"},{"word":"естествен","tag":"Asmo","bg_desc":"прилагателно име","en_desc":"adjective"},{"word":"език","tag":"NCMsom","bg_desc":"съществително име","en_desc":"noun"},{"word":".","tag":"U","bg_desc":"препинателен знак","en_desc":"punctuation"}]Lemmatizationfrombgnlpimportlemmatizetext="Добре дошли!"print(lemmatize(text))[{'word':'Добре','lemma':'Добре'},{'word':'дошли','lemma':'дойда'},{'word':'!','lemma':'!'}]# Generating a string of lemmas.print(lemmatize(text,as_string=True))Добредойда!Named Entity Recognition (NER) taggingCurrently, the available NER tags are:PER- PersonORG- OrganizationLOC- Locationfrombgnlpimportnertext="Барух Спиноза е роден в Амстердам"print(f"Input:{text}")print("Result:",ner(text))Input:БарухСпинозаероденвАмстердам
Result:[{'word':'Барух Спиноза','entity_group':'PER'},{'word':'Амстердам','entity_group':'LOC'}]Keyword Extractionfrombgnlpimportextract_keywords# Reading the text from a file, since it may be large, hence it wouldn't be# pleasant to write it directly here.# The current input is this Bulgarian news article (only the text, no HTML!):# https://novini.bg/sviat/eu/781622withopen("input_text.txt","r",encoding="utf-8")asf:text=f.read()# Extracting keywords with probability of at least 0.5.keywords=extract_keywords(text,threshold=0.5)print("Keywords:")pprint(keywords)Keywords:[{'keyword':'Еманюел Макрон','score':0.8759163320064545},{'keyword':'Г-7','score':0.5938143730163574},{'keyword':'Япония','score':0.607077419757843}]Commatizationfrompprintimportpprintfrombgnlpimportcommatizetext="Човекът искащ безгрижно писане ме помоли да създам този модел."print("Without metadata:")print(commatize(text))print("\nWith metadata:")pprint(commatize(text,return_metadata=True))Withoutmetadata:
Човекът,искащбезгрижнописане,мепомолидасъздамтозимодел.

Withmetadata:('Човекът, искащ безгрижно писане, ме помоли да създам този модел.',[{'end':12,'score':0.9301406145095825,'start':0,'substring':'Човекът, иск'},{'end':34,'score':0.93571537733078,'start':24,'substring':' писане, м'}])
Package: bgoncotree
BGOncoTreeis a Python package to standardize the use of the OncoTree within the BBGLab.InstallationBGOncoTreeworks with Python 3.5+ and can be installed with pip:pip install bgoncotreeUsageAny use ofBGOncoTreerequires to initialize the tree:frombgoncotree.mainimportBGOncoTreetree=BGOncoTree()BGOncoTreeaccepts a file as argument if you want toprovide your own tree.Each node is composed by:id: short identifier of the node (e.g.ALL)parent: ancestor nodechildren: list of descendent nodessynonyms: list of alternative names that can be used to search for this nodename: first provided synonym or node idPythonThe first thing to do isinitializetheBGOncoTreeobject:tree=BGOncoTree()TheBGOncoTreeobject is adictionarythat you can query toget
each node:node=tree['CANCER']Using the ID of the node or any synonym you canfindthe node:node=tree.find('clear cell sarcoma')Toexplorethe tree, you can use theiter_frommethod:fornode,levelintree.iter_from(tree['ALL'],descending=True):...Thelevelis simply an integer indicating the level of nested with respect
to thestarting_node.
If you want to explore the full tree, you can get theroot nodeas:root_node=tree.rootThe methodsdescendantsandancestorsdo the same asiter_frombut you do not need to indicate thedescendingflag, thelevelis not
returned and node can also be a string. E.g.:fornodeintree.descendants('ALL'):...Importantiter_from`,descendantsandancestorsmethods
return the starting node.There are two other methods that you can make use of.searchcan be used tosearchfor all nodes containing a word
in their names. E.g.:fornodeintree.search('acute'):...Thegetmethod is useful if you expect only one result from a search.
E.g.:node=tree.get('Cholangiocarcinoma')This method will raise an exception if none or more than 1 items are found.Command lineThe command line provides two utilities to explore the treebgoncotree ancestorsandbgoncotree descendants.
Output can be formatted in json, and you can also set a recursion limit.See first one level of childs ofHEMATOnode:bgoncotreedescendants--nodeHEMATO--json--limit2In addition, the samesearchfunction as in Python can be called
from the command line as:bgoncotree search acuteTab completion can be enabled addingeval"$(_BGONCOTREE_COMPLETE=sourcebgoncotree)"to your.bashrcfile as explained in thebash completion section of ClickDefining your own treeBGOncoTreeusesbgdatato get the most recent
version of theoncotreeused in the lab.
However, you can pass a file with your ownoncotree:from bgoncotree.main import BGOncoTree

tree = BGOncoTree(file)If you are interested in creating your ownoncotree,
you need atsvfile with 2 columns:IDandPARENT.
Each node can only have 1 parent, and there must but one node without a
parent: the root node.You can provide an additional extra columnNAMESwith a comma separated
list of synonyms for each node. The first name will be used as the
name to display.You canvalidateyour tree using the command line:bgoncotree validate my_tree.tsv
Package: bgpdumpy
bgpdumpyOverviewbgpdumpyis alibbgpdumpPython CFFI wrapper for analyzing MRT and MRTv2 BGP table dump files.Build RequirementsDebian/Ubuntuca-certificatesgccmakeautoconfpython-setuptoolspython-devlibbz2-devzlib1g-devlibffi-devExamplefrombgpdumpyimportBGPDump,TableDumpV2withBGPDump('latest-bview.gz')asbgp:forentryinbgp:# entry.body can be either be TableDumpV1 or TableDumpV2ifnotisinstance(entry.body,TableDumpV2):continue# I expect an MRT v2 table dump file# get a string representation of this prefixprefix='%s/%d'%(entry.body.prefix,entry.body.prefixLength)# get a list of each unique originating ASN for this prefixoriginatingASs=set([route.attr.asPath.split()[-1]forrouteinentry.body.routeEntries])# just print it for demonstration purposesprint('%s->%s'%(prefix,'/'.join(originatingASs)))# 1.0.0.0/24 -> 15169# 1.0.4.0/24 -> 56203# 1.0.5.0/24 -> 56203# 1.0.6.0/24 -> 56203# 1.0.7.0/24 -> 38803# 1.0.38.0/24 -> 24155# 1.0.64.0/18 -> 18144# 1.0.128.0/17 -> 9737# 1.0.128.0/18 -> 9737# 1.0.128.0/19 -> 9737# ...# 2001::/32 -> 6939# 2001:4:112::/48 -> 112# 2001:200::/32 -> 2500# 2001:200:900::/40 -> 7660# 2001:200:c000::/35 -> 23634
Package: bgpfu
BGP FUBGP FU is a toolbelt to assist with the automatic creation of safe prefix-filters.BGP FU can ingest data from various sources such as IRRs/RPKI/other, transpose those
according to your policy preferences, and generate partial router configurations.The jinja2 templating language is used to describe vendor specific output.ContactJoin us onirc.terahertz.netin#BGPFU
Package: bgplot
bgplotBasic Geometry Plotter (bgplot) is a simple python library used for fast and quick geometric graphics representation.Installationpip install bgplotBasic Usageimportbgplotasbgpfrombgplot.entitiesimportPoint,Vector,Line,Plane,Axes# Create graphics objectgraphics:bgp.Graphics=bgp.Graphics()# Personalize the graphic representationgraphics.set_limits(xlim=(0.0,1.2),ylim=(0.0,1.5),zlim=(0.0,1.0))graphics.set_view(azimut=-50.0,elevation=20.0)graphics.disable('ticks','axes','walls')graphics.set_background_color(bgp.Colors.white)# Entitiespoint:Point=Point(1.0,1.0,1.0)vector:Vector=Vector(0.0,0.0,-1.0)line:Line=Line.from_vector_and_point(vector,point)plane:Plane=Plane.from_normal_vector_and_point(Vector(0.0,0.0,1.0),Point(0.0,0.0,0.0))axes:Axes=Axes(Vector(1.0,0.0,0.0),Vector(0.0,1.0,0.0),Vector(0.0,0.0,1.0))intersection_point:Point=bgp.ops.get_intersection_of_line_and_plane(line,plane)# Representationgraphics.add_point(point)graphics.add_vector(vector,position=point,color=bgp.Colors.pink)graphics.add_line(line,style='--',line_range=(0.0,1.0),color=bgp.Colors.gray,linewidth=0.7)graphics.add_plane(plane,center=intersection_point,alpha=0.3)graphics.add_axes(axes)graphics.add_point(intersection_point,color=bgp.Colors.red)graphics.set_title('Visual representation')graphics.show()Documentation
Package: bgprocess
bgprocessReads the output of a process line-by-line with a time limit.Tested on Linux and macOS with Python 3.7-3.9.Install$pip3installbgprocessUsefrombgprocessimportBackgroundProcess,LineWaitingTimeoutwithBackgroundProcess(["some_program","arg1","arg2"])asprocess:# The process is already up and running in background.# We can continue to perform operations in our programdo_something()do_something_more()# ok, let's check how the process is doingtry:# getting for the first line from the process output.# If no line was output, this call will wait for the line# and only then will return the resultstr1=process.next_line()# waiting for the second line from the process outputstr2=process.next_line()# waiting for the next line, but not too long.# If the line does not appear in 0.25 seconds,# LineWaitingTimeout exception will be raisedstr3=process.next_line(read_timeout=0.25)# 0.25 seconds# skipping lines until we get the line matching the conditionstr4=bp.next_line(match=lambdaline:line.startswith('a'))# skipping lines until we get the line matching the condition.# If the mathing line does not appear in 3 seconds,# LineWaitingTimeout exception will be raisedstr5=process.next_line(match=lambdaline:line.startswith('a'),match_timeout=3)exceptLineWaitingTimeout:# we may get this exception when running next_line with# read_timeout or match_timeoutprint("Timeout!")If the process is finished,next_linereturnsNoneinstead of astr.
Package: bgpstream-website-collector
bgpstream_website_collectorDescriptionUsageInstallationTestingCreditsHistoryDevelopment/ContributingLicencePackage DescriptionThis package downloads information from bgpstream.com and stores it in a CSVAs a caveat, I wrote this a very long time ago when I was still an undergrad.
I've cleaned it up a bit, but this has a long way to go before it's good code quality
PRs welcome.
Also, almost everything is type ignored because mypy spazzes out with bs4
Also, the tests could really use a good updateUsagebgpstream_website_collectorfrom a script:frompathlibimportPathfromtypingimportAnyfrombgpstream_website_collectorimportBGPStreamWebsiteCollectordefmain():# Leave csv_path as None to not write CSVcsv_path:Path=Path.home()/"Desktop"/"bgpstream_website.csv"rows:list[dict[str,Any]]=BGPStreamWebsiteCollector(csv_path=csv_path).run()if__name__=="__main__":main()From the command line:bgpstream_website_collectorInstallationbgpstream_website_collectorInstall python and pip if you have not already.Then run:pip3installpip--upgrade
pip3installwheelFor production:pip3installbgpstream_website_collectorThis will install the package and all of it's python dependencies.If you want to install the project for development:gitclonehttps://github.com/jfuruness/bgpstream_website_collector.gitcdbgpstream_website_collector
pip3install-e.[test]pre-commitinstallTo test the development package:TestingTestingbgpstream_website_collectorTo test the package after installation:cd bgpstream_website_collector
pytest bgpstream_website_collector
ruff bgpstream_website_collector
black bgpstream_website_collector
mypy bgpstream_website_collectorIf you want to run it across multiple environments, and have python 3.10 and 3.11 installed:cd bgpstream_website_collector
toxCreditsbgpstream_website_collectorHuge contributions to original version in lib_bgp_data to the testing from Tony ZhengHistorybgpstream_website_collector1.1.2 Fixed event date bug
1.1.1 Fixed start_time -> start_date type
1.1.0 Added option to pass None to csv_path
1.0.0 First major releaseDevelopment/Contributingbgpstream_website_collectorFork it!Create your feature branch:git checkout -b my-new-featureTest itRun toxCommit your changes:git commit -am 'Add some feature'Push to the branch:git push origin my-new-featureEnsure github actions are passing testsEmail me atjfuruness@gmail.comif it's been a while and I haven't seen itLicensebgpstream_website_collectorBSD License (see license file)
Package: bgpstuff
python-bgpstuff.netpython-bgpstuff.net is a Python library that can access the various functions onbgpstuff.net.Requirementspip install bgpstuffSimple demo>>> import bgpstuff
>>> q = bgpstuff.Client()
>>> q.get_route("4.2.2.1")
>>> print(f"The route for 4.2.2.1 is {q.route}")
>>> The route for 4.2.2.1 is 4.0.0.0/9NotesThe library has a built in rate limiter to limit 30 requests per minute. If you go over this limit the application will sleep until there is more available requests.While you could change this in the code, if you do that I'll permanently ban your source IPs.DocumentationDocumentation for installation and all the methods can be found athttps://dev.bgpstuff.net/
Package: bgpview-client
BGPView APIOriginal Author: Sefa EyeogluOriginal Repo:https://gitlab.com/Scrumplex/pyqisThe original repo was archived, I cloned / forked the project into github
and will continue to add functionality.API client for BGPView.io APIUsageAn example use is provided inexamples/frombgpviewimportBGPViewviewer=BGPView()asn_info=viewer.get_asn(1299)asn_prefixes=viewer.get_asn_prefixes(1299)# find the origin of a prefixprefix_info=viewer.get_prefix("2607:3900::/32")LicenseThis project is licensed under the terms of the GNU General Public License 3.0. Read the full license texthere
Package: bgpy-pkg
DocshereBGPy Citation:@inproceedings{10.1145/3607505.3607509,
author = {Furuness, Justin and Morris, Cameron and Morillo, Reynaldo and Herzberg, Amir and Wang, Bing},
title = {BGPy: The BGP Python Security Simulator},
year = {2023},
isbn = {9798400707889},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3607505.3607509},
doi = {10.1145/3607505.3607509},
abstract = {The security of Border Gateway Protocol (BGP), and inter-domain routing in general, remains a challenge, in spite of its well-known importance, repeated attacks and incidents, and extensive efforts and research over decades. We present BGPy, an open-source, extensible, robust, easy-to-use and efficient BGP security simulator, to be used for research and education. BGPy allows realistic simulations of a large variety of BGP attacks and defenses. It is provided as a Python package, and can be further customized and extended, e.g., to investigate new attacks and new defense mechanisms. We describe how BGPy is currently used by multiple BGP security projects.},
booktitle = {Proceedings of the 16th Cyber Security Experimentation and Test Workshop},
pages = {41–56},
numpages = {16},
location = {Marina del Rey, CA, USA},
series = {CSET '23}
}