Skip to content

Commit 9b08b42

Browse files
committed
Add .gitignore, update main.py to use asyncio, create requirements and runtime files, and clean up rib.py
1 parent 4f58552 commit 9b08b42

5 files changed

Lines changed: 42 additions & 16 deletions

File tree

.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Windows thumbnail cache files
2+
Thumbs.db
3+
ehthumbs.db
4+
ehthumbs_vista.db
5+
6+
# Folder config file
7+
Desktop.ini
8+
9+
# Recycle Bin used on file shares
10+
$RECYCLE.BIN/
11+
12+
# Windows Installer files
13+
*.cab
14+
*.msi
15+
*.msm
16+
*.msp
17+
18+
# Windows shortcuts
19+
*.lnk
20+
21+
# Python Cache
22+
__pycache__
23+
24+
# RocksDB
25+
.rocksdb/
26+
27+
# Operating System Files
28+
.DS_Store
29+
.idea
30+
*.log
31+
*.pyc
32+
*.tgz
33+
*.gz
34+
*.db

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ async def main():
101101
os._exit(1)
102102

103103
if __name__ == "__main__":
104-
main()
104+
asyncio.run(main())

requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pytz
2+
requests==2.32.3
3+
beautifulsoup4==4.13.3
4+
confluent-kafka==2.5.3
5+
rocksdb-py==0.0.5
6+
scapy==2.6.1

runtime.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python-3.11.3

tasks/rib.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
"""
2-
BGPDATA - BGP Data Collection and Analytics Service
3-
4-
This software is part of the BGPDATA project, which is designed to collect, process, and analyze BGP data from various sources.
5-
It helps researchers and network operators get insights into their network by providing a scalable and reliable way to analyze and inspect historical and live BGP data from Route Collectors around the world.
6-
7-
Author: Robin Röper
8-
Co-Author: Tim Evens
9-
10-
Eclipse Public License - v 1.0
11-
12-
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC
13-
LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM
14-
CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
15-
"""
161
from scapy.contrib.bgp import BGPHeader, BGPOpen, BGPUpdate, BGPOptParam, BGPCapMultiprotocol, BGPCapGeneric, BGPCapFourBytesASN
172
from bs4 import BeautifulSoup
183
from datetime import datetime

0 commit comments

Comments
 (0)