paid-python 0.3.2__tar.gz → 0.3.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. {paid_python-0.3.2 → paid_python-0.3.3}/PKG-INFO +1 -1
  2. {paid_python-0.3.2 → paid_python-0.3.3}/pyproject.toml +1 -1
  3. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/tracing.py +5 -3
  4. {paid_python-0.3.2 → paid_python-0.3.3}/LICENSE +0 -0
  5. {paid_python-0.3.2 → paid_python-0.3.3}/README.md +0 -0
  6. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/__init__.py +0 -0
  7. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/agents/__init__.py +0 -0
  8. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/agents/client.py +0 -0
  9. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/agents/raw_client.py +0 -0
  10. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/client.py +0 -0
  11. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/contacts/__init__.py +0 -0
  12. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/contacts/client.py +0 -0
  13. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/contacts/raw_client.py +0 -0
  14. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/core/__init__.py +0 -0
  15. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/core/api_error.py +0 -0
  16. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/core/client_wrapper.py +0 -0
  17. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/core/datetime_utils.py +0 -0
  18. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/core/file.py +0 -0
  19. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/core/force_multipart.py +0 -0
  20. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/core/http_client.py +0 -0
  21. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/core/http_response.py +0 -0
  22. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/core/jsonable_encoder.py +0 -0
  23. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/core/pydantic_utilities.py +0 -0
  24. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/core/query_encoder.py +0 -0
  25. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/core/remove_none_from_dict.py +0 -0
  26. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/core/request_options.py +0 -0
  27. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/core/serialization.py +0 -0
  28. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/customers/__init__.py +0 -0
  29. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/customers/client.py +0 -0
  30. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/customers/raw_client.py +0 -0
  31. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/environment.py +0 -0
  32. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/errors/__init__.py +0 -0
  33. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/errors/bad_request_error.py +0 -0
  34. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/errors/forbidden_error.py +0 -0
  35. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/errors/not_found_error.py +0 -0
  36. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/logger.py +0 -0
  37. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/orders/__init__.py +0 -0
  38. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/orders/client.py +0 -0
  39. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/orders/lines/__init__.py +0 -0
  40. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/orders/lines/client.py +0 -0
  41. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/orders/lines/raw_client.py +0 -0
  42. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/orders/raw_client.py +0 -0
  43. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/py.typed +0 -0
  44. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/__init__.py +0 -0
  45. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/autoinstrumentation.py +0 -0
  46. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/context_data.py +0 -0
  47. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/context_manager.py +0 -0
  48. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/distributed_tracing.py +0 -0
  49. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/signal.py +0 -0
  50. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/wrappers/__init__.py +0 -0
  51. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/wrappers/anthropic/__init__.py +0 -0
  52. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/wrappers/anthropic/anthropicWrapper.py +0 -0
  53. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/wrappers/bedrock/__init__.py +0 -0
  54. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/wrappers/bedrock/bedrockWrapper.py +0 -0
  55. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/wrappers/gemini/__init__.py +0 -0
  56. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/wrappers/gemini/geminiWrapper.py +0 -0
  57. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/wrappers/langchain/__init__.py +0 -0
  58. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/wrappers/langchain/paidLangChainCallback.py +0 -0
  59. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/wrappers/llamaindex/__init__.py +0 -0
  60. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/wrappers/llamaindex/llamaIndexWrapper.py +0 -0
  61. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/wrappers/mistral/__init__.py +0 -0
  62. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/wrappers/mistral/mistralWrapper.py +0 -0
  63. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/wrappers/openai/__init__.py +0 -0
  64. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/wrappers/openai/openAiWrapper.py +0 -0
  65. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/wrappers/openai_agents/__init__.py +0 -0
  66. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/wrappers/openai_agents/openaiAgentsHook.py +0 -0
  67. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/tracing/wrappers/utils.py +0 -0
  68. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/__init__.py +0 -0
  69. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/address.py +0 -0
  70. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/agent.py +0 -0
  71. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/agent_attribute.py +0 -0
  72. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/agent_price_point.py +0 -0
  73. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/agent_price_point_tiers.py +0 -0
  74. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/agent_update.py +0 -0
  75. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/api_error.py +0 -0
  76. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/billing_frequency.py +0 -0
  77. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/charge_type.py +0 -0
  78. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/contact.py +0 -0
  79. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/cost_amount.py +0 -0
  80. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/cost_trace.py +0 -0
  81. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/cost_traces_response.py +0 -0
  82. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/creation_source.py +0 -0
  83. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/creation_state.py +0 -0
  84. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/customer.py +0 -0
  85. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/customer_update.py +0 -0
  86. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/entitlement_usage.py +0 -0
  87. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/error.py +0 -0
  88. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/order.py +0 -0
  89. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/order_line.py +0 -0
  90. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/order_line_attribute.py +0 -0
  91. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/order_line_attribute_create.py +0 -0
  92. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/order_line_attribute_pricing.py +0 -0
  93. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/order_line_create.py +0 -0
  94. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/pagination_meta.py +0 -0
  95. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/price_point.py +0 -0
  96. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/pricing.py +0 -0
  97. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/pricing_model_type.py +0 -0
  98. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/salutation.py +0 -0
  99. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/signal.py +0 -0
  100. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/tax_exempt_status.py +0 -0
  101. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/types/tier.py +0 -0
  102. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/usage/__init__.py +0 -0
  103. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/usage/client.py +0 -0
  104. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/usage/raw_client.py +0 -0
  105. {paid_python-0.3.2 → paid_python-0.3.3}/src/paid/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: paid-python
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary:
5
5
  Requires-Python: >=3.9,<3.14
6
6
  Classifier: Intended Audience :: Developers
@@ -3,7 +3,7 @@ name = "paid-python"
3
3
 
4
4
  [tool.poetry]
5
5
  name = "paid-python"
6
- version = "0.3.2"
6
+ version = "0.3.3"
7
7
  description = ""
8
8
  readme = "README.md"
9
9
  authors = []
@@ -66,8 +66,9 @@ class PaidSpanProcessor(SpanProcessor):
66
66
  """
67
67
 
68
68
  SPAN_NAME_PREFIX = "paid.trace."
69
- PROMPT_ATTRIBUTES_PREFIXES = {
70
- "gen_ai.prompt",
69
+ PROMPT_ATTRIBUTES_SUBSTRINGS = {
70
+ "prompt",
71
+ # "gen_ai.prompt",
71
72
  "gen_ai.completion",
72
73
  "gen_ai.request.messages",
73
74
  "gen_ai.response.messages",
@@ -76,6 +77,7 @@ class PaidSpanProcessor(SpanProcessor):
76
77
  "llm.invocation_parameters",
77
78
  "output.value",
78
79
  "input.value",
80
+ # "langchain.prompt",
79
81
  }
80
82
 
81
83
  def on_start(self, span: Span, parent_context: Optional[Context] = None) -> None:
@@ -125,7 +127,7 @@ class PaidSpanProcessor(SpanProcessor):
125
127
  filtered_attrs = {
126
128
  k: v
127
129
  for k, v in original_attributes.items()
128
- if not any(k.startswith(prefix) for prefix in self.PROMPT_ATTRIBUTES_PREFIXES)
130
+ if not any(substr in k for substr in self.PROMPT_ATTRIBUTES_SUBSTRINGS)
129
131
  }
130
132
  # This works because the exporter reads attributes during serialization
131
133
  object.__setattr__(span, "_attributes", filtered_attrs)
File without changes
File without changes