зеркало из
https://github.com/viginum-datalab/twscrape.git
synced 2025-10-29 21:16:25 +02:00
update version
Этот коммит содержится в:
родитель
2492de1417
Коммит
e3e1ee18fe
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "twscrape"
|
name = "twscrape"
|
||||||
version = "0.1.1"
|
version = "0.2.0"
|
||||||
authors = [{name = "vladkens", email = "v.pronsky@gmail.com"}]
|
authors = [{name = "vladkens", email = "v.pronsky@gmail.com"}]
|
||||||
description = "Twitter GraphQL and Search API implementation with SNScrape data models"
|
description = "Twitter GraphQL and Search API implementation with SNScrape data models"
|
||||||
readme = "readme.md"
|
readme = "readme.md"
|
||||||
|
|||||||
@ -3,13 +3,12 @@
|
|||||||
import argparse
|
import argparse
|
||||||
import asyncio
|
import asyncio
|
||||||
import io
|
import io
|
||||||
|
from importlib.metadata import version
|
||||||
|
|
||||||
from .api import API, AccountsPool
|
from .api import API, AccountsPool
|
||||||
from .logger import logger, set_log_level
|
from .logger import logger, set_log_level
|
||||||
from .utils import print_table
|
from .utils import print_table
|
||||||
|
|
||||||
VER = "0.1.0"
|
|
||||||
|
|
||||||
|
|
||||||
class CustomHelpFormatter(argparse.HelpFormatter):
|
class CustomHelpFormatter(argparse.HelpFormatter):
|
||||||
def __init__(self, prog):
|
def __init__(self, prog):
|
||||||
@ -31,7 +30,7 @@ async def main(args):
|
|||||||
set_log_level("DEBUG")
|
set_log_level("DEBUG")
|
||||||
|
|
||||||
if args.command == "version":
|
if args.command == "version":
|
||||||
print(VER)
|
print(version("twscrape"))
|
||||||
return
|
return
|
||||||
|
|
||||||
logger.debug(f"Using database: {args.db}")
|
logger.debug(f"Using database: {args.db}")
|
||||||
|
|||||||
Загрузка…
x
Ссылка в новой задаче
Block a user