i composed the following query using github's graphql explorer
because it has completion which helps in the composition.
i also refered to GitHub GraphQL - Get files in a repository for some ideas about how to compose my query.
i composed the following query using [github's graphql explorer](https://docs.github.com/en/graphql/overview/explorer)
because it has completion which helps in the composition.
i also refered to [ GitHub GraphQL - Get files in a repository ](https://gist.github.com/MichaelCurrin/6777b91e6374cdb5662b64b8249070ea) for some ideas about how to compose my query.
*this work is my first time interacting with graphql for data analysis. i really preferred the iGraphQl experiences that provides completion otherwise i would have been totally lost.
*it uses `requests` to retreieve the results, and `requsts_cache` for caching.
*at the end, we start looking at some dataframes for our requests.
this work is my first time interacting with graphql for data analysis. i really preferred the iGraphQl experiences that provides completion otherwise i would have been totally lost.
it uses
requests
to retreieve the results, and
requsts_cache
for caching.
at the end, we start looking at some dataframes for our requests.
the graqhql query i wanted retrieves the `pyproject.toml` from a bunch of python projects.
the initial goal of this query is to discover python projects and retrieve their `pyproject.toml` for comparison.
we are looking for `pyproject.toml` which outlines [strict metadata specifications](https://peps.python.org/pep-0621/).
it would be cool to get a high level view of the python conventions popular projects are using.
> i'd love suggestions on a better query that finds more repositories with `pyproject.toml` files.
7
the graqhql query i wanted retrieves the
pyproject.toml
from a bunch of python projects.
the initial goal of this query is to discover python projects and retrieve their
pyproject.toml
for comparison.
we are looking for
pyproject.toml
which outlines
strict metadata specifications
.
it would be cool to get a high level view of the python conventions popular projects are using.
i'd love suggestions on a better query that finds more repositories with
pyproject.toml
files.
__import__("requests_cache").install_cache(allowable_methods=['GET','POST'])frominfoimportheader# this has some api info pandas.options.display.max_colwidth=NoneØ=__name__=="__main__"and"__file__"notinlocals()
ifØ:configs=tidy_configs(df:=tidy_responses(responses:=gather(pyproject_query,max=15)))print(F"""we made {len(responses)} requests returning information about a {len(df)} repositories. we retrieved {len(configs)} pyproject configs from this scrape.""")
ifØ:builds=configs["build-system"].dropna().apply(pandas.Series)print(F"""{len(builds)} projects define a build backends, their specific frequencies are:""")display(builds["build-backend"].dropna().value_counts().to_frame("build-backend").T)
## fin
i think having knowledge at this scope of projects helps making decisions about what to do with your own.
if `black` is the zeigeist why are you stalling?
i think having knowledge at this scope of projects helps making decisions about what to do with your own.
if
black
is the zeigeist why are you stalling?