Giter VIP home page Giter VIP logo

python-docker-isolation-provider's Introduction

python-docker-isolation-provider

Base use example:

async def fn(arg):
    data = arg['data']
    deep = arg['deep']
    result = f"Resolved data: {data}, {deep}"
    return result

python-docker-isolation-provider's People

Contributors

bogdan-torkhov avatar cehr2005 avatar flakeed avatar freephoenix888 avatar konard avatar l4legenda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

python-docker-isolation-provider's Issues

Add example of using to readme

Section/Content To Improve

README.md

Suggested Improvement

Add example of using

async def fn(arg):
    deep = arg['deep']
    return (await deep.select(2))

Relevant File(s)

README.md

Add readme

Section/Content To Improve

Readme :)

Suggested Improvement

Add information how to use this provider

Relevant File(s)

No response

Croutines don't work

Describe the bug

from deepclient import DeepClient, DeepClientOptions

async def fn(deep):
  new_record = {"type_id": 58, "from_id": 0, "to_id": 0}
  options = DeepClientOptions(gql_client=deep['deep'])
  deep_client = DeepClient(options)
  await deep_client.insert(new_record)
  return 400

result:

Traceback (most recent call last): File "/app/index.py", line 49, in call 'gql': gql File "/usr/local/lib/python3.10/site-packages/flask/json/init.py", line 342, in jsonify return current_app.json.response(*args, kwargs) File "/usr/local/lib/python3.10/site-packages/flask/json/provider.py", line 309, in response f"{self.dumps(obj, dump_args)}\n", mimetype=mimetype File "/usr/local/lib/python3.10/site-packages/flask/json/provider.py", line 230, in dumps return json.dumps(obj, kwargs) File "/usr/local/lib/python3.10/json/init.py", line 238, in dumps kw).encode(obj) File "/usr/local/lib/python3.10/json/encoder.py", line 201, in encode chunks = list(chunks) File "/usr/local/lib/python3.10/json/encoder.py", line 431, in _iterencode yield from _iterencode_dict(o, _current_indent_level) File "/usr/local/lib/python3.10/json/encoder.py", line 405, in _iterencode_dict yield from chunks File "/usr/local/lib/python3.10/json/encoder.py", line 438, in _iterencode o = _default(o) File "/usr/local/lib/python3.10/site-packages/flask/json/provider.py", line 122, in _default raise TypeError(f"Object of type {type(o).name} is not JSON serializable") TypeError: Object of type coroutine is not JSON serializable

Expected Behavior

No response

Current Behavior

No response

Steps to reproduce

No response

Environment

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.