<?xml version="1.0" encoding="UTF-8" standalone="yes"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-us"><id>https://blog.pgxn.org/tags/client/</id><title>Client</title><updated>2011-05-02T00:59:37Z</updated><link rel="self" type="application/atom+xml" href="https://blog.pgxn.org/tags/client/feed.xml"/><link rel="alternate" type="text/html" href="https://blog.pgxn.org/tags/client/"/><author><name>The PGXN Maintainers</name></author><generator uri="https://gohugo.io/" version="0.167.0">Hugo</generator><entry><id>https://blog.pgxn.org/post/5118152273</id><title type="html">New release for the PGXN client</title><link rel="alternate" type="text/html" href="https://blog.pgxn.org/2011/new-release-for-the-pgxn-client/"/><updated>2026-10-07T16:13:48Z</updated><published>2011-05-02T00:59:37Z</published><author><name>Daniele Varrazzo</name></author><category scheme="https://blog.pgxn.org/tags" term="pgxn" label="PGXN"/><category scheme="https://blog.pgxn.org/tags" term="client" label="Client"/><category scheme="https://blog.pgxn.org/tags" term="release" label="Release"/><category scheme="https://blog.pgxn.org/tags" term="uninstall" label="Uninstall"/><category scheme="https://blog.pgxn.org/tags" term="drop" label="Drop"/><category scheme="https://blog.pgxn.org/tags" term="sudo" label="sudo"/><summary type="html"><![CDATA[<p>During the last days I&rsquo;ve done some lightweight hacking on the PGXN client,
and I&rsquo;ve just released the last package on PyPI, with the still very shy
version number of 0.1a4.</p>
<p>First change: the package name. The package is now called <code>pgxnclient</code>,
without the point. As <a href="https://blog.pgxn.org/post/5026314153/writing-a-client-for-pgxn#dsq-comments">Marti has commented</a>, the point in the name could
create problems to some distributions which may have needed to munge it into a
shape fitting their naming constraints. So, in order to install the last
release you will need the command:</p>]]></summary><content type="html" xml:base="https://blog.pgxn.org/" xml:space="preserve"><![CDATA[<p>During the last days I&rsquo;ve done some lightweight hacking on the PGXN client,
and I&rsquo;ve just released the last package on PyPI, with the still very shy
version number of 0.1a4.</p>
<p>First change: the package name. The package is now called <code>pgxnclient</code>,
without the point. As <a href="https://blog.pgxn.org/post/5026314153/writing-a-client-for-pgxn#dsq-comments">Marti has commented</a>, the point in the name could
create problems to some distributions which may have needed to munge it into a
shape fitting their naming constraints. So, in order to install the last
release you will need the command:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-console" data-lang="console"><span class="line"><span class="cl"><span class="gp">$</span> easy_install pgxnclient
</span></span></code></pre></div><p>The name of the entry point script is still <code>pgxn</code> and it shouldn&rsquo;t change.</p>
<p>One of the new features in this release is the addition of commands <code>drop</code>, to
remove the the extensions of a distribution from a database (opposite of the
<code>load</code> command) and <code>uninstall</code>, to remove installed files from the system
(opposite of <code>install</code>).</p>
<p>Another change is the ability to work on a local zip or directory instead of
using the API to get metadata and package from PGXN. The main goal of this
feature is to help the packagers to test their packages with the client before
submission, verifying that the data uploaded can be used in an automatized
way.</p>
<p>A third change is in the <code>install</code> command: it previously required to be run
as root if, as likely, the PostgreSQL directories are system ones. I was
feeling this need slightly scary as download and build phases would have been
run as root too, so now <code>sudo</code> is invoked by the script only when installing,
with command line options allowing its customization.</p>
<p>What I feel mostly missing now is documentation: I know that adding it will
force a big review of the code, adding missing comments, add tests to enforce
what documented&hellip; so it&rsquo;s something I will start tomorrow. Once documentation
and code have converged there will also be a more sound basis to discuss about
the client features. And dare version 0.2, maybe :)</p>
<p>Thanks everybody for the feedback. If you want to have a chat about the client
or PGXN in general, the best place is <a href="https://groups.google.com/group/pgxn-users">the PGXN group</a>. See you there!</p>
]]></content></entry><entry><id>https://blog.pgxn.org/post/4970682941</id><title type="html">PGXN API Docs Published</title><link rel="alternate" type="text/html" href="https://blog.pgxn.org/2011/api-docs-published/"/><updated>2026-10-07T16:13:48Z</updated><published>2011-04-27T00:27:55Z</published><author><name>David E. Wheeler</name></author><category scheme="https://blog.pgxn.org/tags" term="api" label="API"/><category scheme="https://blog.pgxn.org/tags" term="documentation" label="Documentation"/><category scheme="https://blog.pgxn.org/tags" term="docs" label="Docs"/><category scheme="https://blog.pgxn.org/tags" term="api-docs" label="API Docs"/><category scheme="https://blog.pgxn.org/tags" term="zip" label="Zip"/><category scheme="https://blog.pgxn.org/tags" term="client" label="Client"/><category scheme="https://blog.pgxn.org/tags" term="daniele-varrazzo" label="Daniele Varrazzo"/><summary type="html"><![CDATA[<p>The <a href="https://github.com/pgxn/pgxn-api/wiki">PGXN API Documentation</a> is up! I&rsquo;ve just finished writing the docs for
the lightweight REST API provided by all PGXN mirrors. It also documents how
the same APIs differ when provided by the <a href="https://api.pgxn.org/">API server</a>. Their are four more
documents to write still, APIs provided by the API server but not the mirrors
(including full-text search); I should be able to get those done tomorrow.</p>
<p>So if you&rsquo;re interested in use the API for various things, please <a href="https://github.com/pgxn/pgxn-api/wiki">have a
look</a>! I&rsquo;d appreciate any feedback or corrections.</p>]]></summary><content type="html" xml:base="https://blog.pgxn.org/" xml:space="preserve"><![CDATA[<p>The <a href="https://github.com/pgxn/pgxn-api/wiki">PGXN API Documentation</a> is up! I&rsquo;ve just finished writing the docs for
the lightweight REST API provided by all PGXN mirrors. It also documents how
the same APIs differ when provided by the <a href="https://api.pgxn.org/">API server</a>. Their are four more
documents to write still, APIs provided by the API server but not the mirrors
(including full-text search); I should be able to get those done tomorrow.</p>
<p>So if you&rsquo;re interested in use the API for various things, please <a href="https://github.com/pgxn/pgxn-api/wiki">have a
look</a>! I&rsquo;d appreciate any feedback or corrections.</p>
<p>Speaking of users of the API, <a href="https://profiles.google.com/daniele.varrazzo/about">Daniele Varrazzo</a> has started writing a <a href="https://github.com/dvarrazzo/pgxn-client/">PGXN
client app</a> in Python. This is so awesome! It makes me happy that people are
able to just get going on this. And Daniele did it before I&rsquo;d written the
docs, just from reading the PGXN source code. Nice!</p>
<p>Anyway, getting these docs written was the last barrier I had to releasing
various pieces of PGXN on CPAN and generally being able to get on with my
life. I wanted to write these docs first so that I would have a little more
freedom to change things if something struct me as especially stupid.
Fortunately, as I&rsquo;ve written the <a href="https://pgxn.org/">main site</a> as a thin client for the API,
most of the lameness has already been excised. I think the only change I&rsquo;d
like to make is to change the <code>{char}</code> URI template variable for the
<a href="https://github.com/pgxn/pgxn-api/wiki/userlist-api"><code>userlist</code> API</a> to <code>{letter}</code>, because only lowercased ASCII letters a-z are
allowed. It&rsquo;s more accurate.</p>
<p>Another thing I think I&rsquo;ll change is the file name suffix used for the
distribution download files. Currently it&rsquo;s <code>.pgz</code>, but after <a href="https://blog.pgxn.org/post/4854707157/pgxn-manager">Daniele
complained</a> about it, I <a href="https://groups.google.com/group/pgxn-users/browse_thread/thread/1209538be03be8a4">asked around</a> and the concensus seems to be to change
it to <code>.zip</code>. I&rsquo;ll likely do that tomorrow, too. Fortunately it&rsquo;s pretty easy:
Just edit the configuration file and rename the files on the master mirror. At
least it <em>should</em> be that easy!</p>
<p>There was one other thing in the APIs the felt a bit silly, but I don&rsquo;t
remember what it was, so screw it.</p>
<p>Anyway, feedback on the API docs would be greatly appreciated. And &ndash; <em>get
hacking!</em>.</p>
]]></content></entry></feed>