michaelwooley / nya Goto Github PK
View Code? Open in Web Editor NEWNo, _you're_ awesome.
No, _you're_ awesome.
6e84bc7bbf23133e1eb620c7399f57335eef7b16
boilerplate docs: https://fpgmaas.github.io/cookiecutter-poetry/features/codecov/
Line 10 in 6e84bc7
Good workflows in ./py
dir but need to
# TODO Move github workflows to top-level dir.
nya/py/.github/workflows/main.yml
Line 1 in 27295d6
Looking through this quickly, I think that it might be possible to get this functionality without delving into etag specifics:
1. Allow users to pass a custom `request.Session` object to the main `GitHub` class (which would then ultimately be passed down to [`HTTPRequestsConnectionClass`](https://github.com/PyGithub/PyGithub/blob/7e6333da1a376a5f5c60c1e3d2e6e5a37527c8e9/github/Requester.py#L141).)
This part is pretty much identical to the approach taken by [`python-gitlab`](https://python-gitlab.readthedocs.io/en/stable/api-usage-advanced.html#using-a-custom-session) ([relevant test case](https://github.com/python-gitlab/python-gitlab/blob/43c2dda7aa8b167a451b966213e83d88d1baa1df/tests/functional/api/test_gitlab.py#L34)).
2. Use [`requests-cache`](https://requests-cache.readthedocs.io/en/stable/user_guide/headers.html) package to create a custom session that respects etags. (:lock: Care should be taken to remove tokens in requests. [`requests-cache` has support for this.](https://requests-cache.readthedocs.io/en/stable/user_guide/security.html#removing-sensitive-info) but it does require configuration.)
IMO, this keeps a reasonable separation of concerns: this package works well with the github api while the separate caching session can be tuned separately for specific use cases.
Start:
Pre-reqs:
make
pyenv
python>=3.10
poetry>=1.3.0
# Clone repo
git clone [email protected]:michaelwooley/nya.git
# Go to python part
cd nya/py
# install
make install
# View all make commands
make
TODO Add use cases + ideas + non-goals to top-level README.
https://github.com/michaelwooley/nya/blob/f536006d7b256b2afc7e979b205372000a244b6a/README.md#L5
TODO Add use cases + ideas + non-goals to top-level README.
https://github.com/michaelwooley/nya/blob/f536006d7b256b2afc7e979b205372000a244b6a/README.md#L5
TODO Python as namespaced package? https://setuptools.pypa.io/en/latest/userguide/package_discovery.html#using-find-namespace-or-find-namespace-packages
Line 32 in f536006
TODO Python release process.
https://github.com/michaelwooley/nya/blob/0716f8460715ad71cbd273e0519c2b99fb954bfd/py/README.md#L73
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.