abinazebinoy commited on
Commit
d76057f
·
1 Parent(s): d0cb0ea

fix: add __init__.py to all packages, create venv setup

Browse files

- Added __init__.py to scrapers, processing, graph, ai, api,
blockchain, config, tests folders
- Fixes ModuleNotFoundError when running scrapers
- Added main.py as project entry point
- Updated .gitignore to exclude venv/ and __pycache__/
- All scripts must now run from project root with: python -m scrapers.X

ai/__init__.py ADDED
File without changes
api/__init__.py ADDED
File without changes
blockchain/__init__.py ADDED
File without changes
config/__init__.py ADDED
File without changes
graph/__init__.py ADDED
File without changes
main.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ BharatGraph - Main entry point
3
+ Run scrapers from project root to avoid import issues.
4
+ Usage: python main.py
5
+ """
6
+
7
+ import sys
8
+ import os
9
+
10
+ # This ensures all imports work from project root
11
+ sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
12
+
13
+ if __name__ == "__main__":
14
+ print("BharatGraph is ready.")
15
+ print("Run scrapers like: python -m scrapers.datagov_scraper")
16
+
processing/__init__.py ADDED
File without changes
scrapers/__init__.py ADDED
File without changes
tests/__init__.py ADDED
File without changes