Skip to main content

pynxm

https://img.shields.io/pypi/v/pynxm.svg?style=flat-square&label=PyPI https://img.shields.io/pypi/pyversions/pynxm.svg?style=flat-square&label=Python%20Versions https://img.shields.io/travis/GandaG/pynxm/master.svg?style=flat-square&label=Linux%20Build https://img.shields.io/appveyor/ci/GandaG/pynxm/master.svg?style=flat-square&label=Windows%20Build

A python wrapper for the Nexus API.

Features:

  • Retrieve information regarding colour-specific themes for games;

  • Access resources specific to a user:
    • Get user details;

    • Get user’s endorsements;

    • Get, add and delete user’s tracked mods.

  • Retrieve game information;

  • Access mod information:
    • Get latest added mods;

    • Get latest updated mods;

    • Get all updated mods in a specific period of time;

    • Get trending mods;

    • Search for a specific mod;

    • Get mod details;

    • Get mod’s changelogs;

    • Endorse or abstain from endorsing a mod.

  • Access a mod’s files:
    • List a mod’s files;

    • Get a mod’s file details;

    • Generate a download link for a mod’s file.

Installation

To install pynxm, use pip:

pip install pynxm

Users will also need an api key to login with, generate one for your account here.

Application developers that wish to use Nexus’ Single Sign-On (SSO) will need an application slug and a connection token, please contact a Nexus Community Manager for more information.

Quick Examples

Connect to Nexus:

>>> api_key = "my-api-key"
>>> nxm = pynxm.Nexus(api_key)

Track a new mod:

>>> game = "fallout3"
>>> mod_id = "00000"
>>> nxm.user_tracked_add(game, mod_id)

Endorse a mod:

>>> game = "newvegas"
>>> mod_id = "99999"
>>> nxm.mod_endorse(game, mod_id)

Documentation

For more information check out pynxm’s API documentation at pynxm.rtfd.io

You can supplement pynxm’s API docs with the Nexus API documentation.

Issues

Please use the GitHub issue tracker to submit bugs or request features.

Development

Setup a virtualenv, install flit and run:

flit install -s

This will install an editable version of pynxm and all dev packages.

To run the checks and tests:

tox

And to publish:

flit publish

Metadata

Release files for pynxm 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pynxm 0.1.0
File Size Uploaded
pynxm-0.1.0.tar.gz 13.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pynxm 0.1.0
File Interpreter ABI Platform
pynxm-0.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 38.4 kB

Release files / pynxm-0.1.0.tar.gz

Download URL pynxm-0.1.0.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0c5c3c362d0ef0cfb6fca74699a02448ce74b0b5a786cb1ad9d97107acf2d354
BLAKE2b-256 checksum
How to use checksums
6338aa3c4b1230bfea6957de7d286d8e645ef5af1fd49f35d66946512ba49552
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.21.0

Release files / pynxm-0.1.0-py2.py3-none-any.whl

Download URL pynxm-0.1.0-py2.py3-none-any.whl
Size 24.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f4c6634750e985201c6b6cf0130afa7d30689c34a9c563f2ff8632e57f5fd0c0
BLAKE2b-256 checksum
How to use checksums
418f1cf8ec8a64dbe1c047afeda12252086cf09d6a3b6a17da26ea1c991674d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.21.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page