Skip to main content

A client to bridge GIT and your overleaf projects (community edition)

Project description

Python-sharelatex is a library to interact with https://ovelerleaf.irisa.fr. It also includes a command line tools to sync your remote project with Git. This allows you to work offline on your project and later sync your local copy with the remote one.

Installation

# Latest stable version
pip install sharelatex

# Development version
git clone https://gitlab.inria.fr/sed-rennes/sharelatex/python-sharelatex
cd python-sharelatex
pip install [-e] .

Compatibility notes

The tool is targeting the community edition of Overleaf and we are testing it on:

Persistent sessions

Sessions are persistent and stored in the application directory (exact might differ on the OS used). Is uses appdirs internally.

Note on passwords management

Passwords are stored in your keyring service (Keychain, Kwallet …) thanks to the keyring library. Please refer to the dedicated documentation for more information.

Quick examples

Display the possible actions

slatex is a subcommand of git that calls the git-slatex programm shipped by this project.

$) git slatex

Usage: git-slatex [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  clone    Get (clone) the files from sharelatex projet URL and crate a...
  compile  Compile the remote version of a project
  new      Upload the current directory as a new sharelatex project
  pull     Pull the files from sharelatex.
  push     Push the committed changes back to sharelatex

For instance you can get the help on a specific sub-command with the following:

git slatex clone --help

Get an existing project on slatex

mkdir test
cd test
# download all files of a remote project
git slatex clone <project_URL> <local_path_to_project>

Editing and pushing back to slatex

# edit your files
# commit, commit, commit ...
#
# Push back your change to sharelatex
git slatex push

Concurrent updates may occur between your local files (because you changed them) and the remote ones (because you collaborators changed them). So before pushing, we try to make sure the merge between the remote copy and the local ones is ok. You’ll have to resolve the conflict manually (as usual with Git) and attempt a new push.

Pull changes from sharelatex to local (like a git pull)

# Pull changes from sharelatex
git slatex pull

Create a remote project from a local git

git slatex new [OPTIONS] PROJECTNAME BASE_URL

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sharelatex-1.1.1-py3-none-any.whl (37.2 kB view details)

Uploaded Python 3

File details

Details for the file sharelatex-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: sharelatex-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 37.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for sharelatex-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 730cfa9464a03918be7ecf75138d91735d1935fa99c68c9b9e7b140ac2cd59a6
MD5 0b3276beb105a4d52eabe93bbda598f2
BLAKE2b-256 543b8393f7bb3f05e6205f60d17fc787806c2d1cd971294b27c742755640a5f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page