Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewriting the project #45

Merged
merged 48 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
1ecc23b
delete old files
houshmand-2005 May 13, 2024
747ca41
Complete rewrite for improved functionality and efficiency
houshmand-2005 May 13, 2024
4b9629b
rename NodeData to NodeType
houshmand-2005 May 13, 2024
c9b63bb
Add types for panel, node, and user
houshmand-2005 May 13, 2024
1bc46d1
Add basic logging functionality to the application
houshmand-2005 May 13, 2024
42f7bc9
rename PanelCredentials to PanelType
houshmand-2005 May 14, 2024
0a66097
small refactor
houshmand-2005 May 14, 2024
029b7ea
Add websocket functionality to retrieve logs from the panel and nodes
houshmand-2005 May 14, 2024
60cda45
Parsing and validation functionality
houshmand-2005 May 14, 2024
4573e06
Add docstring
houshmand-2005 May 14, 2024
ed46338
simple refactor
houshmand-2005 May 14, 2024
d58e3b1
simple refactor
houshmand-2005 May 14, 2024
3388312
Add httpx import error handling in panel_api.py and parse_logs.py and…
houshmand-2005 May 14, 2024
03683f6
Use UserType and update ACTIVE_USERS with dictionary
houshmand-2005 May 15, 2024
4252bf5
Add sys.exit() to handle ImportError
houshmand-2005 May 16, 2024
36b5806
handle disabled users and enable them periodically
houshmand-2005 May 16, 2024
9013814
Add UserType and UserStatus to utils/types.py
houshmand-2005 May 18, 2024
301febe
Add telegram bot
houshmand-2005 May 18, 2024
6201c2a
send logs to telegram bot
houshmand-2005 May 18, 2024
15de0f2
Add read_config function to utils/read_config.py
houshmand-2005 May 20, 2024
bb8212b
Now read data form config file
houshmand-2005 May 20, 2024
c0a8708
Refactor
houshmand-2005 May 20, 2024
2d16db7
Update maxBytes in file_handler to 7MB
houshmand-2005 May 20, 2024
5d427bc
Refactor
houshmand-2005 May 20, 2024
f8a6526
send logs to telegram
houshmand-2005 May 20, 2024
463788a
Add check_usage
houshmand-2005 May 20, 2024
969c764
Add test file
houshmand-2005 May 20, 2024
0cd7fbc
Refactor
houshmand-2005 May 20, 2024
aa364a2
Add run_telegram
houshmand-2005 May 20, 2024
44b3566
release beta version
houshmand-2005 May 20, 2024
fc152b3
Add script for managing program execution and configuration
houshmand-2005 May 20, 2024
2da1ed0
Refactor code (pylint)
houshmand-2005 May 20, 2024
87d0f21
Add github action files
houshmand-2005 May 20, 2024
26e8c7a
Add download link
houshmand-2005 May 20, 2024
2e33f2e
Add script to readme
houshmand-2005 May 20, 2024
aaa50a0
update 'python-telegram-bot'
houshmand-2005 May 27, 2024
ff7563d
fix a bug handling cancellation of tasks and adding new nodes
houshmand-2005 May 27, 2024
f6e5f01
disable SSL verification
houshmand-2005 May 29, 2024
412f6b6
update VERSION to 1.0.2
houshmand-2005 May 29, 2024
ad11d4e
Update invalid IP list handling
houshmand-2005 May 30, 2024
c6b54a0
Add build requirements
houshmand-2005 May 30, 2024
fb794ef
update readme
houshmand-2005 May 30, 2024
2288a2c
update VERSION to 1.0.3
houshmand-2005 May 30, 2024
1144e13
remove unused code
houshmand-2005 May 31, 2024
5bb423f
Add build instructions
houshmand-2005 May 31, 2024
1f87cc8
update readme
houshmand-2005 May 31, 2024
8abbe4d
replace asyncio.sleep with time.sleep
houshmand-2005 May 31, 2024
036324f
update Python version to 3.12
houshmand-2005 May 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build and Upload V2IpLimit

on:
push:
paths:
- "v2iplimit.py"

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}

steps:
- name: Check-out repository
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: "pip"
cache-dependency-path: |
**/requirements*.txt

- name: Install your Dependencies
run: |
pip install -r requirements.txt
- name: Build Executable with Nuitka
uses: Nuitka/Nuitka-Action@main
with:
nuitka-version: main
script-name: v2iplimit.py
standalone: true
onefile: true
follow-imports: true
include-package: "websockets,logging"
python-flag: "-OO"

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ runner.os }}_amd64_build
path: |
build/*.bin
build/*.exe
23 changes: 23 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Pylint

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analyzing the code with pylint
run: |
pylint $(git ls-files '*.py')
233 changes: 0 additions & 233 deletions Marzban/README.md

This file was deleted.

22 changes: 0 additions & 22 deletions Marzban/cronjob.sh

This file was deleted.

Loading
Loading