Complete network lab transport and HTTP comparisons
This commit is contained in:
1 parent
a33e028581
commit
79ca3743b9
8 files changed
+52
-11
No files matched your search
@@ -1,10 +1,13 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
import requests
|
||||
|
||||
|
||||
API_URL = "https://git.vyatsu.ru/api/v1"
|
||||
REPO_NAME = "API_REPO"
|
||||
REPO_NAME = "lab3"
|
||||
if len(sys.argv) > 1:
|
||||
REPO_NAME = sys.argv[1]
|
||||
|
||||
|
||||
def load_token() -> str:
|
||||
@@ -53,4 +56,3 @@ elif response.status_code == 409:
|
||||
print(f"Repository {REPO_NAME} already exists")
|
||||
else:
|
||||
print(response.text)
|
||||
|
||||
Reference in new issue
Block a user