chibi-github 0.1.0__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {chibi_github-0.1.0 → chibi_github-0.1.2}/HISTORY.rst +5 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/PKG-INFO +6 -1
- {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github/__init__.py +1 -1
- {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github/chibi_github.py +5 -7
- {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github/serializers.py +1 -1
- {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github.egg-info/PKG-INFO +6 -1
- {chibi_github-0.1.0 → chibi_github-0.1.2}/setup.cfg +1 -1
- {chibi_github-0.1.0 → chibi_github-0.1.2}/setup.py +1 -1
- {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/test_chibi_github.py +8 -1
- {chibi_github-0.1.0 → chibi_github-0.1.2}/AUTHORS.rst +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/CONTRIBUTING.rst +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/LICENSE +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/MANIFEST.in +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/README.rst +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github/cli.py +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github/config.py +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github/response.py +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github/urls.py +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github.egg-info/SOURCES.txt +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github.egg-info/dependency_links.txt +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github.egg-info/entry_points.txt +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github.egg-info/not-zip-safe +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github.egg-info/requires.txt +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github.egg-info/top_level.txt +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/docs/Makefile +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/docs/authors.rst +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/docs/conf.py +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/docs/contributing.rst +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/docs/history.rst +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/docs/index.rst +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/docs/installation.rst +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/docs/make.bat +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/docs/readme.rst +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/docs/usage.rst +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/__init__.py +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/cassettes/Test_chibi_github.test_me_should_return_name_login.yaml +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/cassettes/Test_chibi_github.test_me_should_return_user_data.yaml +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/cassettes/Test_chibi_github_me.test_me_should_return_name_login.yaml +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/cassettes/Test_chibi_github_me.test_me_should_return_user_data.yaml +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/cassettes/Test_chibi_github_repo.test_all_repos_should_have_name.yaml +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/cassettes/Test_chibi_github_repo.test_repo_url_should_be_a_api_inner.yaml +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/cassettes/Test_chibi_github_repo.test_should_can_list_repo_of_user.yaml +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/cassettes/Test_chibi_github_repo_create.test_create_and_delete_should_work.yaml +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/cassettes/Test_chibi_github_repo_create.test_create_should_generate_a_new_repo.yaml +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/cassettes/Test_chibi_github_repo_create.test_create_without_data_should_fail.yaml +0 -0
- {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/urls.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: chibi_github
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: libreria para usar github
|
|
5
5
|
Home-page: https://github.com/dem4ply/chibi_github
|
|
6
6
|
Author: dem4ply
|
|
@@ -61,6 +61,11 @@ Features
|
|
|
61
61
|
History
|
|
62
62
|
=======
|
|
63
63
|
|
|
64
|
+
0.1.2 (2025-03-01)
|
|
65
|
+
------------------
|
|
66
|
+
|
|
67
|
+
* se cambio el token para usar Bearer y no Token
|
|
68
|
+
|
|
64
69
|
0.0.1 (2020-07-08)
|
|
65
70
|
------------------
|
|
66
71
|
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
from chibi_github.config import configuration
|
|
2
1
|
from chibi_api import Chibi_api
|
|
3
2
|
from chibi_api.chibi_api import Chibi_inner_api
|
|
4
|
-
from chibi_requests.auth import
|
|
5
|
-
|
|
6
|
-
from chibi_requests import Response
|
|
7
|
-
from chibi_api.chibi_api import Chibi_inner_api
|
|
3
|
+
from chibi_requests.auth import Bearer
|
|
4
|
+
|
|
8
5
|
from .response import Create, Delete, Get
|
|
6
|
+
from chibi_github.config import configuration
|
|
9
7
|
|
|
10
8
|
|
|
11
9
|
class Github_api_inner( Chibi_inner_api ):
|
|
@@ -23,9 +21,9 @@ class Github_api( Chibi_api ):
|
|
|
23
21
|
|
|
24
22
|
def login( self, token=None ):
|
|
25
23
|
if token is None:
|
|
26
|
-
token =
|
|
24
|
+
token = Bearer( token=configuration.github.personal_token )
|
|
27
25
|
else:
|
|
28
|
-
token =
|
|
26
|
+
token = Bearer( token=token )
|
|
29
27
|
self.API.auth = token
|
|
30
28
|
|
|
31
29
|
@property
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: chibi_github
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: libreria para usar github
|
|
5
5
|
Home-page: https://github.com/dem4ply/chibi_github
|
|
6
6
|
Author: dem4ply
|
|
@@ -61,6 +61,11 @@ Features
|
|
|
61
61
|
History
|
|
62
62
|
=======
|
|
63
63
|
|
|
64
|
+
0.1.2 (2025-03-01)
|
|
65
|
+
------------------
|
|
66
|
+
|
|
67
|
+
* se cambio el token para usar Bearer y no Token
|
|
68
|
+
|
|
64
69
|
0.0.1 (2020-07-08)
|
|
65
70
|
------------------
|
|
66
71
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
2
|
# -*- coding: utf-8 -*-
|
|
3
|
-
import unittest
|
|
4
3
|
from vcr_unittest import VCRTestCase
|
|
5
4
|
|
|
6
5
|
from chibi_github import Github_api
|
|
7
6
|
from chibi_github.chibi_github import Github_api_inner
|
|
7
|
+
from chibi_requests.auth import Bearer
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class Test_chibi_github( VCRTestCase ):
|
|
@@ -16,6 +16,13 @@ class Test_chibi_github( VCRTestCase ):
|
|
|
16
16
|
api.login()
|
|
17
17
|
self.assertTrue( api )
|
|
18
18
|
|
|
19
|
+
def test_should_wort( self ):
|
|
20
|
+
api = Github_api()
|
|
21
|
+
self.assertIsNone( api.API.auth )
|
|
22
|
+
api.login()
|
|
23
|
+
self.assertIsNotNone( api.API.auth )
|
|
24
|
+
self.assertIsInstance( api.API.auth, Bearer )
|
|
25
|
+
|
|
19
26
|
def test_me_should_return_user_data( self ):
|
|
20
27
|
api = Github_api()
|
|
21
28
|
api.login()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|