Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ tags
*.py[co]
MANIFEST
dist/*
agithub.egg-info/
arestclient.egg-info/
build/
dist/
.tox
.eggs
.DS_Store
107 changes: 0 additions & 107 deletions CHANGELOG.md

This file was deleted.

8 changes: 0 additions & 8 deletions CODE_OF_CONDUCT.md

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> It doesn't know, and you don't care!

`agithub` is a REST API client with transparent syntax which facilitates
`arestclient` is a REST API client with transparent syntax which facilitates
rapid prototyping — on *any* REST API!

Originally tailored to the GitHub REST API, AGitHub has grown up to
Expand Down
20 changes: 0 additions & 20 deletions SECURITY.md

This file was deleted.

4 changes: 2 additions & 2 deletions agithub/AppVeyor.py → arestclient/AppVeyor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
# AppVeyor REST API: https://www.appveyor.com/docs/api/
# Version 1.0 (2017-02-13) by [email protected]

from agithub.base import API, ConnectionProperties, Client
from arestclient.base import API, ConnectionProperties, Client


class AppVeyor(API):
"""
The agnostic AppVeyor API. It doesn't know, and you don't care.
>>> from agithub.AppVeyor import AppVeyor
>>> from arestclient.AppVeyor import AppVeyor
>>> ci = AppVeyor('<your AppVeyor API token>')
>>> status, data = ci.api.projects.get()
>>> data
Expand Down
2 changes: 1 addition & 1 deletion agithub/DigitalOcean.py → arestclient/DigitalOcean.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2012-2016 Jonathan Paugh and contributors
# See COPYING for license details
from agithub.base import API, ConnectionProperties, Client
from arestclient.base import API, ConnectionProperties, Client


class DigitalOcean(API):
Expand Down
2 changes: 1 addition & 1 deletion agithub/Facebook.py → arestclient/Facebook.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2012-2016 Jonathan Paugh and contributors
# See COPYING for license details
from agithub.base import API, ConnectionProperties, Client
from arestclient.base import API, ConnectionProperties, Client


class Facebook(API):
Expand Down
6 changes: 3 additions & 3 deletions agithub/GitHub.py → arestclient/GitHub.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import re
import logging

from agithub.base import (
from arestclient.base import (
API, ConnectionProperties, Client, RequestBody, ResponseBody)

logger = logging.getLogger(__name__)
Expand All @@ -14,7 +14,7 @@
class GitHub(API):
"""
The agnostic GitHub API. It doesn't know, and you don't care.
>>> from agithub.GitHub import GitHub
>>> from arestclient.GitHub import GitHub
>>> g = GitHub('user', 'pass')
>>> status, data = g.issues.get(filter='subscribed')
>>> data
Expand Down Expand Up @@ -86,7 +86,7 @@ def request(self, method, url, bodyData, headers):
"""Low-level networking. All HTTP-method methods call this"""

headers = self._fix_headers(headers)
url = self.prop.constructUrl(url)
url = self.prop.construct_url(url)

if bodyData is None:
# Sending a content-type w/o the body might break some
Expand Down
2 changes: 1 addition & 1 deletion agithub/Maven.py → arestclient/Maven.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2012-2016 Jonathan Paugh and contributors
# See COPYING for license details
from agithub.base import API, Client, ConnectionProperties
from arestclient.base import API, Client, ConnectionProperties


class Maven(API):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2012-2016 Jonathan Paugh and contributors
# See COPYING for license details
from agithub.base import API, ConnectionProperties, Client
from arestclient.base import API, ConnectionProperties, Client


class OpenWeatherMap(API):
Expand Down
2 changes: 1 addition & 1 deletion agithub/SalesForce.py → arestclient/SalesForce.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2012-2016 Jonathan Paugh and contributors
# See COPYING for license details
from agithub.base import API, ConnectionProperties, Client
from arestclient.base import API, ConnectionProperties, Client


class SalesForce(API):
Expand Down
2 changes: 1 addition & 1 deletion agithub/__init__.py → arestclient/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright 2012-2016 Jonathan Paugh and contributors
# See COPYING for license details
from agithub.base import VERSION, STR_VERSION
from arestclient.base import VERSION, STR_VERSION

__all__ = ["VERSION", "STR_VERSION"]
4 changes: 2 additions & 2 deletions agithub/agithub_test.py → arestclient/arestclient_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# Copyright 2012-2016 Jonathan Paugh and contributors
# See COPYING for license details
from agithub.GitHub import GitHub
from agithub.base import IncompleteRequest
from arestclient.GitHub import GitHub
from arestclient.base import IncompleteRequest
import unittest


Expand Down
Loading