Skip to main content

interactions with SGDF's intranet

Project description

Scouts et Guides de France is a Scouting and Guiding organization based in France, member of the Scoutisme Français. For managing its assets and operations, and providing tools to its members, it provides a digital environment which only provides a human access, so no easy machine access.

SGDFi is a Python 3.x which aims at bringing a machine access to this digital environment, allowing read and write access to what is managed by it, mostly through a given adherent’s account by imitating a web browser (web scraping, form completing, ajax simulating, and so on).

For more information about how this works and how to make it work, consult the documentation. (link pending)


These examples CAN’T be used yet, as they’re just projections of what I would like as an interface.

from datetime import datetime
from sgdfi import Manager, ALL

start = datetime(2018, 10, 1)
end = datetime(2018, 10, 20)

mgr = sgdfi.Manager()
mgr.login("<code>", "<password>")
mgr.login("<code2>", "<password>")

print("== Place")
print(mgr.places["<place iid>"])

print("== Events in a structure:")
for event in["<structure iid>"][start:end]:

print("== All accessible events:")
for event in[ALL][start:end]:

print("== Operations on adherent:")
for op in mgr.adherents["<adherent iid>"].operations:

What is left to do

There are plenty of things to do:

  • use MIME types instead of random types for Manager.feed(), and check what we can send to Manager.feed() instead of text to also manage binary file formats such as XLS.
  • attendance register
  • accidents
  • maybe delegate?
  • translate everything from the SDY project.
  • isolate the database?
  • manage tips on adherents through operations, e.g. only some purple shirts can edit an adherent, or only the treasurer can declare that the adherent has payed their contribution.
  • make manager and session independant so that managers can manage more than one session at a time?
  • make manager public? database? representations?
  • document the interface when stable?

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sgdfi, version 20190326
Filename, size File type Python version Upload date Hashes
Filename, size sgdfi-20190326.tar.gz (594.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page