https://github.com/renamed-to/renamed-sdk
Multi-language SDKs (TypeScript, Python, Go, Java, C#, Ruby, Rust, Swift, PHP) for AI-powered document processing
https://github.com/renamed-to/renamed-sdk
ai csharp document-processing file-renaming-automation go java ocr pdf pdf-splitter php python ruby rust swift typescript
Last synced: 5 months ago
JSON representation
Multi-language SDKs (TypeScript, Python, Go, Java, C#, Ruby, Rust, Swift, PHP) for AI-powered document processing
- Host: GitHub
- URL: https://github.com/renamed-to/renamed-sdk
- Owner: renamed-to
- License: mit
- Created: 2026-01-10T10:54:11.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-01-11T11:21:19.000Z (5 months ago)
- Last Synced: 2026-01-18T11:15:05.808Z (5 months ago)
- Topics: ai, csharp, document-processing, file-renaming-automation, go, java, ocr, pdf, pdf-splitter, php, python, ruby, rust, swift, typescript
- Language: Java
- Homepage: https://www.renamed.to/
- Size: 289 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
renamed.to SDK
Official SDKs for AI-powered file renaming, PDF splitting, and data extraction
Quick Start •
Installation •
Features •
API •
Docs
---
## 🚀 Quick Start
Get your API key at [renamed.to/settings](https://www.renamed.to/settings).
TypeScript
Python
```typescript
import { RenamedClient } from '@renamed/sdk';
const client = new RenamedClient({
apiKey: 'rt_...'
});
const result = await client.rename('invoice.pdf');
console.log(result.suggestedFilename);
// → "2025-01-15_AcmeCorp_INV-12345.pdf"
```
```python
from renamed import RenamedClient
client = RenamedClient(api_key='rt_...')
result = client.rename('invoice.pdf')
print(result.suggested_filename)
# → "2025-01-15_AcmeCorp_INV-12345.pdf"
```
More languages
### Go
```go
import "github.com/renamed-to/renamed-sdk/sdks/go/renamed"
client := renamed.NewClient("rt_...")
result, _ := client.Rename(ctx, "invoice.pdf", nil)
fmt.Println(result.SuggestedFilename)
// → "2025-01-15_AcmeCorp_INV-12345.pdf"
```
### Java
```java
import to.renamed.sdk.*;
RenamedClient client = new RenamedClient("rt_...");
RenameResult result = client.rename(Path.of("invoice.pdf"), null);
System.out.println(result.getSuggestedFilename());
// → "2025-01-15_AcmeCorp_INV-12345.pdf"
```
### C#
```csharp
using Renamed.Sdk;
using var client = new RenamedClient("rt_...");
var result = await client.RenameAsync("invoice.pdf");
Console.WriteLine(result.SuggestedFilename);
// → "2025-01-15_AcmeCorp_INV-12345.pdf"
```
### Ruby
```ruby
require 'renamed'
client = Renamed::Client.new(api_key: 'rt_...')
result = client.rename('invoice.pdf')
puts result.suggested_filename
# → "2025-01-15_AcmeCorp_INV-12345.pdf"
```
### Rust
```rust
use renamed::RenamedClient;
let client = RenamedClient::new("rt_...");
let result = client.rename("invoice.pdf", None).await?;
println!("{}", result.suggested_filename);
// → "2025-01-15_AcmeCorp_INV-12345.pdf"
```
### Swift
```swift
import Renamed
let client = try RenamedClient(apiKey: "rt_...")
let file = try FileInput(url: URL(fileURLWithPath: "invoice.pdf"))
let result = try await client.rename(file: file)
print(result.suggestedFilename)
// → "2025-01-15_AcmeCorp_INV-12345.pdf"
```
### PHP
```php
use Renamed\Client;
$client = new Client('rt_...');
$result = $client->rename('invoice.pdf');
echo $result->suggestedFilename;
// → "2025-01-15_AcmeCorp_INV-12345.pdf"
```
---
## 📦 Installation
LanguagePackage Manager
TypeScript
```bash
npm install @renamed/sdk
```
Python
```bash
pip install renamed
```
Go
```bash
go get github.com/renamed-to/renamed-sdk/sdks/go
```
Java
```xml
to.renamed
renamed-sdk
0.1.0
```
C# / .NET
```bash
dotnet add package Renamed.Sdk
```
Ruby
```bash
gem install renamed
```
Rust
```toml
[dependencies]
renamed = "0.1"
```
Swift
```swift
.package(url: "https://github.com/renamed-to/renamed-sdk", from: "0.1.0")
```
PHP
```bash
composer require renamed/sdk
```
---
## ✨ Features
### 🤖 Rename Files
AI-powered file renaming with intelligent naming suggestions:
```typescript
const result = await client.rename('scan001.pdf');
// {
// suggestedFilename: "2025-01-15_AcmeCorp_INV-12345.pdf",
// folderPath: "2025/AcmeCorp/Invoices",
// confidence: 0.95
// }
```
### ✂️ Split PDFs
Split multi-page PDFs into individual documents:
```typescript
const job = await client.pdfSplit('multi-page.pdf', { mode: 'auto' });
const result = await job.wait();
for (const doc of result.documents) {
const buffer = await client.downloadFile(doc.downloadUrl);
// Save doc.filename with buffer
}
```
### 📊 Extract Data
Extract structured data from documents:
```typescript
const result = await client.extract('invoice.pdf', {
prompt: 'Extract invoice number, date, and total amount'
});
console.log(result.data);
// { invoiceNumber: "INV-12345", date: "2025-01-15", total: 1234.56 }
```
---
## 📖 API Reference
| Method | Description |
|--------|-------------|
| `rename(file)` | Rename a file using AI |
| `pdfSplit(file, options)` | Split PDF into documents |
| `extract(file, options)` | Extract structured data |
| `getUser()` | Get user profile & credits |
| `downloadFile(url)` | Download a split document |
---
## 📋 Supported Files
| Type | Formats |
|------|---------|
| 📄 Documents | PDF |
| 🖼️ Images | JPEG, PNG, TIFF |
---
## 📚 Documentation
---
Built with ❤️ by the renamed.to team