-
Notifications
You must be signed in to change notification settings - Fork 1
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
Cli tool #5
Conversation
…заимодействовать с локальной базой MongoDB через интерфейс командной строки
MONGO_AUTH_SOURCE="" | ||
|
||
PROJ_DIR="" | ||
FILE="" | ||
JSON="" | ||
OUT_DIR="" | ||
F_DIR="" | ||
FILES_DIR="" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Где-то будут коменты по этим штукам?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Где-то будут коменты по этим штукам?
надо не забыть
def use_collection(collection_name): | ||
""" | ||
:param collection_name: название запрашиваемой коллекции. | ||
:return: Возвращает коллекцию по запрашиваемому имени. | ||
""" | ||
return db[collection_name] | ||
|
||
|
||
def drop_collection(name) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Типы
EXAMPLE2 = "https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/2244/record/PNG" | ||
EXAMPLE3 = "https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/1/property/MolecularFormula,MolecularWeight,IUPACName,CanonicalSMILES/JSON" | ||
EXAMPLE4 = "https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/1,2/property/MolecularFormula,MolecularWeight,IUPACName,CanonicalSMILES/JSON" | ||
EXAMPLE5 = "https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/2244/record/PNG?image_size=large" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Где это используется?
Я не нашёл example5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Где это используется?
Я не нашёл example5
удалю, это от старых идей
нашла багу в первом коммите, поэтому пришлось повозиться немного.