OpenQuizz
Une application de gestion des contenus pédagogiques
register Class Reference
Inheritance diagram for register:
Collaboration diagram for register:

Public Member Functions

def initialize_options (self)
 
def finalize_options (self)
 
def run (self)
 
def check_metadata (self)
 
def classifiers (self)
 
def verify_metadata (self)
 
def send_metadata (self)
 
def build_post_data (self, action)
 
def post_to_server (self, data, auth=None)
 

Data Fields

 list_classifiers
 
 strict
 
 username
 
 password
 
 repository
 
 realm
 
 has_config
 

Static Public Attributes

 description
 
 user_options
 
 boolean_options
 
 sub_commands
 

Member Function Documentation

◆ build_post_data()

def build_post_data (   self,
  action 
)

◆ check_metadata()

def check_metadata (   self)
Deprecated API.

◆ classifiers()

def classifiers (   self)
Fetch the list of classifiers from the server.

◆ finalize_options()

def finalize_options (   self)

◆ initialize_options()

def initialize_options (   self)

◆ post_to_server()

def post_to_server (   self,
  data,
  auth = None 
)
Post a query to the server, and return a string response.

◆ run()

def run (   self)

◆ send_metadata()

def send_metadata (   self)
Send the metadata to the package index server.

    Well, do the following:
    1. figure who the user is, and then
    2. send the data as a Basic auth'ed POST.

    First we try to read the username/password from $HOME/.pypirc,
    which is a ConfigParser-formatted file with a section
    [distutils] containing username and password entries (both
    in clear text). Eg:

[distutils]
index-servers =
    pypi

[pypi]
username: fred
password: sekrit

    Otherwise, to figure who the user is, we offer the user three
    choices:

     1. use existing login,
     2. register as a new user, or
     3. set the password to a random string and email the user.

◆ verify_metadata()

def verify_metadata (   self)
Send the metadata to the package index server to be checked.

Field Documentation

◆ boolean_options

boolean_options
static

◆ description

description
static

◆ has_config

has_config

◆ list_classifiers

list_classifiers

◆ password

password

◆ realm

realm

◆ repository

repository

◆ strict

strict

◆ sub_commands

sub_commands
static

◆ user_options

user_options
static

◆ username

username

The documentation for this class was generated from the following file: