npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@dman926/nx-python-pdm

v1.2.0

Published

[![LICENSE](https://img.shields.io/badge/license-MIT-green)](https://github.com/dman926/nx-python-pdm/blob/main/LICENSE) [![npm (scoped with tag)](https://img.shields.io/npm/v/%40dman926/nx-python-pdm/latest)](https://www.npmjs.com/package/@dman926/nx-pyt

Downloads

3

Readme

@dman926/nx-python-pdm

LICENSE npm (scoped with tag) GitHub package.json version (branch) CI

Use Python in NX workspaces with PDM

Installation

## Using pnpm
pnpm add -D @dman926/nx-python-pdm

## Or using npm
npm install -D @dman926/nx-python-pdm

## Or using yarn
yarn add -D @dman926/nx-python-pdm

Prerequisites

  • An NX workspace
  • PDM must be available to run from a terminal in the NX workspace.

Usage

Executors

  • pdm - Run a command with PDM on the project
    • command*: The command to run. 'pdm ' is prepended to this command.
      • The default input is used for command as well. It is important to note that the remainder of the PDM command must still be wrapped in quotes.
      • Ex: nx run my-project:pdm --command="add -d wheel"
      • Ex: nx run my-project:pdm "add -d wheel"
    • cwd: Override where the command runs. By default, the command runs in the project root. If provided, it should be relative to the workspace root or an absolute path.
    • raw: Do not prepend 'pdm ' to the given command.
    • quiet: Suppress output to stdout. stderr will still be printed on process error.

Generators

  • python - Create an application or library with PDM
    • name*: Name of the project.
    • projectType*: Application or Library.
      • application (default)
      • library
    • buildBackend: Override the PDM default build backend.
      • pdm-backend
      • setuptools
      • flot
      • hatchling
    • e2eTestRunner: The tool to use for running E2E tests.
      • cypress
      • playwright
      • robotframework
    • linter: The tool to use for running lint checks.
      • pylint
      • flake8
      • pycodestyle
      • pylama
      • mypy
    • typeChecker: The tool to use for running type checks.
      • mypy
      • pyright
      • pyre
    • unitTestRunner: The tool to use for running unit tests.
      • unittest (default)
      • pytest
    • directory: A directory where the project is placed.
    • e2eDirectory: A directory where the E2E project is placed, Only used when separateE2eProject is used.
    • separateE2eProject: Scaffold the E2E configuration in a separate project. Defaults to true.
    • e2eBundler: The bundler to use for running E2E tests. Only applies to cypress and playwright.
    • tags: Add tags to the project (used for linting).

Targets

  • build: Build the project with PDM and move the built files to dist/{projectRoot}/
  • serve: Run src with PDM.
  • test: Run unit tests with the selected unit test runner.
  • lint: Run lint checks with the selected linter.
  • typeCheck: Run type checks with the selected tool.
  • e2e: Run end-to-end tests with the selected test runner.
  • pdm: Allows running arbitrary PDM commands in the project through NX.