Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Subversion bindings which package nicely with `pip`?

Tags:

python

pip

svn

Are there any usable/documented Python bindings for Subversion that package nicely using pip?

I'm primarily concerned with adding the bindings to a virtual environment. My goal is to be able to do something like pip install <pkg>.

Packages I've tried:

  • pysvn
  • svn
  • subvertpy

Of these, subvertpy is the only that is on pypi and installs cleanly. Unfortunately, the documentation/usability of this package is terrible.

like image 903
sholsapp Avatar asked Mar 26 '12 07:03

sholsapp


People also ask

What is Pip in Python?

What is PIP? PIP is a package manager for Python packages, or modules if you like. Note: If you have Python version 3.4 or later, PIP is included by default. What is a Package? A package contains all the files you need for a module.

How do I install a Python package using pip?

Open the command line interface and tell PIP to download the package you want. Navigate your command line to the location of Python's script directory, and type the following: Now you have downloaded and installed your first package!

What is a pip package?

PIP is a package manager for Python packages, or modules if you like. Note: If you have Python version 3.4 or later, PIP is included by default. What is a Package?

What are the different types of bindings in Python?

Python Bindings Overview 1 ctypes. You’ll start with ctypes, which is a tool in the standard library for creating Python bindings. ... 2 CFFI. CFFI is the C Foreign Function Interface for Python. ... 3 PyBind11. PyBind11 takes a quite different approach to create Python bindings. ... 4 Cython. ...


1 Answers

I think the problem is that neither of the packages you mention are in pypi so pip can find them. There is a package called subvertpy which is in pypi so can be installed easily with pip the details of the package are here:

http://pypi.python.org/pypi/subvertpy/0.8.10

https://launchpad.net/subvertpy

However it does have some prerequisites that you must install first (SVN developer packages) so it may not suit you if you need a completely atomic pip install. Then again if you already have those libraries installed or you are willing to install the prerequisites once because you plan to use pip to install subvertpy into several virtual envs then it may be worth looking at. I haven't used subvertpy so I can't say how it compares to the other packages but given your requirement for pip install it might suit you.

like image 157
Andrew Burrows Avatar answered Sep 30 '22 20:09

Andrew Burrows