getsshpubkey


Namegetsshpubkey JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/danielhstahl/getsshpubkey
SummaryGets public ssh key
upload_time2023-02-11 16:20:51
maintainer
docs_urlNone
authorDaniel
requires_python>=3.7
licenseBSD-3-Clause
keywords jupyter jupyterlab jupyterlab3
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # getsshpubkey

[![Github Actions Status](https://github.com/danielhstahl/getsshpubkey/workflows/Build/badge.svg)](https://github.com/danielhstahl/getsshpubkey/actions/workflows/build.yml)
Gets public ssh key

This extension is composed of a Python package named `getsshpubkey`
for the server extension and a NPM package named `getsshpubkey`
for the frontend extension.

## Requirements

- JupyterLab >= 3.0

## Install

To install the extension, execute:

```bash
pip install getsshpubkey
```

## Uninstall

To remove the extension, execute:

```bash
pip uninstall getsshpubkey
```

## Troubleshoot

If you are seeing the frontend extension, but it is not working, check
that the server extension is enabled:

```bash
jupyter server extension list
```

If the server extension is installed and enabled, but you are not seeing
the frontend extension, check the frontend extension is installed:

```bash
jupyter labextension list
```

## Contributing

### Development install

Note: You will need NodeJS to build the extension package.

The `jlpm` command is JupyterLab's pinned version of
[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use
`yarn` or `npm` in lieu of `jlpm` below.

```bash
# Clone the repo to your local environment
# Change directory to the getsshpubkey directory
# Install package in development mode
pip install -e .
# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# Server extension must be manually installed in develop mode
jupyter server extension enable getsshpubkey
# Rebuild extension Typescript source after making changes
jlpm build
```

You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.

```bash
# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm watch
# Run JupyterLab in another terminal
jupyter lab
```

With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).

By default, the `jlpm build` command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:

```bash
jupyter lab build --minimize=False
```

### Development uninstall

```bash
# Server extension must be manually disabled in develop mode
jupyter server extension disable getsshpubkey
pip uninstall getsshpubkey
```

In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
folder is located. Then you can remove the symlink named `getsshpubkey` within that folder.

### Testing the extension

#### Server tests

This extension is using [Pytest](https://docs.pytest.org/) for Python code testing.

Install test dependencies (needed only once):

```sh
pip install -e ".[test]"
```

To execute them, run:

```sh
pytest -vv -r ap --cov getsshpubkey
```

#### Frontend tests

This extension is using [Jest](https://jestjs.io/) for JavaScript code testing.

To execute them, execute:

```sh
jlpm
jlpm test
```

#### Integration tests

This extension uses Playwright for the integration tests (aka user level tests).
More precisely, the JupyterLab helper [Galata](https://github.com/jupyterlab/jupyterlab/tree/master/galata) is used to handle testing the extension in JupyterLab.

More information are provided within the [ui-tests](./ui-tests/README.md) README.

### Packaging the extension

See [RELEASE](RELEASE.md)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/danielhstahl/getsshpubkey",
    "name": "getsshpubkey",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "Jupyter,JupyterLab,JupyterLab3",
    "author": "Daniel",
    "author_email": "danstahl1138@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/7b/35/3dfbf578795e27e76ead0b68fef07355c82972f926f469aa92d8c9cd9f3c/getsshpubkey-1.0.0.tar.gz",
    "platform": "Linux",
    "description": "# getsshpubkey\n\n[![Github Actions Status](https://github.com/danielhstahl/getsshpubkey/workflows/Build/badge.svg)](https://github.com/danielhstahl/getsshpubkey/actions/workflows/build.yml)\nGets public ssh key\n\nThis extension is composed of a Python package named `getsshpubkey`\nfor the server extension and a NPM package named `getsshpubkey`\nfor the frontend extension.\n\n## Requirements\n\n- JupyterLab >= 3.0\n\n## Install\n\nTo install the extension, execute:\n\n```bash\npip install getsshpubkey\n```\n\n## Uninstall\n\nTo remove the extension, execute:\n\n```bash\npip uninstall getsshpubkey\n```\n\n## Troubleshoot\n\nIf you are seeing the frontend extension, but it is not working, check\nthat the server extension is enabled:\n\n```bash\njupyter server extension list\n```\n\nIf the server extension is installed and enabled, but you are not seeing\nthe frontend extension, check the frontend extension is installed:\n\n```bash\njupyter labextension list\n```\n\n## Contributing\n\n### Development install\n\nNote: You will need NodeJS to build the extension package.\n\nThe `jlpm` command is JupyterLab's pinned version of\n[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use\n`yarn` or `npm` in lieu of `jlpm` below.\n\n```bash\n# Clone the repo to your local environment\n# Change directory to the getsshpubkey directory\n# Install package in development mode\npip install -e .\n# Link your development version of the extension with JupyterLab\njupyter labextension develop . --overwrite\n# Server extension must be manually installed in develop mode\njupyter server extension enable getsshpubkey\n# Rebuild extension Typescript source after making changes\njlpm build\n```\n\nYou can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.\n\n```bash\n# Watch the source directory in one terminal, automatically rebuilding when needed\njlpm watch\n# Run JupyterLab in another terminal\njupyter lab\n```\n\nWith the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).\n\nBy default, the `jlpm build` command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:\n\n```bash\njupyter lab build --minimize=False\n```\n\n### Development uninstall\n\n```bash\n# Server extension must be manually disabled in develop mode\njupyter server extension disable getsshpubkey\npip uninstall getsshpubkey\n```\n\nIn development mode, you will also need to remove the symlink created by `jupyter labextension develop`\ncommand. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`\nfolder is located. Then you can remove the symlink named `getsshpubkey` within that folder.\n\n### Testing the extension\n\n#### Server tests\n\nThis extension is using [Pytest](https://docs.pytest.org/) for Python code testing.\n\nInstall test dependencies (needed only once):\n\n```sh\npip install -e \".[test]\"\n```\n\nTo execute them, run:\n\n```sh\npytest -vv -r ap --cov getsshpubkey\n```\n\n#### Frontend tests\n\nThis extension is using [Jest](https://jestjs.io/) for JavaScript code testing.\n\nTo execute them, execute:\n\n```sh\njlpm\njlpm test\n```\n\n#### Integration tests\n\nThis extension uses Playwright for the integration tests (aka user level tests).\nMore precisely, the JupyterLab helper [Galata](https://github.com/jupyterlab/jupyterlab/tree/master/galata) is used to handle testing the extension in JupyterLab.\n\nMore information are provided within the [ui-tests](./ui-tests/README.md) README.\n\n### Packaging the extension\n\nSee [RELEASE](RELEASE.md)\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "Gets public ssh key",
    "version": "1.0.0",
    "split_keywords": [
        "jupyter",
        "jupyterlab",
        "jupyterlab3"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "68c0102f41fa481ffd4f817ea793618d1ef745590b3a71fa37feba4aa871f6a6",
                "md5": "784c9b2e76d0f69a04b9dafd75d5a69c",
                "sha256": "e4f528698bf66b8ae87d82060e932a3c61e40a74940ea53fa461d268011fed36"
            },
            "downloads": -1,
            "filename": "getsshpubkey-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "784c9b2e76d0f69a04b9dafd75d5a69c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 29982,
            "upload_time": "2023-02-11T16:20:49",
            "upload_time_iso_8601": "2023-02-11T16:20:49.786163Z",
            "url": "https://files.pythonhosted.org/packages/68/c0/102f41fa481ffd4f817ea793618d1ef745590b3a71fa37feba4aa871f6a6/getsshpubkey-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7b353dfbf578795e27e76ead0b68fef07355c82972f926f469aa92d8c9cd9f3c",
                "md5": "0e5fbf4ecbcbabd0495cafe88191e6a8",
                "sha256": "22229883ef14c9721cfd54df3e6dfcbf21507df2a8ae5e06f92cd3c7025974de"
            },
            "downloads": -1,
            "filename": "getsshpubkey-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "0e5fbf4ecbcbabd0495cafe88191e6a8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 170705,
            "upload_time": "2023-02-11T16:20:51",
            "upload_time_iso_8601": "2023-02-11T16:20:51.505081Z",
            "url": "https://files.pythonhosted.org/packages/7b/35/3dfbf578795e27e76ead0b68fef07355c82972f926f469aa92d8c9cd9f3c/getsshpubkey-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-11 16:20:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "danielhstahl",
    "github_project": "getsshpubkey",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "getsshpubkey"
}
        
Elapsed time: 0.89578s