# push

> **Function** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/hub/push)

Push an object to the hub and returns the URL it can be viewed at in a browser.

## Signature

```python
push(
    repo_full_name: str,
    object: Any,
    *,
    api_url: str | None = None,
    api_key: str | None = None,
    parent_commit_hash: str | None = None,
    new_repo_is_public: bool = False,
    new_repo_description: str | None = None,
    readme: str | None = None,
    tags: Sequence[str] | None = None,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `repo_full_name` | `str` | Yes | The full name of the prompt to push to in the format of `owner/prompt_name` or `prompt_name`. |
| `object` | `Any` | Yes | The LangChain object to serialize and push to the hub. |
| `api_url` | `str \| None` | No | The URL of the LangChain Hub API. Defaults to the hosted API service if you have an API key set, or a localhost instance if not. (default: `None`) |
| `api_key` | `str \| None` | No | The API key to use to authenticate with the LangChain Hub API. (default: `None`) |
| `parent_commit_hash` | `str \| None` | No | The commit hash of the parent commit to push to. Defaults to the latest commit automatically. (default: `None`) |
| `new_repo_is_public` | `bool` | No | Whether the prompt should be public. (default: `False`) |
| `new_repo_description` | `str \| None` | No | The description of the prompt. (default: `None`) |
| `readme` | `str \| None` | No | README content for the repository. (default: `None`) |
| `tags` | `Sequence[str] \| None` | No | Tags to associate with the prompt. (default: `None`) |

## Returns

`str`

URL where the pushed object can be viewed in a browser.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/9f232caa7a8fe1ca042a401942d5d90d54ceb1a6/libs/langchain/langchain_classic/hub.py#L55)