Skip to main content

archivy-git allows users to use version control with their Archivy instance.

It is an official extension developed by archivy

Install

You need to have archivy already installed.

Run pip install archivy_git.

Usage

$ archivy git --help
Usage: archivy git [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  pull   Pulls changes from remote to local repository.
  push   Pushes local changes to the remote.
  setup  Creates and sets up git repository.

Use the setup command to create and configure a new, empty git repository. If you connect your repo to a private GitHub repository, keep in mind you can no longer login with your username / password and you need to create a personal access token.

You can also just clone an existing repository, in which case you don't need to run setup

Then you can periodically pull/push through the command line. The plugin is not yet compatible with the web interface.

However, it can also be useful to automatically push changes when you make an edit or create a new note / bookmark. To do this, you'll need to configure a Hook.

These are events that Archivy exposes and that you can configure.

To do so, run archivy hooks to edit the file and create it if it doesn't exist.

We can use the sync_dataobj archivy-git method to sync changes when they are made.

Example:

from archivy.config import BaseHooks
class Hooks(BaseHooks):
	
	def on_edit(self, dataobj):
		from archivy_git import sync_dataobj	
		sync_dataobj(dataobj) # syncs / pushes changes

	def on_dataobj_create(self, dataobj):
		# the same for creation
		from archivy_git import sync_dataobj	
		sync_dataobj(dataobj)

Metadata

Release files for archivy-git 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for archivy-git 0.1.4
File Size Uploaded
archivy_git-0.1.4.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for archivy-git 0.1.4
File Interpreter ABI Platform
archivy_git-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / archivy_git-0.1.4.tar.gz

Download URL archivy_git-0.1.4.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
07c8a3fc6595aba992a103bdf903a4175902ce71ed714dbc2dcfe5e0887557d9
BLAKE2b-256 checksum
How to use checksums
8affc3ee3b667dbe796511a7bd1c6067da3333cabf2388dfecbd7ac9674b79d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.9

Release files / archivy_git-0.1.4-py3-none-any.whl

Download URL archivy_git-0.1.4-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fdf81284847aba155f9d8ff1901d4ed6a55515836278ca414b6a4e84882a9e84
BLAKE2b-256 checksum
How to use checksums
b673b791b8422851ea26a333bb7b7f3323d2a1bcccfa99c9b226e46f06daf4d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.9

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page