From 234bcbb352f63cbb370c443d31ab0ae587f82333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Rouleau?= Date: Fri, 29 Dec 2023 21:43:03 -0500 Subject: [PATCH] New translations querying-with-python.mdx (Italian) --- .../it/querying/querying-with-python.mdx | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/website/pages/it/querying/querying-with-python.mdx b/website/pages/it/querying/querying-with-python.mdx index c6f59d476141..25ef0e1f8b09 100644 --- a/website/pages/it/querying/querying-with-python.mdx +++ b/website/pages/it/querying/querying-with-python.mdx @@ -2,13 +2,13 @@ title: Subgrounds --- -Subgrounds is an intuitive Python library for querying subgraphs, built by [Playgrounds](https://playgrounds.network/). It allows you to directly connect subgraph data to a Python data environment, letting you use libraries like [pandas](https://pandas.pydata.org/) to perform data analysis! +Subgrounds è una libreria Python intuitiva per query dei subgraph, realizzata da [Playgrounds](https://playgrounds.network/). Permette di collegare direttamente i dati dei subgraph a un ambiente dati Python, consentendo di utilizzare librerie come [pandas](https://pandas.pydata.org/) per eseguire analisi dei dati! -Subgrounds offers a simple Pythonic API for building GraphQL queries, automates tedious workflows such as pagination, and empowers advanced users through controlled schema transformations. +Subgrounds offre una semplice API Pythonic per la creazione di query GraphQL, automatizza i flussi di lavoro più noiosi come la paginazione, e dà agli utenti avanzati la possibilità di effettuare trasformazioni controllate dello schema. -## Getting Started +## Per cominciare -Subgrounds requires Python 3.10 or higher and is available on [pypi](https://pypi.org/project/subgrounds/). +Subgrounds richiede Python 3.10 o superiore ed è disponibile su [pypi](https://pypi.org/project/subgrounds/). ```bash pip install --upgrade subgrounds @@ -16,41 +16,41 @@ pip install --upgrade subgrounds python -m pip install --upgrade subgrounds ``` -Once installed, you can test out subgrounds with the following query. The following example grabs a subgraph for the Aave v2 protocol and queries the top 5 markets ordered by TVL (Total Value Locked), selects their name and their TVL (in USD) and returns the data as a pandas [DataFrame](https://pandas.pydata.org/pandas-docs/dev/reference/api/pandas.DataFrame.html#pandas.DataFrame). +Una volta installato, è possibile testare subgrounds con la seguente query. L'esempio seguente prende un subgraph per il protocollo Aave v2 e effettua query dei primi 5 mercati ordinati per TVL (Total Value Locked), seleziona il loro nome e il loro TVL (in USD) e restituisce i dati come pandas [DataFrame](https://pandas.pydata.org/pandas-docs/dev/reference/api/pandas.DataFrame.html#pandas.DataFrame). ```python -from subgrounds import Subgrounds +da subgrounds import Subgrounds sg = Subgrounds() -# Load the subgraph +# Caricare il subgraph aave_v2 = sg.load_subgraph( "https://api.thegraph.com/subgraphs/name/messari/aave-v2-ethereum") -# Construct the query +# Costruire la query latest_markets = aave_v2.Query.markets( orderBy=aave_v2.Market.totalValueLockedUSD, orderDirection='desc', first=5, ) -# Return query to a dataframe +# Restituire la query a un dataframe sg.query_df([ latest_markets.name, latest_markets.totalValueLockedUSD, ]) ``` -## Documentation +## Documentazione -Subgrounds is built and maintained by the [Playgrounds](https://playgrounds.network/) team and can be accessed on the [Playgrounds docs](https://docs.playgrounds.network/subgrounds). +Subgrounds è costruito e mantenuto dal team di [Playgrounds](https://playgrounds.network/) e si può accedere su [Playgrounds docs](https://docs.playgrounds.network/subgrounds). -Since subgrounds has a large feature set to explore, here are some helpful starting places: +Poiché le funzionalità di subgrounds sono numerose e tutte da esplorare, ecco alcuni punti di partenza utili: -- [Getting Started with Querying](https://docs.playgrounds.network/subgrounds/getting_started/basics/) - - A good first step for how to build queries with subgrounds. -- [Building Synthetic Fields](https://docs.playgrounds.network/subgrounds/getting_started/synthetic_fields/) - - A gentle introduction to defining synthetic fields that transform data defined from the schema. -- [Concurrent Queries](https://docs.playgrounds.network/subgrounds/getting_started/async/) - - Learn how to level up your queries by parallelizing them. -- [Exporting Data to CSVs](https://docs.playgrounds.network/subgrounds/faq/exporting/) - - A quick article on how to seemlessly save your data as CSVs for further analysis. +- [Introduzione alle query](https://docs.playgrounds.network/subgrounds/getting_started/basics/) + - Un buon primo passo per costruire le query con subgrounds. +- [Costruire campi sintetici](https://docs.playgrounds.network/subgrounds/getting_started/synthetic_fields/) + - Una leggera introduzione alla definizione di campi sintetici che trasformano i dati definiti dallo schema. +- [Query concorrenti](https://docs.playgrounds.network/subgrounds/getting_started/async/) + - Imparate a migliorare le vostre query parallelizzandole. +- [Esportazione di dati in CSV](https://docs.playgrounds.network/subgrounds/faq/exporting/) + - Un rapido articolo su come salvare senza problemi i dati in formato CSV per ulteriori analisi.