Skip to content

Conversation

@gustavocidornelas
Copy link
Contributor

Summary

  • Adds the push function to /src/lib/data/commit.py that enables pushing a commit from the Python SDK.
  • It is supposed to be used as follows:
from openlayer import Openlayer
from openlayer.lib.data import commit

client = Openlayer()
commit.push(
    client=client,
    directory="./my-project",  # Path to the project dir, with the `openlayer.json` and datasets
    project_id=YOUR_PROJECT_ID_HERE,
    message="Initial commit" # Defaults to 'New commit' 
)

@gustavocidornelas gustavocidornelas merged commit 85829d1 into main Nov 4, 2024
2 checks passed
@gustavocidornelas gustavocidornelas deleted the cid/push branch November 4, 2024 17:02
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.

3 participants