Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

New API update #14

Merged
merged 9 commits into from
Oct 16, 2020
Merged

New API update #14

merged 9 commits into from
Oct 16, 2020

Conversation

naveen521kk
Copy link
Owner

@naveen521kk naveen521kk commented Oct 16, 2020

There is going to be a new update in sxcu.net API and it is waiting for this PR. So what's changed?

  • Introduced a logger class so that users can know what
    really happened. User's can just set a logging handle and
    it will automatically write logs as in any other library.

  • Improved Interface with Requests. Instead of Directly
    calling it now logs them and goes through __client.

  • Moved version to __version__ and added other meta data
    to it.

  • Now it handle's server response codes. Previously it was
    rising JSON decode Error which was unexpected and could cause
    problems.

  • Finally written everything to changelog.

@codecov
Copy link

codecov bot commented Oct 16, 2020

Codecov Report

Merging #14 into master will decrease coverage by 17.07%.
The diff coverage is 66.99%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #14       +/-   ##
===========================================
- Coverage   98.13%   81.05%   -17.08%     
===========================================
  Files           1        5        +4     
  Lines         107      190       +83     
  Branches       22       31        +9     
===========================================
+ Hits          105      154       +49     
- Misses          0       25       +25     
- Partials        2       11        +9     
Impacted Files Coverage Δ
sxcu/sxcu.py 76.22% <42.85%> (-21.91%) ⬇️
sxcu/__client__.py 92.59% <92.59%> (ø)
sxcu/__logger__.py 100.00% <100.00%> (ø)
sxcu/__version__.py 100.00% <100.00%> (ø)
sxcu/constants.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e5613f1...71834a9. Read the comment docs.

@naveen521kk
Copy link
Owner Author

Tests will be done later. Merging now.

@naveen521kk naveen521kk merged commit 38dc56a into master Oct 16, 2020
@naveen521kk naveen521kk deleted the handle-error branch October 16, 2020 16:42
@naveen521kk
Copy link
Owner Author

@all-contributors please add @naveen521kk for code and docs and maintainer

@allcontributors
Copy link
Contributor

@naveen521kk

I've put up a pull request to add @naveen521kk! 🎉

@naveen521kk
Copy link
Owner Author

@all-contributors please add @naveen521kk for maintenance projectManagement, review, test, platform

@allcontributors
Copy link
Contributor

@naveen521kk

I've put up a pull request to add @naveen521kk! 🎉

@naveen521kk naveen521kk mentioned this pull request Oct 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant