Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #5118
| Path | csiph.com!news.fcku.it!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Stefan Schwarzer <sschwarzer@sschwarzer.net> |
| Newsgroups | de.comp.lang.python |
| Subject | Re: [Python-de] Python3 - pathlib - python-gnupg Problem |
| Date | Wed, 7 Feb 2018 06:36:41 +0100 |
| Lines | 82 |
| Message-ID | <mailman.53.1517981816.27157.python-de@python.org> (permalink) |
| References | <98cfc895-06a7-495e-93b5-182f4cc367fd@googlegroups.com> <d65ba20c-5a43-4682-8d40-f1e4c93141ea@googlegroups.com> <CADfaKO-2az+Wa0UkvGfkBF5y2nVpr6=u+Q9ys7xzZUfn_UN=XQ@mail.gmail.com> <9542cb1f-7585-d89a-6a48-3598ba430c64@sschwarzer.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| X-Trace | news.uni-berlin.de bfXRutLnREV94RKC/XXmeAGAJn/Rta4yb5ftBwX4E7wg== |
| Return-Path | <sschwarzer@sschwarzer.net> |
| X-Original-To | python-de@python.org |
| Delivered-To | python-de@mail.python.org |
| User-Agent | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.24) Gecko/20100411 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666 |
| In-Reply-To | <CADfaKO-2az+Wa0UkvGfkBF5y2nVpr6=u+Q9ys7xzZUfn_UN=XQ@mail.gmail.com> |
| Content-Language | de-DE |
| X-Provags-ID | V03:K0:5GbasptalwP2kigV8615sa3U2/3iQgPrBG/cgEuf+ZJcrJv/3Tl fSZhcn7gpa70BGLwjN+kA+9GrSH2pCC41EJ4CQE2yoKTjE45hF36xAqd4uvBx+auYAdxT5W wbylWauta/UJNcJTwuGCQrGcLWemq6Hilobs3HTtpwqqrHR5e5pycWPLrdY3XNLNrxHctOV 5O8Ifwh+FEOHenzklCAXA== |
| X-UI-Out-Filterresults | notjunk:1;V01:K0:vKAPe36vFxY=:QH85U4YbBHdZ771cag8Egb yhhpP4dn724IoxMGKck++SEqGe+Q3vnRlV/3+alhcEw9wAKSRRm4bhXsaescbtqaDKWZI8o94 YnaEAS0EjHYXxFRKVWlhHXyGpmV812YHFvdStpp+i/B7xbavyWuGGTgVI5NmcTbZQeB7Pielk dYS3r8J6OdO04pbbTCvsAPri1ibLMc4n1kumfe8EZf3sF0LnDLowc0m0+GRJlwqtgwgx8R6RC 2UmFIV11mFhGU2othzh9QyTdbMOQJC1g9CWcweWEC2IkAjz6J8+wOYVuJ7VV1pKj88l+5N6gk t2eKc4vt6r8iqkTJMBsjDDNadXqNrEoYcUJvfcR3IqsxzS0qn16UbmmC9O7ekk412Zh3vFq9K JyRzEGVdeOtlXC+5lFfUJyXjh8cUK6dRCfolKrFTJ1rd4Y50XkAmD73I4Os72d7xLqfjBwp83 syP1tI+5CALZMVIN+RrQvKtr6mPlkNkQJMtcBcCAsYWkce47lOx1bEnMotqDAl89S6QZf5KVt iL59sU6hpMADT+8CZfGwqhnGY6wGQHmQNt5hNFeqrc6wneKoaTINSC0+nCKnifyYR4q67FU4W fzKGRCsRTnX3YYV8/DGa+xwZFuyfd7tKAmwebk8ifu/63DRYWZlXK5xPFVzU78O/EzlFanJOs Sxc7kWrt+z6LhibGCEXr0tXjYi1XGMJFys6TwmLz8W0GSSCvXyPpFYkY6EX0IDMJRVZR50vBX S9tpOwZskRUFtiMEzJ/CAPSmx5LmhV14AIIXPXktLvABNfsTWRHJjj0QTlM= |
| X-BeenThere | python-de@python.org |
| X-Mailman-Version | 2.1.26 |
| Precedence | list |
| List-Id | Die Deutsche Python Mailingliste <python-de.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-de/> |
| List-Post | <mailto:python-de@python.org> |
| List-Help | <mailto:python-de-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <9542cb1f-7585-d89a-6a48-3598ba430c64@sschwarzer.net> |
| X-Mailman-Original-References | <98cfc895-06a7-495e-93b5-182f4cc367fd@googlegroups.com> <d65ba20c-5a43-4682-8d40-f1e4c93141ea@googlegroups.com> <CADfaKO-2az+Wa0UkvGfkBF5y2nVpr6=u+Q9ys7xzZUfn_UN=XQ@mail.gmail.com> |
| Xref | csiph.com de.comp.lang.python:5118 |
Show key headers only | View raw
On 2018-02-06 13:08, Reimar Bauer wrote:
> evtl. magst dich auch mal damit befassen, das löst einige OS Probleme für
> mich, abgesehen davon das man auch entfernte Dateisysteme einheitlich
> erreicht.
>
> http://pyfilesystem2.readthedocs.io/en/latest/
An sich finde ich das eine sehr gute Idee. Es gab früher ja
schon Anläufe für eine Dateisystem-übergreifende API, aber
die mir bekannten Projekte sind wieder eingeschlafen. Ich
würde mir sehr wünschen, dass es bei Pyfilesystem2 besser
läuft. Bisher sieht es ziemlich vielversprechend aus.
Speziell zu FTP habe ich noch die (zum allergrößten Teil
von mir entwickelte) Bibliothek ftputil [1, 2] anzubieten,
die es schon seit 2002 gibt. ftputil orientiert sich von der
API sehr stark an der von `os` und `os.path` (siehe auch das
Beispiel auf der Homepage [2], aber es geht noch viel mehr.)
Nach dem Überfliegen des Pyfilesystem-Codes ist meine
Einschätzung, dass dieser ein paar Sachen unterstützt, die
ftputil bisher nicht unterstützt (insbesondere seek und MLST).
Andererseits vermute ich, dass ftputil einige
Server-Merkwürdigkeiten besser abfängt und in einigen Fällen
besser mit hoher Last auf Server- und Client-Seite zurechtkommt.
Da kommt dem Projekt das Alter zugute; in der Zeit habe ich
schon einiges gesehen. :-)
Langfristig wäre es natürlich toll, die Features und Robustheit
von ftputil in Pyfilesystem zu haben. Ich habe durchaus daran
gedacht, entsprechend bei Pyfilesystem mitzumachen, aber ich
bin schon froh, wenn ich hin und wieder dazu komme, etwas für
ftputil zu machen. Ich möchte das gern weiter unterstützen
und nicht die Entwicklung von ftputil einstellen, denn es gibt
natürlich auch da einige bis jede Menge Nutzer. (Ich kann die
Anzahl der Nutzer nicht einschätzen.)
[1] http://ftputil.sschwarzer.net
[2] https://pypi.python.org/pypi/ftputil/3.4
Viele Grüße
Stefan
> 2018-02-06 13:00 GMT+01:00 Maurice Kemmann via python-de <
> python-de@python.org>:
>
>> Hi Zusammen,
>>
>> Am Dienstag, 6. Februar 2018 09:23:07 UTC+1 schrieb Maurice Kemmann:
>>> Hallo,
>>>
>>> ich nutze pathlib um OS unabhängige Scripte zu schreiben. Im Moment
>> spiele ich ein wenig mit python-gnupg herrum und laufe in folgendes Problem:
>>>
>>> <code>
>>> import gnupg
>>> from pathlib import Path
>>> from pprint import pprint
>>>
>>> gpg = gnupg.GPG(gnupghome=Path("/home/mucki/.gnupg/"))
>>> <\code>
>>>
>>> Das führt zu folgenden Fehler unter Linux:
>>>
>>
>> Problem gelöst.
>>
>> gpg = gnupg.GPG(gnupghome=str(Path("/home/mucki/.gnupg/")))
>>
>> Path liefert in diesem Fall wohl keinen String zuück, da habe ich wohl die
>> Doku nicht richtig gelesen. Danke an Uwe!
>>
>> Maurice
>> _______________________________________________
>> python-de maillist - python-de@python.org
>> https://mail.python.org/mailman/listinfo/python-de
>>
> _______________________________________________
> python-de maillist - python-de@python.org
> https://mail.python.org/mailman/listinfo/python-de
>
Back to de.comp.lang.python | Previous | Next — Previous in thread | Find similar
Python3 - pathlib - python-gnupg Problem Maurice Kemmann <muckisg@googlemail.com> - 2018-02-06 00:23 -0800
Re: Python3 - pathlib - python-gnupg Problem Maurice Kemmann <muckisg@googlemail.com> - 2018-02-06 04:00 -0800
Re: [Python-de] Python3 - pathlib - python-gnupg Problem Reimar Bauer <rb.proj@gmail.com> - 2018-02-06 13:08 +0100
Re: [Python-de] Python3 - pathlib - python-gnupg Problem Maurice Kemmann <muckisg@googlemail.com> - 2018-02-06 20:25 +0100
Re: [Python-de] Python3 - pathlib - python-gnupg Problem Stefan Schwarzer <sschwarzer@sschwarzer.net> - 2018-02-07 06:36 +0100
csiph-web