Skip to content

Martiusweb/aiogit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

aiogit

aiogit is a small wrapper to git using asyncio processes facility.

Author: Martin Richard License : New BSD License

How to use ?

import asyncio, aiogit

loop = asyncio.get_event_loop()

@asyncio.coroutine
def create_repo():
    repository = aiogit.Repository('/path/to/the/repo')
    yield from repository.init()

    with open('/path/to/the/repo/README', 'w') as f:
        f.write('Readme')

    yield from repository.add(all=True)
    yield from repository.commit("initial commit")


loop.run_until_complete(create_repo())

Notes

Currently, I only implement what I need from git for a pet project, there are a lot of features missing (like git-pull).

It should work with pretty old versions of git, but it has only been test with git 2.1+.

About

A wrapper to git on top of asyncio (WIP)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published