All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pranav Jerry <libreinator@disroot.org>
To: iwd@lists.01.org
Subject: Using iwd.py for a project
Date: Wed, 26 May 2021 21:55:29 +0530	[thread overview]
Message-ID: <IY2QTQ.MAEB01FKYJM7@disroot.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1681 bytes --]

Hi!

I'm the developer of naxalnet [1], a shell
script to create a BATMAN-Advanced mesh network without bothering with 
any
configuration.

It uses iwd to create an ad-hoc network and then configures the network 
using
systemd-networkd.
It is currently in alpha stage.

I'm working on rewriting it in python and found out controlling iwd via 
D-Bus
is not easy as I thought. I searched the web for python libraries to 
control iwd
and found out on stackoverflow [2] that the iwd git repo had python3 
examples
in `tests/`.

On further exploring, I found a python library for using iwd,
`autotests/util/iwd.py`. The python scripts used for testing in 
`autotests`
showed it was easy to use and was just what I needed to use for 
connecting
to iwd in my project.

But I couldn't find any information on the library on 
iwd.wiki.kernel.org and
I think it was developed for internal use. The library is not on PyPi 
either.
I want to use the library in naxalnet, which is at present a 
single-file file that
starts with `#!/usr/bin/env python3`, meant to reside as 
`/usr/bin/naxalnet`.

How do I make iwd.py importable? I don't want to include iwd.py as a 
file
when I package naxalnet for distribution.
So it probably needs to be installed by pip as a library, or by the OS 
package
manager. Can you or any other developers make iwd.py available as a 
python
package installable by pip?

I'm not an experienced dev and I'm not used to python packaging, so 
correct me
if I'm wrong anywhere.

[1]: https://git.disroot.org/pranav/naxalnet
[2]: 
https://stackoverflow.com/questions/60358001/accessing-iwd-dbus-interface-from-python


             reply	other threads:[~2021-05-26 16:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-26 16:25 Pranav Jerry [this message]
2021-05-26 20:41 ` Using iwd.py for a project Denis Kenzior
2021-05-27 15:30   ` Pranav Jerry

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=IY2QTQ.MAEB01FKYJM7@disroot.org \
    --to=libreinator@disroot.org \
    --cc=iwd@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.