Published 24 days ago
Published 24 days ago
co0ontty s
Updated 24 days ago
0
A simple guide to install and use the Intelligence Database library.
Install the library from TestPyPI (official PyPI release coming soon):
1pip3 install --index-url https://test.pypi.org/simple/ intelligence-db
Here's a simple example based on the demo code:
1from intelligence_db import IntelligenceDB
2
3def main():
4 # Database file path
5 db_file = '/path/to/your/intelligence.db'
6
7 # Load database
8 db = IntelligenceDB(db_file)
9
10 # Display statistics
11 stats = db.get_stats()
12 print(f"Statistics: {stats}")
13
14 # Query test
15 result = db.query_item("13.196.249.206")
16 if result:
17 print(result)
18
19if __name__ == '__main__':
20 main()
The cryptography library will be automatically installed as a dependency.
Import the library:
1from intelligence_db import IntelligenceDB
Create database instance:
1db = IntelligenceDB('/path/to/intelligence.db')
Query data:
1result = db.query_item("192.168.1.1")
Get statistics:
1stats = db.get_stats()
That's it! You're ready to use the Intelligence Database library.