{
 "kind": "tool",
 "slug": "pyasn1",
 "path": "tools/pyasn1/",
 "name": "pyasn1",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Auth and security libraries",
   "tools/auth-security/"
  ]
 ],
 "lead": "Pure Python implementation of ASN.1 types and DER/BER/CER codecs.",
 "chips": [
  {
   "label": "Auth and security libraries",
   "path": "tools/auth-security/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install pyasn1"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/pyasn1/pyasn1"
  },
  {
   "label": "Website",
   "href": "https://github.com/pyasn1/pyasn1"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "BSD-2-Clause",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from PyPI license field.",
   "src": "https://github.com/pyasn1/pyasn1"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Oct 27, 2026",
   "note": "Latest GitHub release Oct 27, 2026. ",
   "src": "https://github.com/pyasn1/pyasn1"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "24 projects",
   "status": "info",
   "sub": "#26 of 141 in its category",
   "note": "Dependency in 24 public GitHub projects set up for AI coding agents that we scanned (0.4%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What pyasn1 does",
   "parts": [
    {
     "t": "prose",
     "text": "Pure Python implementation of ASN.1 types and DER/BER/CER codecs."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "pyasn1 popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "64",
       "of": "/ 100",
       "l": "Gid Score, #753 overall"
      },
      {
       "n": "117M",
       "l": "downloads a week, pypi"
      },
      {
       "n": "54",
       "l": "GitHub stars"
      },
      {
       "n": "24",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How pyasn1 is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "pyasn1 is a dependency in 24 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (1.5% of the 1,623 Python ones), #26 of 141 in auth and security libraries.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 818; those are left out of every share on this page.",
      "The most used alternative in our scan is rsa (10 projects).",
      "Projects that use it most often also use Requests (91.7%), urllib3 (91.7%), Pydantic (83.3%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "14 projects, 0.5%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "14 projects, 0.4%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "9 projects, 0.4%",
       "v": "Cursor",
       "path": "agents/cursor/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 91.7% of its projects",
       "v": "Requests",
       "path": "tools/requests-py/"
      },
      {
       "l": "In 91.7% of its projects",
       "v": "urllib3",
       "path": "tools/urllib3/"
      },
      {
       "l": "In 83.3% of its projects",
       "v": "Pydantic",
       "path": "tools/pydantic/"
      },
      {
       "l": "In 79.2% of its projects",
       "v": "charset-normalizer",
       "path": "tools/charset-normalizer/"
      },
      {
       "l": "In 79.2% of its projects",
       "v": "Protocol Buffers",
       "path": "tools/protobuf/"
      },
      {
       "l": "In 79.2% of its projects",
       "v": "AnyIO",
       "path": "tools/anyio/"
      },
      {
       "l": "In 79.2% of its projects",
       "v": "python-dotenv",
       "path": "tools/python-dotenv/"
      },
      {
       "l": "In 75.0% of its projects",
       "v": "google-auth",
       "path": "tools/google-auth/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about pyasn1",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "Own page: https://pyasn1.readthedocs.io/"
       ]
      },
      {
       "title": "More in Auth and security libraries",
       "path": "tools/auth-security/",
       "items": [
        {
         "text": "bcryptjs",
         "path": "tools/bcryptjs/"
        },
        {
         "text": "NextAuth.js",
         "path": "tools/next-auth/"
        },
        {
         "text": "jsonwebtoken",
         "path": "tools/jsonwebtoken/"
        },
        {
         "text": "cryptography",
         "path": "tools/cryptography/"
        },
        {
         "text": "PyJWT",
         "path": "tools/pyjwt/"
        },
        {
         "text": "jose",
         "path": "tools/jose/"
        },
        {
         "text": "Better Auth",
         "path": "tools/better-auth/"
        },
        {
         "text": "DOMPurify",
         "path": "tools/dompurify/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "pyasn1",
       "me": true,
       "facts": [
        "BSD-2-Clause",
        "Gid 64",
        "117M/wk"
       ]
      },
      {
       "name": "rsa",
       "why": "Pure Python RSA encryption and decryption implementation for secure communication.",
       "path": "tools/rsa/",
       "facts": [
        "Apache-2.0",
        "Gid 62",
        "44.3M/wk"
       ]
      }
     ],
     "more": "Compare pyasn1 with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install pyasn1"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for pyasn1 yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi pyasn1"
  ],
  [
   "Category",
   "Auth and security libraries"
  ],
  [
   "License",
   "BSD-2-Clause"
  ],
  [
   "Gid Score",
   "63.7"
  ],
  [
   "Rank in category",
   "#26 of 141"
  ],
  [
   "GitHub",
   "pyasn1/pyasn1"
  ],
  [
   "Last change",
   "Oct 27, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/pyasn1.png"
}