title: Convert Polygon to SQL
body: <p>I have a dictionary</p>
  <pre><code>&quot;polygon&quot;: [[168.4456025, 54.51134820], [168.4458053, 54.50852270], [168.445539, 54.48874220], [168.4419135, 54.4690740], [168.4254386, 54.57088510], [168.4356331, 54.55147240], [168.4423761, 54.5315580], [168.4456025, 54.5113482]]
  </code></pre>
  <p>How to convert it to polygon for sql?</p>
  <p>As a result, I should receive a similar request</p>
  <pre><code>INSERT INTO public.locations (id, title, polygon) VALUES (
      '7', 'Test',
      ST_GeomFromText('POLYGON(
  (168.4456025 54.51134820, 168.4458053 54.50852270, 168.445539 54.48874220, 168.4419135 54.4690740, 168.4254386 54.57088510, 168.4356331 54.55147240, 168.4423761 54.5315580, 168.4456025 54.5113482)
  )')
  );
  </code></pre>
  <p>Those. I need to somehow bring my dictionary in python with coordinates to this</p>
  <pre><code>(168.4456025 54.51134820, 168.4458053 54.50852270, 168.445539 54.48874220, 168.4419135 54.4690740, 168.4254386 54.57088510, 168.4356331 54.55147240, 168.4423761 54.5315580, 168.4456025 54.5113482)
  </code></pre>