Skip to content

Commit 68b8c3d

Browse files
committed
Completed Backend
At least for now backend is completed, committing and merging to main
1 parent 9caf3e5 commit 68b8c3d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+453
-171
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Security: Ignore environment variables
2+
.env

Backend/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from .config.configs import GIT_TOKEN
2+
3+
__all__ = ["GIT_TOKEN"]
File renamed without changes.
File renamed without changes.

Backend/config/.envex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PLACE .ENV STUFF HERE
497 Bytes
Binary file not shown.

Backend/config/configs.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from configparser import ConfigParser
2+
import os
3+
from dotenv import load_dotenv
4+
5+
6+
#Getting API Token to be used in other files
7+
load_dotenv()
8+
GIT_TOKEN = os.getenv('GITHUB_TOKEN')
9+
10+
if not GIT_TOKEN:
11+
raise ValueError("GIT_TOKEN not found! Please set it in .env file")
12+
4.55 KB
Binary file not shown.

OSS_Dev_Analytics/dataCollection/__pycache__/commit.cpython-313.pyc renamed to Backend/dataCollection/__pycache__/commit.cpython-313.pyc

3.14 KB
Binary file not shown.
3.63 KB
Binary file not shown.

0 commit comments

Comments
 (0)