> ## Documentation Index
> Fetch the complete documentation index at: https://docs.appsignal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AppSignal voor Python: Install

> Command-line tool om AppSignal in een Python-applicatie te installeren. Documentatie over gebruik, opties en configuratiemethoden.

export const VersionRequirements = ({versions = []}) => {
  if (!Array.isArray(versions) || versions.length === 0) {
    return null;
  }
  const boundaries = {
    upper: " or lower",
    exact: "",
    lower: " or higher"
  };
  const containerStyle = {
    marginTop: "0.5rem",
    marginBottom: "1.5rem"
  };
  const lineStyle = {
    display: "block",
    margin: "0 0 0.35rem 0",
    fontSize: "0.875rem",
    lineHeight: "1.4"
  };
  const pillBaseStyle = {
    display: "inline-block",
    padding: "0.1em 0.4em",
    borderRadius: "0.25rem",
    border: "1px solid",
    fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace",
    fontSize: "0.85em",
    fontWeight: 500
  };
  const pillColors = {
    "AppSignal for Elixir": {
      background: "#f3e8ff",
      borderColor: "#e9d5ff",
      color: "#9333ea"
    },
    "AppSignal for Front-end": {
      background: "#fef9c3",
      borderColor: "#fde68a",
      color: "#ca8a04"
    },
    "AppSignal for Go": {
      background: "#ccfbf1",
      borderColor: "#99f6e4",
      color: "#0d9488"
    },
    "AppSignal for JavaScript": {
      background: "#fef9c3",
      borderColor: "#fde68a",
      color: "#ca8a04"
    },
    "AppSignal for Node.js": {
      background: "#dcfce7",
      borderColor: "#bbf7d0",
      color: "#16a34a"
    },
    "AppSignal for Python": {
      background: "#dbeafe",
      borderColor: "#bfdbfe",
      color: "#2563eb"
    },
    "AppSignal for Ruby": {
      background: "#fee2e2",
      borderColor: "#fecaca",
      color: "#dc2626"
    },
    "AppSignal for Rust": {
      background: "#ffedd5",
      borderColor: "#fed7aa",
      color: "#ea580c"
    }
  };
  const defaultPillColor = {
    background: "#f4f4f5",
    borderColor: "#e4e4e7",
    color: "#52525b"
  };
  const getPillStyle = name => ({
    ...pillBaseStyle,
    ...pillColors[name] || defaultPillColor
  });
  const getBoundText = bound => {
    return boundaries[bound] || boundaries.lower;
  };
  return <div style={containerStyle}>
      {versions.map((v, i) => <p key={`${v.name}-${v.version}-${v.bound || "lower"}-${i}`} style={lineStyle}>
          This feature requires{" "}
          <code style={getPillStyle(v.name)}>{v.name}</code> version {v.version}
          {getBoundText(v.bound)}.
        </p>)}
    </div>;
};

<VersionRequirements
  versions={[
{ name: "AppSignal for Python", version: "0.1.0" }
]}
/>

De documentatie vertelt u alles wat u moet weten over het installeren van AppSignal via de command-line tool.

## Beschrijving

De command-line tool helpt bij het opzetten van de configuratie voor uw applicatie. Integratie met Python-applicaties kan extra stappen vereisen, omdat de AppSignal-installer niet weet hoe uw applicatie is opgezet. We raden onze [installatiehandleiding](/guides/new-application) aan wanneer u een nieuwe applicatie aan AppSignal toevoegt en de stappen per framework in onze [integratiedocumentatie](/python/instrumentations/) volgt.

Zodra de installatie is voltooid, wordt het [demo tool-commando](/python/command-line/demo) automatisch uitgevoerd om te verifiëren dat de installatie succesvol was. Het demo tool-commando verstuurt voorbeeldgegevens vanuit uw applicatie naar de AppSignal-servers, wat u helpt te verifiëren dat alles correct werkt.

## Configuratiemethoden

Er zijn twee configuratiemethoden beschikbaar via de command-line installer:

1. [Configuratie via een configuratiebestand](#1-configuration-file)
2. [Configuratie via environment variables](#2-environment-variables).

### 1. Configuratiebestand

AppSignal kan worden geconfigureerd via een configuratiebestand met de naam `__appsignal__.py`, gelokaliseerd in de hoofdmap van uw applicatie. Wanneer u voor deze optie kiest, schrijft onze installer uw configuratie naar dit bestand.

Wanneer u uw AppSignal-integratie configureert via het configuratiebestand, wordt de Push API-sleutel die u aan de installer verstrekt geschreven naar het `__appsignal__.py`-configuratiebestand. We raden af om deze sleutel toe te voegen aan versiebeheersystemen zoals Git, SVN of Mercurial. Gebruik in plaats daarvan de `APPSIGNAL_PUSH_API_KEY` environment variable om uw API-sleutel op te slaan.

Lees meer over het configureren van uw applicatie in onze [configuratiedocumentatie](/python/configuration).

### 2. Environment variables

AppSignal kan worden geconfigureerd via systeem-environment variables. Als u deze optie selecteert, wordt er geen [configuratiebestand](#1-configuration-file) gegenereerd.

Lees meer over het configureren van uw applicatie in onze [configuratiedocumentatie](/python/configuration).

## Gebruik

Om appsignal via de command-line te installeren, navigeert u naar uw projectmap en voert u het volgende commando uit:

<CodeGroup>
  ```bash Bash theme={null}
  python -m appsignal install --push-api-key <Push API key>
  # For example
  python -m appsignal install --push-api-key 1234-1234-1234-1234
  ```
</CodeGroup>

De "Push API-sleutel" van uw applicatie wordt weergegeven in de [installatiewizard](https://appsignal.com/redirect-to/organization?to=sites/new) en is ook beschikbaar in het beheergedeelte van de instellingen van uw organisatie, of via [deze link](https://appsignal.com/redirect-to/organization?to=admin/api_keys).

## Beschikbare opties

| Optie          | Gebruik                            | Beschrijving                                                                      |
| -------------- | ---------------------------------- | --------------------------------------------------------------------------------- |
| `push-api-key` | `--push-api-key=<Push API key>`    | Stel de Push API-sleutel in die wordt gebruikt om de applicatie te authenticeren. |
| `application`  | `--application=<application name>` | Stel de naam van de gerapporteerde applicatie in.                                 |
