-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split namespace packages and add httpx client #1
Conversation
examples/grpc/aiohttp_app.py
Outdated
from aiohttp import web | ||
from grpclib.client import Channel | ||
|
||
from featureflags.grpc.client import FeatureFlagsClient |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we rename featureflags
to featureflags_client
?
featureflags/http/managers/httpx.py
Outdated
self._refresh_task = asyncio.create_task(self._refresh_loop()) | ||
|
||
async def wait_closed(self) -> None: | ||
self._refresh_task.cancel() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In grpc manager, there is a separate method close
which closes refresh_task. Lets try following that implementation. (Or if all in one method is desired we can rename it to async close
)
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/client-') | ||
strategy: | ||
matrix: | ||
python-version: [3.7] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
by the way, @kindermax, what minimun version should we support? can we start from 3.9/3.10 at least? maybe do a poll in dev channel?
Add aiohttp and requests client
4b5d57e
to
81b0a09
Compare
Changelog:
featureflags/grpc/
featureflags/http/
conditions.py
because a lot was written with types from protobufsfeatureflags/http/managers/httpx.py
and example for itexamples/http/httpx_client.py
QA:
if not from
≥3.7
then we can use more modern typing (just runpyupgrade
)TODO:
requests
/ asyncaiohttp
managerstracer
/stats_collector
to http managers