git-annex-remote-internxt


Namegit-annex-remote-internxt JSON
Version 0.1.5 PyPI version JSON
download
home_pageNone
Summarygit annex remote internxt
upload_time2025-08-10 17:09:27
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords git git-annex internxt special-remote
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # git-annex remote for the Internxt Drive

[![PyPI version](https://badge.fury.io/py/git-annex-remote-internxt.svg)](https://badge.fury.io/py/git-annex-remote-internxt)
[![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)
[![Build status](https://ci.appveyor.com/api/projects/status/ju49sgandd8khyi9/branch/main?svg=true)](https://ci.appveyor.com/project/mih/git-annex-remote-internxt/branch/main)


[Internxt](https://internxt.com/about) is a cloud storage ecosystem with a focus on data security and privacy.
The `git-annex-remote-internxt` provides a [git-annex](https://git-annex.branchable.com) special remote implementation for [Internxt Drive](https://internxt.com/drive), a [GDPR](https://gdpr.eu/what-is-gdpr)-compliant, zero-knowledge-encrypted cloud storage.
It is tested to work on Linux, Mac, and Windows.

## Prerequisites

- An account for [Internxt Drive](https://internxt.com/drive)
- [Internxt CLI](https://github.com/internxt/cli#readme) installation

## Installation

The `git-annex-remote-internxt` can be installed from [PyPI](https://pypi.org/project/git-annex-remote-internxt).
A convenient way to do this is with [uv](https://github.com/astral-sh/uv):

```
uv tool install git-annex-remote-internxt
```

Use `uv tool update git-annex-remote-internxt` to update the installation to the latest version.
`git-annex` itself can be installed in the same fashion, too (`uv tool install git-annex`).

Next, make sure to install the [Internxt CLI](https://github.com/internxt/cli#readme), a CLI tool to interact with Internxt, via `npm`.
Please refer to the tools [installation instructions](https://github.com/internxt/cli#installation) for details.
The special remote require the CLI to work.

## Quickstart

Once you installed the requirements and have a functioning `internxt` CLI, login to your account:

```
internxt login
```

`git-annex-remote-internxt` will use this existing authentication until you `internxt logout`.

Afterwards, you can initialize the special remote within a git-annex repository (replace all placeholders marked with ``<>``):

```
git annex initremote \
    <name> \
    type=external externaltype=internxt encryption=none \
    folder=<UUID-or-path> [exporttree=yes]
```

`folder` is either the UUID of a directory on your Internxt drive (e.g., `uuid:9c9a4251-71b6-11f0-aed5-dc97ba1c2528`), or a relative path to a folder on your drive.
Using a folder UUID can be more robust.
This UUID will not change, even when the folder location is move on the drive (even when moved into the trash).
The folder UUID be taken from the Internxt web UI.
It is part of the URL of the page showing the folder's content.
A path will be resolved to a folder UUID on startup, implying some initial latency.
The advantage of a path-specification is that the respective folder need not exist (yet), and allows for programmatic creation of (many) annex remote deposits, following a particular pattern, without manual interaction with the Internxt Drive.

`encryption` is set to `none`, because the Internxt Drive CLI already does client-side encryption.
Technically it is possible to use it with additional git-annex driven encryption.

Setting the optional `exporttree=yes` enables git-annex's [export mode](https://git-annex.branchable.com/git-annex-export), which allows for representing a regular file tree of a repository on the Internxt Drive.

## Examples

Initialize using a particular Internxt Drive folder (by UUID) as a `internxt` remote (here using export-mode).
The UUID of a folder is shown in the URL of the Drive web UI,after navigating to the folder.
Consequently, the folder must already exist.

```
git annex initremote \
    internxt \
    type=external externaltype=internxt encryption=none \
    folder=uuid:b488fd99-348f-4a91-af24-2fce42ca82ae exporttree=yes
```

Instead of a folder node UUID, a path can be used (here `examples/simple`).
The given path is relative to the root of the Internxt Drive:

```
git annex initremote \
    internxt \
    type=external externaltype=internxt encryption=none \
    folder=examples/simple exporttree=yes
```

After initialization, `git annex copy|drop|get` can be used as usual.
See the [git-annex documentation](https://git-annex.branchable.com/git-annex-export) on how to set up a tracking branch for an export-mode remote, to be able to use `git annex push`.

With a configured special remote, adding the following configuration *also* enables using the remote as a regular Git remote (for `git push|pull`).

```
git config remote.internxt.url annex::
```

where "internxt" is the name of the remote initialized in the examples above.

For an export remote, now set a tracking branch:

```
git config remote.internxt.annex-tracking-branch main
```

where `main` is the branch to reflect on the drive via a `git annex push internxt`.

This offer a complete setup that allows for depositing the repository along side its annex keys on an Internxt Drive.
See the [git-annex documentation](https://git-annex.branchable.com/git-remote-annex) for more information.

## Limitations

At the moment, the special remote implementation builds on the Internxt CLI.
This prevents, for example, reporting upload/download progress, or resuming interrupted downloads.
In the future, this could change to a direct usage of the [Internxt Drive API](https://api.internxt.com/drive).
A (presently work-in-progress) [Go library](https://github.com/StarHack/go-internxt-drive) documents the feasibility of such an approach.

The Internxt Drive imposes limitations on some use cases:

- Inability to upload empty files (see [issue](https://github.com/internxt/cli/issues/285))
  If a repository contains empty annex-keys, this will cause special remote errors ("The file is empty. Uploading empty files is not allowed").
  Declare a git-annex [preferred content expression](https://git-annex.branchable.com/git-annex-preferred-content/), such as `git annex wanted internxt largerthan=0`, to avoid these errors.
- Inability to rename a file including the extension (see [issue](https://github.com/internxt/cli/issues/327))
- Inability to upload files with different destination names (with the CLI also on download, but check [this issue](https://github.com/internxt/cli/issues/125) for possible updates)

## Alternatives

There is a [work-in-progress PR](https://github.com/rclone/rclone/pull/8556) for adding Internxt Drive support to [rclone](https://rclone.org).
Once accepted, the Internxt Drive could be used via the [git-annex rclone special remote](https://rclone.org/commands/rclone_gitannex).


## FAQ

### I suspect something is wrong. How can I see what drive operations are performed?

If the environment variable `INTERNXT_DEBUG` is set, debug messages will be written to STDERR.
Each line is prefixed with `INXT`, followed by a short random identifier for associating debug messages from a single Internxt CLI call.
The first message (`RUN`) will name the command and its arguments.
Subsequent message indicate a successful execution (`OK`), or an error (`ERROR`).

### What can I do about the error "Bucket id was not provided"?

Log out of the drive and re-login. This should fix it.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "git-annex-remote-internxt",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "\"Adina S. Wagner\" <adina@ngln.eu>, Michael Hanke <mih@ngln.eu>",
    "keywords": "git, git-annex, internxt, special-remote",
    "author": null,
    "author_email": "\"Adina S. Wagner\" <adina@ngln.eu>, Michael Hanke <mih@ngln.eu>",
    "download_url": "https://files.pythonhosted.org/packages/08/ef/aa323cc0cae268782e0bde34fd2b796a0fd9a1ce0d2c07d0fedd325f3e61/git_annex_remote_internxt-0.1.5.tar.gz",
    "platform": null,
    "description": "# git-annex remote for the Internxt Drive\n\n[![PyPI version](https://badge.fury.io/py/git-annex-remote-internxt.svg)](https://badge.fury.io/py/git-annex-remote-internxt)\n[![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)\n[![Build status](https://ci.appveyor.com/api/projects/status/ju49sgandd8khyi9/branch/main?svg=true)](https://ci.appveyor.com/project/mih/git-annex-remote-internxt/branch/main)\n\n\n[Internxt](https://internxt.com/about) is a cloud storage ecosystem with a focus on data security and privacy.\nThe `git-annex-remote-internxt` provides a [git-annex](https://git-annex.branchable.com) special remote implementation for [Internxt Drive](https://internxt.com/drive), a [GDPR](https://gdpr.eu/what-is-gdpr)-compliant, zero-knowledge-encrypted cloud storage.\nIt is tested to work on Linux, Mac, and Windows.\n\n## Prerequisites\n\n- An account for [Internxt Drive](https://internxt.com/drive)\n- [Internxt CLI](https://github.com/internxt/cli#readme) installation\n\n## Installation\n\nThe `git-annex-remote-internxt` can be installed from [PyPI](https://pypi.org/project/git-annex-remote-internxt).\nA convenient way to do this is with [uv](https://github.com/astral-sh/uv):\n\n```\nuv tool install git-annex-remote-internxt\n```\n\nUse `uv tool update git-annex-remote-internxt` to update the installation to the latest version.\n`git-annex` itself can be installed in the same fashion, too (`uv tool install git-annex`).\n\nNext, make sure to install the [Internxt CLI](https://github.com/internxt/cli#readme), a CLI tool to interact with Internxt, via `npm`.\nPlease refer to the tools [installation instructions](https://github.com/internxt/cli#installation) for details.\nThe special remote require the CLI to work.\n\n## Quickstart\n\nOnce you installed the requirements and have a functioning `internxt` CLI, login to your account:\n\n```\ninternxt login\n```\n\n`git-annex-remote-internxt` will use this existing authentication until you `internxt logout`.\n\nAfterwards, you can initialize the special remote within a git-annex repository (replace all placeholders marked with ``<>``):\n\n```\ngit annex initremote \\\n    <name> \\\n    type=external externaltype=internxt encryption=none \\\n    folder=<UUID-or-path> [exporttree=yes]\n```\n\n`folder` is either the UUID of a directory on your Internxt drive (e.g., `uuid:9c9a4251-71b6-11f0-aed5-dc97ba1c2528`), or a relative path to a folder on your drive.\nUsing a folder UUID can be more robust.\nThis UUID will not change, even when the folder location is move on the drive (even when moved into the trash).\nThe folder UUID be taken from the Internxt web UI.\nIt is part of the URL of the page showing the folder's content.\nA path will be resolved to a folder UUID on startup, implying some initial latency.\nThe advantage of a path-specification is that the respective folder need not exist (yet), and allows for programmatic creation of (many) annex remote deposits, following a particular pattern, without manual interaction with the Internxt Drive.\n\n`encryption` is set to `none`, because the Internxt Drive CLI already does client-side encryption.\nTechnically it is possible to use it with additional git-annex driven encryption.\n\nSetting the optional `exporttree=yes` enables git-annex's [export mode](https://git-annex.branchable.com/git-annex-export), which allows for representing a regular file tree of a repository on the Internxt Drive.\n\n## Examples\n\nInitialize using a particular Internxt Drive folder (by UUID) as a `internxt` remote (here using export-mode).\nThe UUID of a folder is shown in the URL of the Drive web UI,after navigating to the folder.\nConsequently, the folder must already exist.\n\n```\ngit annex initremote \\\n    internxt \\\n    type=external externaltype=internxt encryption=none \\\n    folder=uuid:b488fd99-348f-4a91-af24-2fce42ca82ae exporttree=yes\n```\n\nInstead of a folder node UUID, a path can be used (here `examples/simple`).\nThe given path is relative to the root of the Internxt Drive:\n\n```\ngit annex initremote \\\n    internxt \\\n    type=external externaltype=internxt encryption=none \\\n    folder=examples/simple exporttree=yes\n```\n\nAfter initialization, `git annex copy|drop|get` can be used as usual.\nSee the [git-annex documentation](https://git-annex.branchable.com/git-annex-export) on how to set up a tracking branch for an export-mode remote, to be able to use `git annex push`.\n\nWith a configured special remote, adding the following configuration *also* enables using the remote as a regular Git remote (for `git push|pull`).\n\n```\ngit config remote.internxt.url annex::\n```\n\nwhere \"internxt\" is the name of the remote initialized in the examples above.\n\nFor an export remote, now set a tracking branch:\n\n```\ngit config remote.internxt.annex-tracking-branch main\n```\n\nwhere `main` is the branch to reflect on the drive via a `git annex push internxt`.\n\nThis offer a complete setup that allows for depositing the repository along side its annex keys on an Internxt Drive.\nSee the [git-annex documentation](https://git-annex.branchable.com/git-remote-annex) for more information.\n\n## Limitations\n\nAt the moment, the special remote implementation builds on the Internxt CLI.\nThis prevents, for example, reporting upload/download progress, or resuming interrupted downloads.\nIn the future, this could change to a direct usage of the [Internxt Drive API](https://api.internxt.com/drive).\nA (presently work-in-progress) [Go library](https://github.com/StarHack/go-internxt-drive) documents the feasibility of such an approach.\n\nThe Internxt Drive imposes limitations on some use cases:\n\n- Inability to upload empty files (see [issue](https://github.com/internxt/cli/issues/285))\n  If a repository contains empty annex-keys, this will cause special remote errors (\"The file is empty. Uploading empty files is not allowed\").\n  Declare a git-annex [preferred content expression](https://git-annex.branchable.com/git-annex-preferred-content/), such as `git annex wanted internxt largerthan=0`, to avoid these errors.\n- Inability to rename a file including the extension (see [issue](https://github.com/internxt/cli/issues/327))\n- Inability to upload files with different destination names (with the CLI also on download, but check [this issue](https://github.com/internxt/cli/issues/125) for possible updates)\n\n## Alternatives\n\nThere is a [work-in-progress PR](https://github.com/rclone/rclone/pull/8556) for adding Internxt Drive support to [rclone](https://rclone.org).\nOnce accepted, the Internxt Drive could be used via the [git-annex rclone special remote](https://rclone.org/commands/rclone_gitannex).\n\n\n## FAQ\n\n### I suspect something is wrong. How can I see what drive operations are performed?\n\nIf the environment variable `INTERNXT_DEBUG` is set, debug messages will be written to STDERR.\nEach line is prefixed with `INXT`, followed by a short random identifier for associating debug messages from a single Internxt CLI call.\nThe first message (`RUN`) will name the command and its arguments.\nSubsequent message indicate a successful execution (`OK`), or an error (`ERROR`).\n\n### What can I do about the error \"Bucket id was not provided\"?\n\nLog out of the drive and re-login. This should fix it.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "git annex remote internxt",
    "version": "0.1.5",
    "project_urls": {
        "Changelog": "https://hub.datalad.org/git-annex/git-annex-remote-internxt/src/branch/main/CHANGELOG.md",
        "Documentation": "https://hub.datalad.org/git-annex/git-annex-remote-internxt#readme",
        "Homepage": "https://hub.datalad.org/git-annex/git-annex-remote-internxt",
        "Issues": "https://hub.datalad.org/git-annex/git-annex-remote-internxt/issues",
        "Source": "https://hub.datalad.org/git-annex/git-annex-remote-internxt"
    },
    "split_keywords": [
        "git",
        " git-annex",
        " internxt",
        " special-remote"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "258f3256df942ca3f7a1ead7555c5d1ce312459bd1e37c15144d3acc1d5e1365",
                "md5": "78fa6c4b57463dc799c7f45d790954a2",
                "sha256": "8a1b384b8a1d2328959f2ddad29523b3a45a1876efc5c0c4f26fd4154396f02b"
            },
            "downloads": -1,
            "filename": "git_annex_remote_internxt-0.1.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "78fa6c4b57463dc799c7f45d790954a2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 23130,
            "upload_time": "2025-08-10T17:09:26",
            "upload_time_iso_8601": "2025-08-10T17:09:26.191551Z",
            "url": "https://files.pythonhosted.org/packages/25/8f/3256df942ca3f7a1ead7555c5d1ce312459bd1e37c15144d3acc1d5e1365/git_annex_remote_internxt-0.1.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "08efaa323cc0cae268782e0bde34fd2b796a0fd9a1ce0d2c07d0fedd325f3e61",
                "md5": "b3e8f8a889a66932b85ee19bdbbef935",
                "sha256": "f01654c34fc5f1c5be482784177803bc0fdd817959d519cfe6e5cf89680d1f31"
            },
            "downloads": -1,
            "filename": "git_annex_remote_internxt-0.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "b3e8f8a889a66932b85ee19bdbbef935",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 29963,
            "upload_time": "2025-08-10T17:09:27",
            "upload_time_iso_8601": "2025-08-10T17:09:27.519134Z",
            "url": "https://files.pythonhosted.org/packages/08/ef/aa323cc0cae268782e0bde34fd2b796a0fd9a1ce0d2c07d0fedd325f3e61/git_annex_remote_internxt-0.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-10 17:09:27",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "git-annex-remote-internxt"
}
        
Elapsed time: 1.88423s