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

Cli tool #5

Merged
merged 3 commits into from
Jul 7, 2021
Merged

Cli tool #5

merged 3 commits into from
Jul 7, 2021

Conversation

vvrubel
Copy link
Owner

@vvrubel vvrubel commented Jul 7, 2021

нашла багу в первом коммите, поэтому пришлось повозиться немного.

…заимодействовать с локальной базой MongoDB через интерфейс командной строки
@vvrubel vvrubel requested a review from churnikov July 7, 2021 12:23
Comment on lines 10 to +15
MONGO_AUTH_SOURCE=""

PROJ_DIR=""
FILE=""
JSON=""
OUT_DIR=""
F_DIR=""
FILES_DIR=""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Где-то будут коменты по этим штукам?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Где-то будут коменты по этим штукам?

надо не забыть

Comment on lines +25 to +33
def use_collection(collection_name):
"""
:param collection_name: название запрашиваемой коллекции.
:return: Возвращает коллекцию по запрашиваемому имени.
"""
return db[collection_name]


def drop_collection(name) -> None:
Copy link
Collaborator

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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Где это используется?
Я не нашёл example5

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Где это используется?
Я не нашёл example5

удалю, это от старых идей

@vvrubel vvrubel merged commit eb22235 into master Jul 7, 2021
@vvrubel vvrubel deleted the cli-tool branch July 7, 2021 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants