Jay Marcyes

Results 83 comments of Jay Marcyes

I removed this code from the `prom.utils.get_objects` method on 1-24-2024: ```python # if classpath.startswith("."): # rel_count = len(re.match("^\.+", classpath).group(0)) # if calling_classpath: # calling_count = calling_classpath.count(".") # if rel_count >...

* https://stackoverflow.com/questions/25639088/show-table-structure-and-list-of-tables-in-postgresql * https://www.postgresqltutorial.com/postgresql-administration/postgresql-describe-table/ * postgres get table schema with query

Looks like `information_schema.columns` doesn't give primary key information. I could combine the output of `information_schema.columns` with `information_schema.table_constraints` to make this work but I'm not sure it's worth it. This is...

This is also related to https://github.com/Jaymon/endpoints/issues/109

Basically, `MultiCallError` should have an `add` method that will aggregate any CallErrors under the status code (so all 400-499) errors would be aggregated under 400. Any other errors would aggregate...

I'd need to refactor `interface.base.BaseApplication.get_response_body` to call multiple sub-methods: * get_response_body_file * get_response_body_json * get_response_body_value That would make it easier for child classes to override how the body is returned...

If I wanted to switchover to an async like requests library, here are some options: * [niquests](https://github.com/jawah/niquests) ([pypi](https://pypi.org/project/niquests/))

I do some variation of this in morp, prom, and caches: ``` d = { "caches.interface.Redis": set(["redis"]), } kv = v.lower() for interface_name, vals in d.items(): if kv in vals:...

[argparse action](https://docs.python.org/3/library/argparse.html#action) has `append` and `extend`, I think I can merge `store_list` and `append_list` into `extend` and keep `action` as is. I think that would mostly be consistent with how...

Switched over to using annotations to define arguments for each http handling method and Param no longer exists