aiondtech 2.3.0__py3-none-any.whl → 2.5.0__py3-none-any.whl

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.
aiondtech/__init__.py CHANGED
@@ -31,7 +31,7 @@ Environment Variables:
31
31
  AIONDTECH_BASE_URL: Custom API URL (default: https://api.dev.aiondtech.com)
32
32
  """
33
33
 
34
- __version__ = "2.3.0"
34
+ __version__ = "2.5.0"
35
35
  __author__ = "AiondTech"
36
36
 
37
37
  from .client import ResumeAnalyser, Client
aiondtech/client.py CHANGED
@@ -62,7 +62,7 @@ class HTTPClient:
62
62
  self.session = requests.Session()
63
63
  self.session.headers.update({
64
64
  "Accept": "application/json",
65
- "User-Agent": "aiondtech-python/2.3.0",
65
+ "User-Agent": "aiondtech-python/2.5.0",
66
66
  "X-API-Key": api_key,
67
67
  })
68
68
 
@@ -299,11 +299,10 @@ class Resumes:
299
299
  print(f"Name: {parsed.full_name}")
300
300
  print(f"Skills: {parsed.skills}")
301
301
  """
302
- form_data = {"resume_id": str(resume_id)}
303
302
  data = self._client.request(
304
303
  "POST",
305
304
  "/external/analyze-resume-by-id",
306
- data=form_data
305
+ data={"resume_id": str(resume_id)}
307
306
  )
308
307
  return ParsedResumeResult.from_response(data)
309
308
 
@@ -359,14 +358,10 @@ class Resumes:
359
358
  print(f"Reasoning: {result.comparison_reason}")
360
359
  print(f"Language: {result.language}")
361
360
  """
362
- form_data = {
363
- "resume_id": str(resume_id),
364
- "job_id": str(job_id)
365
- }
366
361
  data = self._client.request(
367
362
  "POST",
368
363
  "/external/compare-resumes",
369
- data=form_data
364
+ data={"resume_id": str(resume_id), "job_id": str(job_id)}
370
365
  )
371
366
  return ResumeComparisonResult.from_response(data)
372
367
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiondtech
3
- Version: 2.3.0
3
+ Version: 2.5.0
4
4
  Summary: Official Python SDK for AiondTech Resume Analyser API
5
5
  Author-email: AiondTech <support@aiondtech.com>
6
6
  Maintainer-email: AiondTech <support@aiondtech.com>
@@ -237,7 +237,7 @@ Companies: ['Google', 'Meta']
237
237
  Education: ['BSc Computer Science - MIT']
238
238
  Total Experience: 8 years
239
239
  Certifications: ['AWS Certified Solutions Architect']
240
- Credits Used: 3
240
+ Credits Used: 4
241
241
  Parsed Data: {'full_name': 'John Doe', ...}
242
242
  ```
243
243
 
@@ -371,21 +371,27 @@ Count: 10
371
371
  ```python
372
372
  balance = client.credits.balance()
373
373
 
374
- print(f"Total: {balance.get('total')}")
375
- print(f"Used This Month: {balance.get('used_mtd')}")
376
- print(f"Remaining: {balance.get('remaining')}")
377
- print(f"Plan: {balance.get('plan_name')}")
378
- print(f"Resets At: {balance.get('resets_at')}")
374
+ print(f"Total Credits: {balance.get('total_credits')}")
375
+ print(f"Used Credits: {balance.get('used_credits')}")
376
+ print(f"Remaining Credits: {balance.get('remaining_credits')}")
377
+ print(f"Daily Limit: {balance.get('daily_limit')}")
378
+ print(f"Used Today: {balance.get('used_today')}")
379
+ print(f"Credits Today: {balance.get('credits_today')}")
380
+ print(f"Period Start: {balance.get('period_start')}")
381
+ print(f"Period End: {balance.get('period_end')}")
379
382
  ```
380
383
 
381
384
  **Output:**
382
385
 
383
386
  ```
384
- Total: 1000
385
- Used This Month: 150
386
- Remaining: 850
387
- Plan: Professional
388
- Resets At: 2026-03-01T00:00:00Z
387
+ Total Credits: 3500.0
388
+ Used Credits: 123
389
+ Remaining Credits: 3377.0
390
+ Daily Limit: 300.0
391
+ Used Today: 36
392
+ Credits Today: 70
393
+ Period Start: 2026-02-01
394
+ Period End: 2026-02-28
389
395
  ```
390
396
 
391
397
  ---
@@ -394,11 +400,36 @@ Resets At: 2026-03-01T00:00:00Z
394
400
 
395
401
  ```python
396
402
  usage = client.credits.usage()
397
- print(usage)
398
403
 
399
- # Or with date filters
400
- usage = client.credits.usage(start_date="2026-01-01", end_date="2026-01-31")
401
- print(usage)
404
+ print(f"Total Credits Used: {usage.get('total_credits')}")
405
+ print(f"Base Credits: {usage.get('base_credits')}")
406
+ print(f"AI Credits: {usage.get('gpt_credits')}")
407
+ print(f"Record Count: {usage.get('record_count')}")
408
+
409
+ # Print last 5 entries
410
+ for entry in usage.get('history', [])[:5]:
411
+ print(f" {entry['timestamp']} | {entry['endpoint']} | {entry['credits_used']} credits (base: {entry['base_credits']}, ai: {entry['gpt_credits']})")
412
+ ```
413
+
414
+ **Output:**
415
+
416
+ ```
417
+ Total Credits Used: 123
418
+ Base Credits: 75
419
+ AI Credits: 48
420
+ Record Count: 69
421
+ 2026-02-05T23:14:52 | /external/credits/balance | 0 credits (base: 0, ai: 0)
422
+ 2026-02-05T23:03:57 | /external/upload-resume-analyze-compare | 9 credits (base: 5, ai: 4)
423
+ 2026-02-05T23:02:20 | /external/upload-resume-analyze | 5 credits (base: 3, ai: 2)
424
+ 2026-02-05T23:01:21 | /external/upload-resume | 1 credits (base: 1, ai: 0)
425
+ 2026-02-05T23:06:23 | /external/create-job | 1 credits (base: 1, ai: 0)
426
+ ```
427
+
428
+ **With date filters:**
429
+
430
+ ```python
431
+ usage = client.credits.usage(start_date="2026-02-01", end_date="2026-02-28")
432
+ print(f"Total Credits Used: {usage.get('total_credits')}")
402
433
  ```
403
434
 
404
435
  ---
@@ -470,7 +501,7 @@ print(f"Credits used: {comparison.credits_used}")
470
501
 
471
502
  # Step 4: Check remaining credits
472
503
  balance = client.credits.balance()
473
- print(f"Credits remaining: {balance['remaining']}")
504
+ print(f"Credits remaining: {balance['remaining_credits']}")
474
505
  ```
475
506
 
476
507
  ### One-Step Workflow (Upload + Analyze + Compare)
@@ -0,0 +1,9 @@
1
+ aiondtech/__init__.py,sha256=0h4ZFj3lS46et0GYCre-DBeaSt3uWT4Gb3UNlPedEm8,1929
2
+ aiondtech/client.py,sha256=ZXfOBTQwpd51MnsClzskW1eO4bAh0Pxn7TQzd7gQ06M,17881
3
+ aiondtech/models.py,sha256=L7xOjEMBUOk-69lynS6SA04I-tDbqVUfYyvMyRB6MLg,12700
4
+ aiondtech/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ aiondtech-2.5.0.dist-info/licenses/LICENSE,sha256=MJBnh0Wtm8cM0bJDLG3YxhMOyJjMFJXbL--UU_YqkXI,1066
6
+ aiondtech-2.5.0.dist-info/METADATA,sha256=mUx98uqlyIzkXse3vSiYxBBjbFwdTHSvr88qFJq6jjc,15187
7
+ aiondtech-2.5.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
8
+ aiondtech-2.5.0.dist-info/top_level.txt,sha256=LpZ1hyiTlj71P5J9y-aUJg2tgZ-XVh96DyimmTipEEQ,10
9
+ aiondtech-2.5.0.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- aiondtech/__init__.py,sha256=83vC7VwcBSTncQJTp2V-Cp5ZMD_-quzSJZwsJ8z2fM4,1929
2
- aiondtech/client.py,sha256=OaEk2xEjwgExG82puEWXlKrwCzfbajeJjGLidga_Cu0,17975
3
- aiondtech/models.py,sha256=L7xOjEMBUOk-69lynS6SA04I-tDbqVUfYyvMyRB6MLg,12700
4
- aiondtech/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- aiondtech-2.3.0.dist-info/licenses/LICENSE,sha256=MJBnh0Wtm8cM0bJDLG3YxhMOyJjMFJXbL--UU_YqkXI,1066
6
- aiondtech-2.3.0.dist-info/METADATA,sha256=C9B-Zuz5cfkq9azIJdbWUgtw9-9IR6mCyA3f0-gFu4I,13924
7
- aiondtech-2.3.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
8
- aiondtech-2.3.0.dist-info/top_level.txt,sha256=LpZ1hyiTlj71P5J9y-aUJg2tgZ-XVh96DyimmTipEEQ,10
9
- aiondtech-2.3.0.dist-info/RECORD,,