You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>You can install <code>peeringdb-py</code> on a wide selection of operating systems. Users have installed it on several Linux distributions, macOS, and Windows Subsystem for Linux.</p>
167
-
<p>It will give you a local version of PeeringDB’s SQL database. Unlike the PeeringDB API, the SQL data structure might change without notice. Please do not build tools that make SQL queries. We suggest using our library to make <ahref="https://docs.peeringdb.com/api_specs/">API calls</a> on your local cache. We maintain the library and commit to maintaining the API functionality, even if the underlying database structure changes.</p>
167
+
<p>It will give you a local version of PeeringDB’s SQL database. Unlike the PeeringDB API, the SQL data structure might change without notice. Please do not build tools that make SQL queries. We suggest using our library to make <ahref="/api_specs/">API calls</a> on your local cache. We maintain the library and commit to maintaining the API functionality, even if the underlying database structure changes.</p>
168
168
<p>Please let us know if you find a query that is only possible with SQL and not via the API. Either create an issue in <ahref="https://github.com/peeringdb/peeringdb/issues">GitHub</a>, or send a mail describing the problems to <ahref="mailto:support@peeringdb.com">support@peeringdb.com</a>.</p>
<p>You only need a PeeringDB account if you want to synchronize the contact information to your peeringdb-py cache. If you want to synchronize the whole database, including the contact data, you will need an API Key.</p>
171
-
<p>If you are installing peeringdb-py for organizational use you should use an organizational API Key. You can use an API Key tied to a user account for personal use. We have a <ahref="/howto/api_keys/">HOWTO guide for API Keys</a>.</p>
171
+
<p>If you are installing peeringdb-py for organizational use you should use an organizational API Key. You can use an API Key tied to a user account for personal use. We have a <ahref="/howto/api_keys">HOWTO guide for API Keys</a> and a <ahref="/howto/work_within_peeringdbs_query_limits/#local-cache-peeringdb-py">HOWTO guide for working with PeeringDB's query limits</a>.</p>
<p>We encourage sending lists of up to 150 ASNs in a single query. We have a <ahref="/howto/search">HOWTO article</a> describing the basics of using our API using popular command line tools such as curl, Python, and jq.</p>
183
183
<p>Please use API Keys when automating queries to PeeringDB and set a User-Agent header that identifies the unique software you are using, rather than just a generic query library name.</p>
184
184
<p>We also encourage you to leave at least two seconds between queries.</p>
185
-
<h2id="local-cache">Local cache</h2>
186
-
<p>We encourage you to use a local cache and synchronize it every hour or less frequently in accordance with your organization's needs. When you use a local cache you will only be sent changes since the last sync.</p>
187
-
<p>We publish peeringdb-py, which can be used directly or as a reference implementation. <ahref="https://github.com/peeringdb/peeringdb-py/">Code is here</a> and <ahref="http://peeringdb.github.io/peeringdb-py/">documentation is here</a>.</p>
188
-
<p>Use of an API key with peeringdb-py is highly recommended.</p>
<p>We encourage you to use local cache <code>peeringdb-py</code>and synchronize it at least once a day, possibly as frequently as once per hour. Please use a random time – <ahref="https://peeringdb.github.io/peeringdb-py/cli/#sync">examples</a> – for each sync to avoid pulling from the servers at the same time as others. Synchronizing at least once a day minimizes the chance that you'll hit query limits. This is because <code>peeringdb-py</code> will only be sent changes since the last sync.</p>
187
+
<p><code>peeringdb-py</code>, can be used directly or as a reference implementation. <ahref="https://github.com/peeringdb/peeringdb-py/">Code is here</a>, <ahref="http://peeringdb.github.io/peeringdb-py/">documentation is here</a>, and <ahref="/howto/peeringdb-py">install HOWTO is here</a>.</p>
188
+
<p>We highly recommend using an API key with <code>peeringdb-py</code>.</p>
189
189
<p>If you want to implement a local cache using different tools and would like advice, we are happy to talk. Contact us at <ahref="mailto:support@peeringdb.com">support@peeringdb.com</a>.</p>
190
190
<h2id="tools">Tools</h2>
191
191
<p>Popular tools, including <ahref="https://github.com/pierky/arouteserver">arouteserver</a> have been updated to include support for API Keys and to make more efficient queries. <ahref="/tools/">We publish</a> a list of tools that we know use PeeringDB. Check the list for tools that you use and upgrade old versions to take advantage of new features and improve everyone’s PeeringDB experience. </p>
0 commit comments