Skip to content

DataJoint CLI / launcher script #940

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

Closed
ixcat opened this issue Aug 9, 2021 · 1 comment
Closed

DataJoint CLI / launcher script #940

ixcat opened this issue Aug 9, 2021 · 1 comment
Assignees
Labels
enhancement Indicates new improvements stale Indicates issues, pull requests, or discussions are inactive
Milestone

Comments

@ixcat
Copy link

ixcat commented Aug 9, 2021

Feature Request

Problem

Often, a user wants to quickly check on something in a pipeline, etc. without using a 'full' pipeline environment with pipeline code, dependencies, etc. In these cases, often the workflow is:

  • start datajoint
  • set auth configuration
  • connect
  • create virtual modules
  • perform specific task desired

It would be nice to provide a simple utility to quickly launch a connected datajoint session with appropriate schemas loaded
as virtual modules for these cases. Potentially this could be designed in a future-proof way for managing other common DataJoint related things (e.g. create pipeline, change password, setup external, launch UI etc)

Requirements

  • cli utility to launch a connected datajoint session with virtual modules loaded

Justification

see 'Problem'

Alternative Considerations

see 'Problem'

Additional Research and Context

Created a basic script to this end for personal use available here: https://github.com/ixcat/djwip/blob/master/djwip/ixcat/djcli/dj.py

synopsis:

$ dj -h
usage: dj [-u user] [-p password] [-h host] [-s db:schema ...]

-u/-p/-h should be straightforward; -s will map the database schema named db to the schema virtual module named schema e.g. -s ixcat_subject:subject to map the ixcat_subject database schema to a virtual module bound to the variable schema within the resulting interpreter.

@ixcat ixcat added enhancement Indicates new improvements awaiting-triage labels Aug 9, 2021
@dimitri-yatsenko dimitri-yatsenko added features and removed enhancement Indicates new improvements awaiting-triage labels Oct 7, 2022
@dimitri-yatsenko dimitri-yatsenko added this to the DataJoint 1.0 milestone Oct 7, 2022
@jverswijver jverswijver removed their assignment May 25, 2023
@A-Baji A-Baji self-assigned this Jun 19, 2023
@A-Baji A-Baji linked a pull request Jun 22, 2023 that will close this issue
@yambottle yambottle added enhancement Indicates new improvements stale Indicates issues, pull requests, or discussions are inactive and removed features labels Mar 13, 2025
@yambottle
Copy link
Contributor

This issue is closed because there has been no activity for more than 365 days, please reopen if it's still applicable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Indicates new improvements stale Indicates issues, pull requests, or discussions are inactive
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants